Class ProxyDefineCommandsEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- net.md_5.bungee.api.event.TargetedEvent
-
- io.github.waterfallmc.waterfall.event.ProxyDefineCommandsEvent
-
public class ProxyDefineCommandsEvent extends TargetedEvent
Called when the proxy intercepts the command packet allowing for plugins to prevent commands being added to the clients which might not be wanted. Plugin developers, please implementCommand.hasPermission(CommandSender)properly in favor of this event.
-
-
Constructor Summary
Constructors Constructor Description ProxyDefineCommandsEvent(Connection sender, Connection receiver, Map<String,Command> commands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Command>getCommands()The map of commands to be sent to the playerinthashCode()StringtoString()-
Methods inherited from class net.md_5.bungee.api.event.TargetedEvent
getReceiver, getSender
-
-
-
-
Constructor Detail
-
ProxyDefineCommandsEvent
public ProxyDefineCommandsEvent(Connection sender, Connection receiver, Map<String,Command> commands)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classTargetedEvent
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTargetedEvent
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classTargetedEvent
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTargetedEvent
-
-