Class BATCommand

java.lang.Object
net.md_5.bungee.api.plugin.Command
fr.Alphart.BAT.Modules.BATCommand
All Implemented Interfaces:
net.md_5.bungee.api.plugin.TabExecutor
Direct Known Subclasses:
BanCommand.BanCmd, BanCommand.BanIPCmd, BanCommand.BanListCmd, BanCommand.GBanCmd, BanCommand.GBanIPCmd, BanCommand.GTempBanCmd, BanCommand.GTempBanIPCmd, BanCommand.GUnbanCmd, BanCommand.GUnbanIPCmd, BanCommand.TempBanCmd, BanCommand.TempBanIPCmd, BanCommand.UnbanCmd, BanCommand.UnbanIPCmd, CommentCommand.AddCommentCmd, CommentCommand.ClearCommentCmd, CommentCommand.WarnCmd, CoreCommand, CoreCommand.ConfirmCmd, CoreCommand.HelpCmd, CoreCommand.LookupCmd, CoreCommand.ModulesCmd, CoreCommand.ReloadCmd, CoreCommand.StaffLookupCmd, KickCommand.GKickCmd, KickCommand.KickCmd, MuteCommand.GMuteCmd, MuteCommand.GMuteIPCmd, MuteCommand.GTempMuteCmd, MuteCommand.GTempMuteIPCmd, MuteCommand.GUnmuteCmd, MuteCommand.GUnmuteIPCmd, MuteCommand.MuteCmd, MuteCommand.MuteIPCmd, MuteCommand.TempMuteCmd, MuteCommand.TempMuteIPCmd, MuteCommand.UnmuteCmd, MuteCommand.UnmuteIPCmd

public abstract class BATCommand extends net.md_5.bungee.api.plugin.Command implements net.md_5.bungee.api.plugin.TabExecutor
  • Constructor Details

    • BATCommand

      public BATCommand(String name, String syntax, String description, String permission, String... aliases)
      Constructor
      Parameters:
      name - name of this command
      description - description of this command
      permission - permission required to use this commands
      aliases - aliases of this commnad (optionnal)
  • Method Details

    • getDescription

      public String getDescription()
    • getUsage

      public String getUsage()
    • getSyntax

      public String getSyntax()
    • getFormatUsage

      public String getFormatUsage()
      Get a nice coloured usage
      Returns:
      coloured usage
    • getBATPermission

      public String getBATPermission()
    • handleCommandException

      public void handleCommandException(net.md_5.bungee.api.CommandSender sender, Exception exception)
    • execute

      public void execute(net.md_5.bungee.api.CommandSender sender, String[] args)
      Specified by:
      execute in class net.md_5.bungee.api.plugin.Command
    • onTabComplete

      public Iterable<String> onTabComplete(net.md_5.bungee.api.CommandSender sender, String[] args)
      Specified by:
      onTabComplete in interface net.md_5.bungee.api.plugin.TabExecutor
    • onCommand

      public abstract void onCommand(net.md_5.bungee.api.CommandSender sender, String[] args, boolean confirmedCmd, boolean broadcast) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • mustConfirmCommand

      public void mustConfirmCommand(net.md_5.bungee.api.CommandSender sender, String command, String message)