Fixed issue - ignoring "useDisbandGui" if the player is not an OP

This commit is contained in:
BrowkS 2020-05-07 22:36:39 +03:00
parent bf23521309
commit 541e1fc69b

View File

@ -82,7 +82,7 @@ public class CmdDisband extends FCommand {
} }
if (!access) { if (!access) {
if (Conf.useDisbandGUI && !context.fPlayer.isAdminBypassing() || !context.player.isOp()) { if (Conf.useDisbandGUI && (!context.fPlayer.isAdminBypassing() || !context.player.isOp())) {
if (!disbandMap.containsKey(context.player.getUniqueId().toString())) { if (!disbandMap.containsKey(context.player.getUniqueId().toString())) {
new FDisbandFrame(context.faction).buildGUI(context.fPlayer); new FDisbandFrame(context.faction).buildGUI(context.fPlayer);
return; return;