mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-09 22:28:34 +00:00
Add permission check for the -o flag on the login message commands
This commit is contained in:
@ -31,6 +31,8 @@ public class RemoveLoginMessageCMD extends PlexCommand
|
|||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("-o"))
|
else if (args[0].equalsIgnoreCase("-o"))
|
||||||
{
|
{
|
||||||
|
checkRank(sender, Rank.SENIOR_ADMIN, "plex.removeloginmessage.others");
|
||||||
|
|
||||||
if (args.length < 2)
|
if (args.length < 2)
|
||||||
{
|
{
|
||||||
return messageComponent("specifyPlayer");
|
return messageComponent("specifyPlayer");
|
||||||
|
@ -34,6 +34,8 @@ public class SetLoginMessageCMD extends PlexCommand
|
|||||||
{
|
{
|
||||||
if (args[0].equals("-o"))
|
if (args[0].equals("-o"))
|
||||||
{
|
{
|
||||||
|
checkRank(sender, Rank.SENIOR_ADMIN, "plex.setloginmessage.others");
|
||||||
|
|
||||||
if (args.length < 2)
|
if (args.length < 2)
|
||||||
{
|
{
|
||||||
return messageComponent("specifyPlayer");
|
return messageComponent("specifyPlayer");
|
||||||
|
Reference in New Issue
Block a user