Package dev.plex.command.impl
Class GamemodeCMD
java.lang.Object
org.bukkit.command.Command
dev.plex.command.PlexCommand
dev.plex.command.impl.GamemodeCMD
- All Implemented Interfaces:
org.bukkit.command.PluginIdentifiableCommand
-
Field Summary
Fields inherited from class dev.plex.command.PlexCommand
plugin
Fields inherited from class org.bukkit.command.Command
description, timings, usageMessage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.text.Component
execute
(@NotNull org.bukkit.command.CommandSender sender, @Nullable org.bukkit.entity.Player playerSender, String[] args) Executes the commandtabComplete
(@NotNull org.bukkit.command.CommandSender sender, @NotNull String alias, @NotNull String[] args) private void
update
(org.bukkit.command.CommandSender sender, org.bukkit.entity.Player playerSender, org.bukkit.GameMode gameMode) Methods inherited from class dev.plex.command.PlexCommand
checkRank, checkRank, checkTab, checkTab, componentFromString, getLevel, getMap, getNonNullPlayer, getNonNullWorld, getOfflinePlexPlayer, getOnlinePlexPlayer, getPlexPlayer, getPlugin, getUUID, isAdmin, isAdmin, isAdmin, isConsole, isSeniorAdmin, messageComponent, messageComponent, messageString, mmString, noColorComponentFromString, send, send, silentCheckRank, usage, usage
Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, 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
-
gamemode
private org.bukkit.GameMode gamemode
-
-
Constructor Details
-
GamemodeCMD
public GamemodeCMD()
-
-
Method Details
-
execute
protected net.kyori.adventure.text.Component execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @Nullable @Nullable org.bukkit.entity.Player playerSender, String[] args) Description copied from class:PlexCommand
Executes the command- Specified by:
execute
in 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)
-
update
private void update(org.bukkit.command.CommandSender sender, org.bukkit.entity.Player playerSender, org.bukkit.GameMode gameMode) -
tabComplete
@NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) throws IllegalArgumentException - Overrides:
tabComplete
in classorg.bukkit.command.Command
- Throws:
IllegalArgumentException
-