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 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 interface studio.magemonkey.codex.mccore.commands.IFunction
      Parameters:
      cmd - command that was executed
      plugin - plugin reference
      sender - sender of the command
      args - 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 interface org.bukkit.command.TabCompleter