mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Delay sent join decision (#688)
This commit is contained in:
parent
fd03d8d863
commit
bba1973d31
1 changed files with 6 additions and 2 deletions
|
@ -1065,8 +1065,6 @@ public class PKListener implements Listener {
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
JUMPS.put(player, player.getStatistic(Statistic.JUMP));
|
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());
|
GeneralMethods.createBendingPlayer(player.getUniqueId(), player.getName());
|
||||||
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, new Runnable() {
|
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, new Runnable() {
|
||||||
|
|
||||||
|
@ -1076,6 +1074,12 @@ public class PKListener implements Listener {
|
||||||
GeneralMethods.removeUnusableAbilities(player.getName());
|
GeneralMethods.removeUnusableAbilities(player.getName());
|
||||||
}
|
}
|
||||||
}, 5);
|
}, 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
|
@EventHandler
|
||||||
|
|
Loading…
Reference in a new issue