Merge pull request #365 from mcmonkey4eva/master

Handle another needs-packet-sending event
This commit is contained in:
fullwall 2015-05-05 12:58:19 +08:00
commit a4ee12c18a

View File

@ -291,6 +291,11 @@ public class EventListen implements Listener {
recalculatePlayer(event.getPlayer()); recalculatePlayer(event.getPlayer());
} }
@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerRespawn(PlayerRespawnEvent event) {
recalculatePlayer(event.getPlayer());
}
public void recalculatePlayer(final Player player) { public void recalculatePlayer(final Player player) {
new BukkitRunnable() { new BukkitRunnable() {
@Override @Override