Skip to content

Commit

Permalink
Always schedule SendPlayerMessageTask
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMWM committed Jan 20, 2017
1 parent 8b8178b commit 39e1e13
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/me/ryanhamshire/GriefPrevention/GriefPrevention.java
Expand Up @@ -3266,14 +3266,7 @@ static void sendMessage(Player player, ChatColor color, String message)
static void sendMessage(Player player, ChatColor color, String message, long delayInTicks)
{
SendPlayerMessageTask task = new SendPlayerMessageTask(player, color, message);
if(delayInTicks > 0)
{
GriefPrevention.instance.getServer().getScheduler().runTaskLater(GriefPrevention.instance, task, delayInTicks);
}
else
{
task.run();
}
GriefPrevention.instance.getServer().getScheduler().runTaskLater(GriefPrevention.instance, task, delayInTicks);
}

//checks whether players can create claims in a world
Expand Down

0 comments on commit 39e1e13

Please sign in to comment.