Package dev.plex.command.impl
Class MobPurgeCMD
java.lang.Object
org.bukkit.command.Command
dev.plex.command.PlexCommand
dev.plex.command.impl.MobPurgeCMD
- All Implemented Interfaces:
org.bukkit.command.PluginIdentifiableCommand
-
Field Summary
FieldsFields inherited from class dev.plex.command.PlexCommand
pluginFields inherited from class org.bukkit.command.Command
description, timings, usageMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.text.Componentexecute(@NotNull org.bukkit.command.CommandSender sender, @Nullable org.bukkit.entity.Player playerSender, @NotNull String[] args) Executes the commandprivate StringmultipleS(int count) private intpurgeMobs(org.bukkit.entity.EntityType type) smartTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull String alias, @NotNull String[] args) Methods inherited from class dev.plex.command.PlexCommand
checkPermission, checkPermission, componentFromString, getMap, getNonNullPlayer, getNonNullWorld, getOfflinePlexPlayer, getOnlinePlexPlayer, getPlexPlayer, getPlugin, getUUID, isConsole, messageComponent, messageComponent, messageString, mmString, noColorComponentFromString, send, send, silentCheckPermission, silentCheckPermission, tabComplete, usage, usageMethods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, canBeOverriden, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, permissionMessage, permissionMessage, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Field Details
-
MOB_TYPES
-
-
Constructor Details
-
MobPurgeCMD
public MobPurgeCMD()
-
-
Method Details
-
execute
protected net.kyori.adventure.text.Component execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @Nullable @Nullable org.bukkit.entity.Player playerSender, @NotNull @NotNull String[] args) Description copied from class:PlexCommandExecutes the command- Specified by:
executein classPlexCommand- Parameters:
sender- The sender of the commandplayerSender- The player who executed the command (null if CommandSource is console or if CommandSource is any but console executed)args- A Kyori Component to send to the sender (can be null)
-
multipleS
-
purgeMobs
private int purgeMobs(org.bukkit.entity.EntityType type) -
getAllMobs
-
smartTabComplete
@NotNull public @NotNull List<String> smartTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) throws IllegalArgumentException - Specified by:
smartTabCompletein classPlexCommand- Throws:
IllegalArgumentException
-