mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 03:28:45 +01:00
Merge pull request #365 from mcmonkey4eva/master
Handle another needs-packet-sending event
This commit is contained in:
commit
a4ee12c18a
@ -291,6 +291,11 @@ public class EventListen implements Listener {
|
||||
recalculatePlayer(event.getPlayer());
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerRespawn(PlayerRespawnEvent event) {
|
||||
recalculatePlayer(event.getPlayer());
|
||||
}
|
||||
|
||||
public void recalculatePlayer(final Player player) {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user