From bba1973d3150497330e71bb35b349ef7f8f6b9aa Mon Sep 17 00:00:00 2001 From: Alexander Meech Date: Fri, 6 Jan 2017 20:48:41 -0500 Subject: [PATCH] Delay sent join decision (#688) --- src/com/projectkorra/projectkorra/PKListener.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/PKListener.java b/src/com/projectkorra/projectkorra/PKListener.java index 3eabea9d..cd7508d7 100644 --- a/src/com/projectkorra/projectkorra/PKListener.java +++ b/src/com/projectkorra/projectkorra/PKListener.java @@ -1065,8 +1065,6 @@ public class PKListener implements Listener { final Player player = event.getPlayer(); JUMPS.put(player, player.getStatistic(Statistic.JUMP)); - player.sendMessage(ChatColor.GREEN + "This server is running ProjectKorra version " + ProjectKorra.plugin.getDescription().getVersion() + " for bending! Find out more at http://www.projectkorra.com!"); - GeneralMethods.createBendingPlayer(player.getUniqueId(), player.getName()); Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, new Runnable() { @@ -1076,6 +1074,12 @@ public class PKListener implements Listener { GeneralMethods.removeUnusableAbilities(player.getName()); } }, 5); + + Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, new Runnable() { + public void run() { + player.sendMessage(ChatColor.GREEN + "This server is running ProjectKorra version " + ProjectKorra.plugin.getDescription().getVersion() + " for bending! Find out more at http://www.projectkorra.com!"); + } + }, 20 * 5); } @EventHandler