diff --git a/pom.xml b/pom.xml index e9cd038..a2cb188 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ net.md-5 iTag - 1.1.4-SNAPSHOT + 1.1.5-SNAPSHOT jar iTag diff --git a/src/main/java/net/md_5/itag/iTag.java b/src/main/java/net/md_5/itag/iTag.java index 0d73b64..ca576cd 100644 --- a/src/main/java/net/md_5/itag/iTag.java +++ b/src/main/java/net/md_5/itag/iTag.java @@ -159,15 +159,22 @@ public void refreshPlayer(final Player player, final Player forWhom) Preconditions.checkNotNull( forWhom, "forWhom" ); if ( player != forWhom && player.getWorld() == forWhom.getWorld() && forWhom.canSee( player ) ) - { - forWhom.hidePlayer( player ); - getServer().getScheduler().scheduleSyncDelayedTask( this, new Runnable() + { + getServer().getScheduler().scheduleSyncDelayedTask( this, new Runnable() + { + public void run() + { + forWhom.hidePlayer( player ); + } + }, 1); + getServer().getScheduler().scheduleSyncDelayedTask( this, new Runnable() { public void run() { forWhom.showPlayer( player ); } - }, 2 ); + }, 5); + } }