Uses of Interface
de.marcely.bedwars.tools.CommandSenderWrapper
Package
Description
-
Uses of CommandSenderWrapper in de.marcely.bedwars.api.command
Modifier and TypeMethodDescriptiondefault @Nullable Integer
CommandHandlerWrappedSender.getContentAmount
(CommandSenderWrapper sender) A command may display an amount as an additional info in /bw [...] helpdefault @Nullable String
CommandHandler.getOverridingUsage
(CommandSenderWrapper senderWrapper) Override the shown usage at certain conditions.SubCommand.getUsage
(@Nullable CommandSenderWrapper senderWrapper) Returns the parameters the command expects for a specific sender.CollectionCommandHandler.onAutocomplete
(CommandSenderWrapper sender, String[] args) CommandHandlerWrappedSender.onAutocomplete
(CommandSenderWrapper sender, String[] args) Gets called whenever someone autocompletes (presses tab) on the commandHelpCommandHandler.onAutocomplete
(CommandSenderWrapper sender, String[] args) void
CollectionCommandHandler.onFire
(CommandSenderWrapper sender, String fullUsage, String[] args) void
CommandHandlerWrappedSender.onFire
(CommandSenderWrapper sender, String fullUsage, String[] args) Gets called whenever someone executes the commandvoid
HelpCommandHandler.onFire
(CommandSenderWrapper sender, String fullUsage, String[] args) -
Uses of CommandSenderWrapper in de.marcely.bedwars.api.event.arena
Modifier and TypeMethodDescription@Nullable CommandSenderWrapper
ArenaDeleteEvent.getSenderWrapped()
Returns the person who deleted the arena.@Nullable CommandSenderWrapper
ArenaIssuesCheckEvent.getSenderWrapped()
Returns the person who initiated the check.@Nullable CommandSenderWrapper
ArenaRegenerationStartEvent.getSenderWrapped()
Returns the person who started this regeneration.@Nullable CommandSenderWrapper
ArenaRegenerationStopEvent.getSenderWrapped()
Returns the person/sender who stopped it.Modifier and TypeMethodDescriptionArenaIssuesCheckEvent.IssueType.construct
(@Nullable CommandSenderWrapper sender) Construct an issue instance from this type.ArenaIssuesCheckEvent.IssueType.construct
(@Nullable CommandSenderWrapper sender, @Nullable String detail) Construct an issue instance from this type.ModifierConstructorDescriptionArenaDeleteEvent
(Arena arena, @Nullable CommandSenderWrapper sender) ArenaEnableEvent
(Arena arena, Set<ArenaIssuesCheckEvent.Issue> issues, @Nullable CommandSenderWrapper sender) ArenaIssuesCheckEvent
(Arena arena, Set<ArenaIssuesCheckEvent.Issue> issues, @Nullable CommandSenderWrapper sender) ArenaRegenerationStartEvent
(Arena arena, @Nullable CommandSenderWrapper sender, ArenaRegenerationStartEvent.Result result) ArenaRegenerationStopEvent
(Arena arena, @Nullable CommandSenderWrapper sender) -
Uses of CommandSenderWrapper in de.marcely.bedwars.api.message
Modifier and TypeMethodDescriptiondefault String
Message.done
(@Nullable CommandSenderWrapper sender) Same asMessage.done(CommandSenderWrapper, boolean)
and puts this instance automatically back into the poolMessage.done
(@Nullable CommandSenderWrapper sender, boolean freeInstance) Will put the message into the MessageProccessor and returns its result.default void
Message.send
(CommandSenderWrapper sender) Computes it and sends it to the personvoid
Message.send
(CommandSenderWrapper sender, boolean freeInstance) Computes it and sends it to the person -
Uses of CommandSenderWrapper in de.marcely.bedwars.tools
Modifier and TypeClassDescriptionstatic class
static class
static class
Modifier and TypeMethodDescriptionstatic CommandSenderWrapper
CommandSenderWrapper.wrap
(RemotePlayer player) Constructs a new instance with a reference of the given player.static CommandSenderWrapper
CommandSenderWrapper.wrap
(CommandSender sender) Constructs a new instance with a reference of the given sender.static CommandSenderWrapper
CommandSenderWrapper.wrap
(CommandSender sender, boolean hasOP) Constructs a new instance with a reference of the given sender.static CommandSenderWrapper
CommandSenderWrapper.wrapConsole
(RemoteServer server) Wraps the console of the given server.