Package cn.ycraft.limbo.command.defaults
Class GameModeCommand
java.lang.Object
cn.ycraft.limbo.command.SubCommand<DefaultCommands>
cn.ycraft.limbo.command.defaults.GameModeCommand
- All Implemented Interfaces:
NamedExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(CommandSender sender, String[] args) boolean
hasPermission
(@NotNull CommandSender sender) static @Nullable org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode
parseGameMode
(@NotNull String mode) tabComplete
(CommandSender sender, String[] args) Methods inherited from class cn.ycraft.limbo.command.SubCommand
getParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.ycraft.limbo.command.NamedExecutor
sendMessage, sendMessage, sendMessage
-
Constructor Details
-
GameModeCommand
-
-
Method Details
-
execute
- Specified by:
execute
in classSubCommand<DefaultCommands>
- Throws:
Exception
-
hasPermission
-
tabComplete
- Overrides:
tabComplete
in classSubCommand<DefaultCommands>
-
parseGameMode
@Nullable public static @Nullable org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode parseGameMode(@NotNull @NotNull String mode)
-