diff options
Diffstat (limited to 'src/main/java/org/bukkit/plugin/SimplePluginManager.java')
-rw-r--r-- | src/main/java/org/bukkit/plugin/SimplePluginManager.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java index aa401cb0..a79c3583 100644 --- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -23,10 +23,7 @@ import java.util.regex.Matcher; import org.bukkit.Server; import java.util.regex.Pattern; import org.bukkit.command.Command; -import org.bukkit.command.CommandMap; -import org.bukkit.command.CommandDefinition; -import org.bukkit.command.PluginCommand; -import org.bukkit.command.PluginCommandUtil; +import org.bukkit.command.PluginCommandYamlParser; import org.bukkit.command.SimpleCommandMap; import org.bukkit.event.Event; @@ -273,7 +270,7 @@ public final class SimplePluginManager implements PluginManager { public void enablePlugin(final Plugin plugin) { if (!plugin.isEnabled()) { - List<Command> pluginCommands = PluginCommandUtil.parse(plugin); + List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin); if (!pluginCommands.isEmpty()) { commandMap.registerAll(plugin.getDescription().getName(), pluginCommands); @@ -543,8 +540,4 @@ public final class SimplePluginManager implements PluginManager { public Set<Permission> getPermissions() { return new HashSet<Permission>(permissions.values()); } - - public void registerCommand(CommandDefinition command, Plugin plugin) { - commandMap.register(plugin.getDescription().getName(), PluginCommandUtil.parse(command, plugin)); - } } |