mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
Quick fix
This commit is contained in:
parent
5a352b2ca0
commit
10dd546c09
@ -18,7 +18,7 @@ public class AdminListener extends PlexListener
|
||||
{
|
||||
String userSender = event.getSender().getName();
|
||||
PlexPlayer target = event.getPlexPlayer();
|
||||
if (!target.getRank().isEmpty())
|
||||
if (target.getRankFromString().isAtLeast(Rank.ADMIN))
|
||||
{
|
||||
PlexUtils.broadcast(messageComponent("adminReadded", userSender, target.getName(), target.getRankFromString().getReadable()));
|
||||
}
|
||||
@ -29,7 +29,6 @@ public class AdminListener extends PlexListener
|
||||
}
|
||||
target.setAdminActive(true);
|
||||
DataUtils.update(target);
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@ -37,7 +36,6 @@ public class AdminListener extends PlexListener
|
||||
{
|
||||
String userSender = event.getSender().getName();
|
||||
PlexPlayer target = event.getPlexPlayer();
|
||||
// target.setRank("");
|
||||
target.setAdminActive(false);
|
||||
DataUtils.update(target);
|
||||
PlexUtils.broadcast(messageComponent("adminRemoved", userSender, target.getName()));
|
||||
|
Loading…
Reference in New Issue
Block a user