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 boolean
canEqual(Object other)
boolean
equals(Object o)
Map<String,Command>
getCommands()
The map of commands to be sent to the playerint
hashCode()
String
toString()
-
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:
toString
in classTargetedEvent
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classTargetedEvent
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classTargetedEvent
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTargetedEvent
-
-