Package dev.cerus.maps.api.version
Interface PacketListener
public interface PacketListener
Interceptor for packets
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handlePlayerLeftClick(org.bukkit.entity.Player player)
Intercepts left clicksboolean
handlePlayerRightClick(org.bukkit.entity.Player player)
Intercepts right clicks
-
Method Details
-
handlePlayerLeftClick
boolean handlePlayerLeftClick(org.bukkit.entity.Player player)Intercepts left clicks- Parameters:
player
- The acting player- Returns:
- True if this click should be cancelled
-
handlePlayerRightClick
boolean handlePlayerRightClick(org.bukkit.entity.Player player)Intercepts right clicks- Parameters:
player
- The acting player- Returns:
- True if this click should be cancelled
-