mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-31 12:41:25 +01:00
Added Server.getPluginCommand
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
dbfb262c5d
commit
3eb015141a
@ -4,6 +4,7 @@ package org.bukkit;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
import org.bukkit.command.PluginCommand;
|
||||||
|
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.scheduler.BukkitScheduler;
|
import org.bukkit.scheduler.BukkitScheduler;
|
||||||
@ -121,4 +122,12 @@ public interface Server {
|
|||||||
* @return Logger associated with this server
|
* @return Logger associated with this server
|
||||||
*/
|
*/
|
||||||
public Logger getLogger();
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user