Package me.neznamy.tab.shared.command
Class PlayerCommand
java.lang.Object
me.neznamy.tab.shared.command.SubCommand
me.neznamy.tab.shared.command.PropertyCommand
me.neznamy.tab.shared.command.PlayerCommand
Handler for "/tab player" subcommand
-
Field Summary
Fields inherited from class me.neznamy.tab.shared.command.SubCommand
extraProperties -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.neznamy.tab.shared.command.PropertyCommand
helpMethods inherited from class me.neznamy.tab.shared.command.SubCommand
getAllProperties, getMessages, getName, getOnlinePlayers, getStartingArgument, getSubcommands, hasPermission, hasPermission, registerSubCommand, sendMessage, sendMessages, sendRawMessage, setAllProperties
-
Constructor Details
-
PlayerCommand
public PlayerCommand()Constructs new instance
-
-
Method Details
-
execute
Description copied from class:SubCommandPerforms the command- Specified by:
executein classSubCommand- Parameters:
sender- command sender or null if consoleargs- arguments of the command
-
savePlayer
public void savePlayer(me.neznamy.tab.api.TabPlayer sender, String player, String type, String value, String server, String world) Saves new player settings into config- Parameters:
sender- command sender or null if consoleplayer- affected playertype- property typevalue- new value
-
complete
Description copied from class:SubCommandPerforms command complete and returns list of arguments to be shown- Overrides:
completein classPropertyCommand- Parameters:
sender- command senderarguments- arguments inserted in chat so far- Returns:
- List of possible arguments
-