mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
Remove rank references
This commit is contained in:
parent
91e09d982d
commit
b7db18284a
@ -96,7 +96,7 @@ public class PlexCMD extends PlexCommand
|
|||||||
{
|
{
|
||||||
if (!hasUpdateAccess(playerSender, sender))
|
if (!hasUpdateAccess(playerSender, sender))
|
||||||
{
|
{
|
||||||
return messageComponent("noPermissionRank", "an Owner or Developer");
|
return messageComponent("noPermissionRank", "a Developer");
|
||||||
}
|
}
|
||||||
for (PlexModule module : plugin.getModuleManager().getModules())
|
for (PlexModule module : plugin.getModuleManager().getModules())
|
||||||
{
|
{
|
||||||
@ -110,7 +110,7 @@ public class PlexCMD extends PlexCommand
|
|||||||
{
|
{
|
||||||
if (!hasUpdateAccess(playerSender, sender))
|
if (!hasUpdateAccess(playerSender, sender))
|
||||||
{
|
{
|
||||||
return messageComponent("noPermissionRank", "an Owner or Developer");
|
return messageComponent("noPermissionRank", "a Developer");
|
||||||
}
|
}
|
||||||
if (!plugin.getUpdateChecker().getUpdateStatusMessage(sender, false, 0))
|
if (!plugin.getUpdateChecker().getUpdateStatusMessage(sender, false, 0))
|
||||||
{
|
{
|
||||||
@ -153,13 +153,11 @@ public class PlexCMD extends PlexCommand
|
|||||||
OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(sender.getName());
|
OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(sender.getName());
|
||||||
if (offlinePlayer.hasPlayedBefore())
|
if (offlinePlayer.hasPlayedBefore())
|
||||||
{
|
{
|
||||||
return PlexUtils.DEVELOPERS.contains(offlinePlayer.getUniqueId().toString())
|
return PlexUtils.DEVELOPERS.contains(offlinePlayer.getUniqueId().toString());
|
||||||
|| plugin.config.getStringList("titles.owners").contains(sender.getName());
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
assert player != null;
|
assert player != null;
|
||||||
return PlexUtils.DEVELOPERS.contains(player.getUniqueId().toString())
|
return PlexUtils.DEVELOPERS.contains(player.getUniqueId().toString());
|
||||||
|| plugin.config.getStringList("titles.owners").contains(player.getName());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user