mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-02-10 12:41:23 +01:00
Unstable Build: Attempts to add max-players option to config for parties. This value can be between 2-8.
This commit is contained in:
parent
fcf26df82e
commit
422730e472
@ -28,7 +28,7 @@ public class PartyInvite extends Request {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void accept() {
|
public void accept() {
|
||||||
if(party.getMembers().count() >= 4) {
|
if(party.getMembers().count() >= Math.min(8, Math.max(2, MMOCore.plugin.getConfig().getInt("party.max-players", 8)))) {
|
||||||
MMOCore.plugin.configManager.getSimpleMessage("party-is-full").send(target.getPlayer());
|
MMOCore.plugin.configManager.getSimpleMessage("party-is-full").send(target.getPlayer());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -102,6 +102,10 @@ party:
|
|||||||
# to talk in the party chat.
|
# to talk in the party chat.
|
||||||
chat-prefix: '@'
|
chat-prefix: '@'
|
||||||
|
|
||||||
|
# The max players that can be in
|
||||||
|
# any given party. Between 2-8.
|
||||||
|
max-players: 8
|
||||||
|
|
||||||
# Redirects vanilla experience obtained to MMOCore
|
# Redirects vanilla experience obtained to MMOCore
|
||||||
# class experience. You can define the % of the vanilla
|
# class experience. You can define the % of the vanilla
|
||||||
# experience that is being transfered as MMOCore exp.
|
# experience that is being transfered as MMOCore exp.
|
||||||
|
Loading…
Reference in New Issue
Block a user