Package net.frozenspace.frostlib.command
Class CommandLoader
- java.lang.Object
-
- net.frozenspace.frostlib.data.Loader
-
- net.frozenspace.frostlib.command.CommandLoader
-
public final class CommandLoader extends Loader
-
-
Constructor Summary
Constructors Constructor Description CommandLoader(@NotNull org.bukkit.plugin.Plugin plugin)Constructor used for initialization and also getting theCommandMapinstance inBukkit.getPluginManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tload(T obj)Create a new PluginCommand for all the methods annotated withCommandand register this command into Bukkit CommandMap
-
-
-
Method Detail
-
load
@NotNull public <T> T load(@NotNull T obj)Create a new PluginCommand for all the methods annotated withCommandand register this command into Bukkit CommandMap
-
-