From 07820489f8ed11a4d1c347e02f86cdd3dc37d751 Mon Sep 17 00:00:00 2001 From: Nathan Stoltenberg Date: Thu, 24 Mar 2016 21:18:10 -0500 Subject: [PATCH] Fix players not appearing when updating tags. --- pom.xml | 6 +++--- src/main/java/net/md_5/itag/iTag.java | 8 +++++++- src/main/resources/plugin.yml | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 9448131..3a48965 100644 --- a/pom.xml +++ b/pom.xml @@ -3,8 +3,8 @@ 4.0.0 net.md-5 - iTag-API - 1.1.7-SNAPSHOT + TagAPI + 1.1.8 jar iTag @@ -43,7 +43,7 @@ ProtocolLib 3.6.5-SNAPSHOT system - D:/civcraftsvn/trunk/lib/ProtocolLib.jar + D:/civcraftsvn/trunk/lib/ProtocolLib 3.6.5.jar org.bukkit diff --git a/src/main/java/net/md_5/itag/iTag.java b/src/main/java/net/md_5/itag/iTag.java index f726411..a0d732e 100644 --- a/src/main/java/net/md_5/itag/iTag.java +++ b/src/main/java/net/md_5/itag/iTag.java @@ -165,9 +165,15 @@ public void refreshPlayer(final Player player, final Player forWhom) public void run() { forWhom.hidePlayer( player ); + } + }); + getServer().getScheduler().scheduleSyncDelayedTask( this, new Runnable() + { + public void run() + { forWhom.showPlayer( player ); } - }, 0); + }, 2); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b3601fe..16418ba 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: TagAPI -version: 1.1.4 +version: 1.1.8 description: Actually is iTag - Name tag API which is backwards compatible with TagAPI author: md_5