Package fr.Alphart.BAT.Modules
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Use this annotation to disable a commandstatic @interface
Use this annotation onCommand if the command need to be runned async -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get a nice coloured usagegetUsage()
void
handleCommandException
(net.md_5.bungee.api.CommandSender sender, Exception exception) void
mustConfirmCommand
(net.md_5.bungee.api.CommandSender sender, String command, String message) abstract void
onCommand
(net.md_5.bungee.api.CommandSender sender, String[] args, boolean confirmedCmd, boolean broadcast) onTabComplete
(net.md_5.bungee.api.CommandSender sender, String[] args) Methods inherited from class net.md_5.bungee.api.plugin.Command
equals, getAliases, getName, getPermission, getPermissionMessage, hashCode, hasPermission, toString
-
Constructor Details
-
BATCommand
public BATCommand(String name, String syntax, String description, String permission, String... aliases) Constructor- Parameters:
name
- name of this commanddescription
- description of this commandpermission
- permission required to use this commandsaliases
- aliases of this commnad (optionnal)
-
-
Method Details
-
getDescription
-
getUsage
-
getSyntax
-
getFormatUsage
Get a nice coloured usage- Returns:
- coloured usage
-
getBATPermission
-
handleCommandException
-
execute
- Specified by:
execute
in classnet.md_5.bungee.api.plugin.Command
-
onTabComplete
- Specified by:
onTabComplete
in interfacenet.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
-