Expose server CommandMap

This commit is contained in:
Riley Park 2016-02-29 19:48:59 -06:00
parent a445dc4f3f
commit 07c65b03e0
2 changed files with 22 additions and 0 deletions

View file

@ -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();

View file

@ -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.
*