类 PlayerCommand

java.lang.Object
top.shjibi.plugineer.command.base.BasicCommand
top.shjibi.plugineer.command.base.PlayerCommand
所有已实现的接口:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor

public abstract class PlayerCommand extends BasicCommand
只有玩家能用的指令
  • 字段详细资料

    • playerOnlyMsg

      protected final String[] playerOnlyMsg
  • 构造器详细资料

    • PlayerCommand

      public PlayerCommand(org.bukkit.plugin.java.JavaPlugin plugin)
  • 方法详细资料

    • completeTab

      public final List<String> completeTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
      从类复制的说明: BasicCommand
      决定tab列表中出现哪些词
      覆盖:
      completeTab 在类中 BasicCommand
    • execute

      public final void execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
      从类复制的说明: BasicCommand
      决定执行指令出现的效果
      指定者:
      execute 在类中 BasicCommand
    • completeTab

      public List<String> completeTab(@NotNull @NotNull org.bukkit.entity.Player p, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
    • execute

      public abstract void execute(@NotNull @NotNull org.bukkit.entity.Player p, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
    • getPlayerOnlyMsg

      public String[] getPlayerOnlyMsg()
      获取提醒这是一个仅限玩家指令的消息