Skip to content

Commit

Permalink
Reduce delay in resetting name when refreshing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ataranlen committed Mar 24, 2016
1 parent 125bf1e commit 326409d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>net.md-5</groupId>
<artifactId>iTag</artifactId>
<version>1.1.5-SNAPSHOT</version>
<artifactId>iTag-API</artifactId>
<version>1.1.7-SNAPSHOT</version>
<packaging>jar</packaging>

<name>iTag</name>
Expand Down
9 changes: 1 addition & 8 deletions src/main/java/net/md_5/itag/iTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,9 @@ public void refreshPlayer(final Player player, final Player forWhom)
public void run()
{
forWhom.hidePlayer( player );
}
}, 1);
getServer().getScheduler().scheduleSyncDelayedTask( this, new Runnable()
{
public void run()
{
forWhom.showPlayer( player );
}
}, 5);

}, 0);
}
}

Expand Down

0 comments on commit 326409d

Please sign in to comment.