fixed /ds all
This commit is contained in:
parent
ff9e992460
commit
1a5e5050dc
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user