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

This commit is contained in:
Telesphoreo 2022-11-26 04:31:43 -06:00
parent ed638679b2
commit c216bdc5a4
No known key found for this signature in database
GPG Key ID: B5CDDEBA526C0130
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,8 @@ public class RemoveLoginMessageCMD extends PlexCommand
}
else if (args[0].equalsIgnoreCase("-o"))
{
checkRank(sender, Rank.SENIOR_ADMIN, "plex.removeloginmessage.others");
if (args.length < 2)
{
return messageComponent("specifyPlayer");

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");