Package studio.magemonkey.fabled.cmd
Class CmdLevel
java.lang.Object
studio.magemonkey.fabled.cmd.CmdLevel
- All Implemented Interfaces:
org.bukkit.command.TabCompleter
,studio.magemonkey.codex.mccore.commands.IFunction
public class CmdLevel
extends Object
implements studio.magemonkey.codex.mccore.commands.IFunction, org.bukkit.command.TabCompleter
A command that gives a player class levels
/class level [player] <add|remove|set> <amount> [class] [true|false] - Gives a player class levels Arguments: - player: The player to give levels to - add/remove/set: The action to perform - amount: The amount of levels to give - class: The class to give levels to - true/false: Whether to show the message to the player
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(studio.magemonkey.codex.mccore.commands.ConfigurableCommand cmd, org.bukkit.plugin.Plugin plugin, org.bukkit.command.CommandSender sender, String[] args) Runs the commandonTabComplete
(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] args)
-
Constructor Details
-
CmdLevel
public CmdLevel()
-
-
Method Details
-
execute
public void execute(studio.magemonkey.codex.mccore.commands.ConfigurableCommand cmd, org.bukkit.plugin.Plugin plugin, org.bukkit.command.CommandSender sender, String[] args) Runs the command- Specified by:
execute
in interfacestudio.magemonkey.codex.mccore.commands.IFunction
- Parameters:
cmd
- command that was executedplugin
- plugin referencesender
- sender of the commandargs
- argument list
-
onTabComplete
@Nullable public List<String> onTabComplete(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String s, @NotNull String[] args) - Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
-