mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fixed group command
This commit is contained in:
parent
2d4e870d65
commit
c1415d054e
@ -186,10 +186,9 @@ public class GroupCommand extends BRCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
for (DGroup anyDGroup : plugin.getDGroups()) {
|
||||
if (anyDGroup.getPlayers().contains(player)) {
|
||||
MessageUtil.sendMessage(sender, messageConfig.getMessage(Messages.ERROR_LEAVE_GROUP));
|
||||
}
|
||||
if (DGroup.getByPlayer(player) != null) {
|
||||
MessageUtil.sendMessage(sender, messageConfig.getMessage(Messages.ERROR_LEAVE_GROUP));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!dGroup.getInvitedPlayers().contains(player) && !player.hasPermission("dxl.bypass")) {
|
||||
|
Loading…
Reference in New Issue
Block a user