Merge pull request #33 from AtlasMediaGroup/FS-93

Fixed permission not setting for new players (FS-93)
This commit is contained in:
Paldiu 2021-03-17 09:06:45 -05:00 committed by GitHub
commit d0a195647c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 6 deletions

View File

@ -40,6 +40,7 @@ public class Command_deop extends FreedomCommand
matchedPlayerNames.add(player.getName());
player.setOp(false);
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
plugin.rm.updateDisplay(player);
}
}
}

View File

@ -20,6 +20,7 @@ public class Command_deopall extends FreedomCommand
{
player.setOp(false);
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
plugin.rm.updateDisplay(player);
}
return true;

View File

@ -41,6 +41,7 @@ public class Command_op extends FreedomCommand
matchedPlayerNames.add(player.getName());
player.setOp(true);
player.sendMessage(FreedomCommand.YOU_ARE_OP);
plugin.rm.updateDisplay(player);
}
}
}

View File

@ -22,6 +22,7 @@ public class Command_opall extends FreedomCommand
{
player.setOp(true);
player.sendMessage(FreedomCommand.YOU_ARE_OP);
plugin.rm.updateDisplay(player);
}
}

View File

@ -17,6 +17,7 @@ public class Command_opme extends FreedomCommand
FUtil.adminAction(sender.getName(), "Opping " + sender.getName(), false);
sender.setOp(true);
sender.sendMessage(FreedomCommand.YOU_ARE_OP);
plugin.rm.updateDisplay(playerSender);
return true;
}
}

View File

@ -117,10 +117,4 @@ public class PermissionManager extends FreedomService
setPermissions(player);
}
}
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerJoin(PlayerJoinEvent event)
{
setPermissions(event.getPlayer());
}
}