mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
Add permission check for the -o flag on the login message commands
This commit is contained in:
parent
ed638679b2
commit
c216bdc5a4
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user