diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 7e3ed672..6b187af4 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -4,6 +4,7 @@ package org.bukkit; import org.bukkit.entity.Player; import java.util.List; import java.util.logging.Logger; +import org.bukkit.command.PluginCommand; import org.bukkit.plugin.PluginManager; import org.bukkit.scheduler.BukkitScheduler; @@ -121,4 +122,12 @@ public interface Server { * @return Logger associated with this server */ public Logger getLogger(); + + /** + * Gets a {@link PluginCommand} with the given name or alias + * + * @param name Name of the command to retrieve + * @return PluginCommand if found, otherwise null + */ + public PluginCommand getPluginCommand(String name); } |