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