From 1a5e5050dce422e0569d82db54daa0ea5e6a6f6d Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Thu, 11 Jul 2013 21:24:56 -0400 Subject: [PATCH] fixed /ds all --- src/gibstick/bukkit/discosheep/DiscoSheep.java | 3 +++ src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index 65571c6..d776a26 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -60,6 +60,9 @@ public final class DiscoSheep extends JavaPlugin { public void startParty(Player player, int duration, int sheepAmount, int radius, boolean fireworksEnabled) { if (!hasParty(player.getName())) { new DiscoParty(this, player).startDisco(duration, sheepAmount, radius, fireworksEnabled); + } else { + player.sendMessage("You has party"); } } + } diff --git a/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java b/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java index aa303c3..ead77a3 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java @@ -89,7 +89,7 @@ public class DiscoSheepCommandExecutor implements CommandExecutor { if (args[0].equalsIgnoreCase("all")) { if (senderHasPerm(sender, PERMISSION_ALL)) { for (Player p : Bukkit.getServer().getOnlinePlayers()) { - parent.startParty(player, duration, sheepNumber, radius, fireworks); + parent.startParty(p, duration, sheepNumber, radius, fireworks); p.sendMessage(ChatColor.RED + "LET'S DISCO!"); } } else {