Add permission check for the -o flag on the login message commands

This commit is contained in:
2022-11-26 04:31:43 -06:00
parent ed638679b2
commit c216bdc5a4
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,8 @@ public class SetLoginMessageCMD extends PlexCommand
{
if (args[0].equals("-o"))
{
checkRank(sender, Rank.SENIOR_ADMIN, "plex.setloginmessage.others");
if (args.length < 2)
{
return messageComponent("specifyPlayer");