mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Expose server CommandMap
This commit is contained in:
parent
a445dc4f3f
commit
07c65b03e0
2 changed files with 22 additions and 0 deletions
|
@ -2361,6 +2361,19 @@ public final class Bukkit {
|
|||
return server.getUnsafe();
|
||||
}
|
||||
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the active {@link org.bukkit.command.CommandMap}
|
||||
*
|
||||
* @return the active command map
|
||||
*/
|
||||
@NotNull
|
||||
public static org.bukkit.command.CommandMap getCommandMap() {
|
||||
return server.getCommandMap();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@NotNull
|
||||
public static Server.Spigot spigot() {
|
||||
return server.spigot();
|
||||
|
|
|
@ -1835,6 +1835,15 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
|||
public double[] getTPS();
|
||||
// Paper end
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the active {@link org.bukkit.command.CommandMap}
|
||||
*
|
||||
* @return the active command map
|
||||
*/
|
||||
@NotNull
|
||||
org.bukkit.command.CommandMap getCommandMap();
|
||||
|
||||
/**
|
||||
* Get the advancement specified by this key.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue