DeveloperAPI - AlonsoAliaga/PunchStaff GitHub Wiki
DeveloperAPI
PunchStaffAPI can be used to make some actions easily.
com.alonsoaliaga.punchstaff.api.PunchStaffAPI
Available methods
boolean canBePunched(Player player)
- Check if player can be punched. Returns false if player is null, not a staff or is on cooldown.
boolean punchPlayer(Player donor, Player staff)
- Force a donor to punch a staff. Returns false if players are null or are not online.
boolean punchPlayer(Player donor, Player staff, boolean addCooldownIfPossible)
- Force a donor to punch a staff adding cooldown if possible. Returns false if players are null or are not online.
Available events
StaffPunchEvent
- When donor punches staff. Cancellable.