fixed /ds all

This commit is contained in:
Charlie Wang 2013-07-11 21:24:56 -04:00
parent ff9e992460
commit 1a5e5050dc
2 changed files with 4 additions and 1 deletions

View File

@ -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");
}
}
}

View File

@ -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 {