From 3212fe297d95867bf57fa6d08b7ca15360e96c8d Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 2 Apr 2015 14:46:29 -0400 Subject: [PATCH] Correctif sur la commande /ghost --- .../pandacraftutils/commands/CommandGhost.java | 15 ++++++++++----- .../commands/PandacraftUtilsCommandsManager.java | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandGhost.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandGhost.java index c63f28b..c0fa216 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandGhost.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandGhost.java @@ -60,6 +60,11 @@ public class CommandGhost extends AbstractCommandExecutor { private void showHelp(Player player) { + player.sendMessage(new String[] { + ChatColor.GOLD+"---------- Commande /ghost ----------", + ChatColor.GRAY+"/ghost thor "+ChatColor.GOLD+" produire de l'orage sur l'intégralité du serveur", + ChatColor.GOLD+"------------------------------------------" + }); } @@ -80,14 +85,14 @@ public class CommandGhost extends AbstractCommandExecutor { for (World w : worlds) { - int nbStrike = r.nextInt(2)+1; + WorldBorderConfigEntry config = ConfigManager.getInstance().worldBorderConfig.getEntry(w); + if (config == null) + continue; + + int nbStrike = r.nextInt(3)+1; for (int i=0; i