Update player's permission when opping.

This commit is contained in:
Nathan Curran
2021-03-16 19:56:29 +11:00
parent 2fb8f224e7
commit b9c1970d20
3 changed files with 3 additions and 0 deletions

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;
}
}