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) {
|
public void startParty(Player player, int duration, int sheepAmount, int radius, boolean fireworksEnabled) {
|
||||||
if (!hasParty(player.getName())) {
|
if (!hasParty(player.getName())) {
|
||||||
new DiscoParty(this, player).startDisco(duration, sheepAmount, radius, fireworksEnabled);
|
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 (args[0].equalsIgnoreCase("all")) {
|
||||||
if (senderHasPerm(sender, PERMISSION_ALL)) {
|
if (senderHasPerm(sender, PERMISSION_ALL)) {
|
||||||
for (Player p : Bukkit.getServer().getOnlinePlayers()) {
|
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!");
|
p.sendMessage(ChatColor.RED + "LET'S DISCO!");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user