Package fr.andross.banitem.commands
Class BanCommand
java.lang.Object
fr.andross.banitem.commands.BanCommand
- Direct Known Subclasses:
Commandadd
,Commandcheck
,Commandhelp
,Commandinfo
,Commandload
,Commandlog
,Commandmetaitem
,Commandreload
,Commandremove
Abstract sub command class.
- Version:
- 3.2
- Author:
- Andross
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBanCommand
(@NotNull BanItem plugin, @NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args) Create a BanCommand object which handles in game BanItem commands. -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable String
Get the "no-permission" message from configabstract void
run()
Running a subcommand.runTab()
Running a subcommand tab.protected void
sendHeaderMessage
(@NotNull String title) Sending a header separator.protected void
sendMessage
(@Nullable String message) Send a (colored) message to the sender.
-
Field Details
-
plugin
BanItem plugin instance. -
sender
protected final org.bukkit.command.CommandSender senderCommand sender. -
args
Arguments used by the command sender into the command.
-
-
Constructor Details
-
BanCommand
public BanCommand(@NotNull @NotNull BanItem plugin, @NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args) Create a BanCommand object which handles in game BanItem commands.- Parameters:
plugin
- ban item plugin instancesender
- the command senderargs
- the arguments for the command used by the sender
-
-
Method Details
-
sendHeaderMessage
Sending a header separator.- Parameters:
title
- the title of the header
-
sendMessage
Send a (colored) message to the sender.- Parameters:
message
- message to send
-
getNoPermMessage
Get the "no-permission" message from config- Returns:
- the "no-permission" message from config
-
run
public abstract void run()Running a subcommand. -
runTab
Running a subcommand tab.- Returns:
- list of tab completion
-