public class AliasCommandManager
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected @NotNull org.bukkit.command.SimpleCommandMap |
commandMap |
protected @NotNull java.lang.reflect.Field |
knownCommandsFiled |
protected @NotNull org.bukkit.plugin.java.JavaPlugin |
plugin |
protected @NotNull java.lang.String |
prefix |
protected @NotNull java.util.Map<java.lang.String,AliasCommand> |
registeredCommands |
构造器和说明 |
---|
AliasCommandManager(@NotNull org.bukkit.plugin.java.JavaPlugin plugin) |
AliasCommandManager(@NotNull org.bukkit.plugin.java.JavaPlugin plugin,
@NotNull java.lang.String prefix) |
限定符和类型 | 方法和说明 |
---|---|
protected @NotNull org.bukkit.command.SimpleCommandMap |
getCommandMap() |
java.lang.String |
getCommandPrefix() |
protected java.util.Map<java.lang.String,org.bukkit.command.Command> |
getKnownCommands() |
void |
register(@NotNull java.lang.String alias,
@NotNull java.lang.String subCommand) |
void |
unregister(@NotNull java.lang.String alias) |
void |
unregisterAll() |
@NotNull protected final @NotNull org.bukkit.plugin.java.JavaPlugin plugin
@NotNull protected final @NotNull java.lang.String prefix
@NotNull protected final @NotNull org.bukkit.command.SimpleCommandMap commandMap
@NotNull protected final @NotNull java.lang.reflect.Field knownCommandsFiled
@NotNull protected final @NotNull java.util.Map<java.lang.String,AliasCommand> registeredCommands
public AliasCommandManager(@NotNull @NotNull org.bukkit.plugin.java.JavaPlugin plugin) throws java.lang.Exception
java.lang.Exception
public AliasCommandManager(@NotNull @NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull @NotNull java.lang.String prefix) throws java.lang.Exception
java.lang.Exception
protected java.util.Map<java.lang.String,org.bukkit.command.Command> getKnownCommands()
@NotNull protected @NotNull org.bukkit.command.SimpleCommandMap getCommandMap()
public java.lang.String getCommandPrefix()
public void register(@NotNull @NotNull java.lang.String alias, @NotNull @NotNull java.lang.String subCommand)
public void unregister(@NotNull @NotNull java.lang.String alias)
public void unregisterAll()
Copyright © 2024. All rights reserved.