Correctif sur la commande /ghost
This commit is contained in:
parent
e2be425513
commit
3212fe297d
@ -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;
|
||||
|
||||
for (int i=0; i<nbStrike; i++) {
|
||||
|
||||
WorldBorderConfigEntry config = ConfigManager.getInstance().worldBorderConfig.getEntry(w);
|
||||
if (config == null)
|
||||
continue;
|
||||
|
||||
int nbStrike = r.nextInt(3)+1;
|
||||
|
||||
for (int i=0; i<nbStrike; i++) {
|
||||
|
||||
// l'orage sera localisé à un endroit aléatoire à l'intérieur des WorldBorders
|
||||
double locX = r.nextDouble()*(config.getMaxX()-config.getMinX())+config.getMinX();
|
||||
double locY = r.nextDouble()*255;
|
||||
|
@ -56,6 +56,7 @@ public class PandacraftUtilsCommandsManager {
|
||||
add(new CommandCoeur());
|
||||
add(new CommandMuco());
|
||||
add(new CommandModo());
|
||||
add(new CommandGhost());
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user