mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2024-12-23 00:14:59 +00:00
Fix HTTPD
This commit is contained in:
parent
8a26c888b1
commit
bc6af17e60
3 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ public class AdminsEndpoint extends AbstractServlet
|
||||||
else if (Plex.get().getSystem().equalsIgnoreCase("permissions"))
|
else if (Plex.get().getSystem().equalsIgnoreCase("permissions"))
|
||||||
{
|
{
|
||||||
PlexLog.debug("Plex-HTTPD using permissions check");
|
PlexLog.debug("Plex-HTTPD using permissions check");
|
||||||
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(UUID.fromString(player.getUuid()));
|
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(player.getUuid());
|
||||||
if (!HTTPDModule.getPermissions().playerHas(null, offlinePlayer, "plex.httpd.admins.access"))
|
if (!HTTPDModule.getPermissions().playerHas(null, offlinePlayer, "plex.httpd.admins.access"))
|
||||||
{
|
{
|
||||||
// If the person doesn't have permission, don't return IPs
|
// If the person doesn't have permission, don't return IPs
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class IndefBansEndpoint extends AbstractServlet
|
||||||
else if (Plex.get().getSystem().equalsIgnoreCase("permissions"))
|
else if (Plex.get().getSystem().equalsIgnoreCase("permissions"))
|
||||||
{
|
{
|
||||||
PlexLog.debug("Plex-HTTPD using permissions check");
|
PlexLog.debug("Plex-HTTPD using permissions check");
|
||||||
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(UUID.fromString(player.getUuid()));
|
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(player.getUuid());
|
||||||
if (!HTTPDModule.getPermissions().playerHas(null, offlinePlayer, "plex.httpd.indefbans.access"))
|
if (!HTTPDModule.getPermissions().playerHas(null, offlinePlayer, "plex.httpd.indefbans.access"))
|
||||||
{
|
{
|
||||||
return "Not enough permissions to view this page.";
|
return "Not enough permissions to view this page.";
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class PunishmentsEndpoint extends AbstractServlet
|
||||||
else if (Plex.get().getSystem().equalsIgnoreCase("permissions"))
|
else if (Plex.get().getSystem().equalsIgnoreCase("permissions"))
|
||||||
{
|
{
|
||||||
PlexLog.debug("Plex-HTTPD using permissions check");
|
PlexLog.debug("Plex-HTTPD using permissions check");
|
||||||
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(UUID.fromString(player.getUuid()));
|
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(player.getUuid());
|
||||||
if (!HTTPDModule.getPermissions().playerHas(null, offlinePlayer, "plex.httpd.punishments.access"))
|
if (!HTTPDModule.getPermissions().playerHas(null, offlinePlayer, "plex.httpd.punishments.access"))
|
||||||
{
|
{
|
||||||
// If the person doesn't have permission, don't return IPs
|
// If the person doesn't have permission, don't return IPs
|
||||||
|
|
Loading…
Reference in a new issue