Merge remote-tracking branch 'origin/limit-parties'
This commit is contained in:
commit
9c44f3daec
@ -51,7 +51,9 @@ public final class DiscoSheep extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
public void startDisco(Player player) {
|
||||
public void startParty(Player player) {
|
||||
if (!hasParty(player.getName())) {
|
||||
new DiscoParty(this, player).startDisco();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public class DiscoSheepCommandExecutor implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||
if (sender instanceof Player) {
|
||||
parent.startDisco((Player)sender);
|
||||
parent.startParty((Player)sender);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user