Remove rank references

This commit is contained in:
Telesphoreo 2023-08-29 15:46:21 -05:00
parent 91e09d982d
commit b7db18284a

View File

@ -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());
} }
} }