Class CivilWarCommand
java.lang.Object
net.chen.legacyLand.war.commands.CivilWarCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
public class CivilWarCommand
extends Object
implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
内战命令处理器
/civil declare <新国名> - 市长发起独立投票
/civil vote yes|no - 居民投票
/civil status - 查看不满值
/civil info [战争ID] - 查看内战信息
/civil join <战争ID> <角色> - 加入内战
/civil surrender - 投降
/civil list - 列出所有内战
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)
-
Constructor Details
-
CivilWarCommand
public CivilWarCommand()
-
-
Method Details
-
onCommand
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter
-