public abstract class WorldCommand extends PlayerCommand
Constructor and Description |
---|
WorldCommand(Command parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(@NotNull org.bukkit.entity.Player sender,
@NotNull org.bukkit.command.Command command,
@NotNull String label,
@NotNull String[] args)
Executes the given command, returning its success.
|
abstract boolean |
execute(@NotNull org.bukkit.entity.Player sender,
@NotNull org.bukkit.command.Command command,
@NotNull String label,
@NotNull String[] args,
org.bukkit.World world)
Executes the given command, returning its success.
|
execute
arguments, getMain, getName, getSubCommands, getTabCompletions, onCommand, onTabComplete
public WorldCommand(Command parent)
public final boolean execute(@NotNull @NotNull org.bukkit.entity.Player sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
execute
in class PlayerCommand
sender
- Source of the commandcommand
- Command which was executedlabel
- Alias of the command which was usedargs
- Passed command argumentspublic abstract boolean execute(@NotNull @NotNull org.bukkit.entity.Player sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args, org.bukkit.World world)
sender
- Player that executed commandcommand
- Command which was executedlabel
- Alias of the command which was usedargs
- Passed command argumentsworld
- World in which command was executedCopyright © 2020. All rights reserved.