From 14c9db3433b570686190b99d48034b27762e5d19 Mon Sep 17 00:00:00 2001 From: ZeroEpoch1969 <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Mon, 9 Sep 2019 22:43:02 -0700 Subject: [PATCH] i missed something as usual --- .../me/totalfreedom/totalfreedommod/admin/ActivityLog.java | 4 ++-- .../totalfreedommod/httpd/module/Module_bans.java | 2 +- .../totalfreedommod/httpd/module/Module_logfile.java | 4 ++-- .../totalfreedommod/httpd/module/Module_punishments.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/admin/ActivityLog.java b/src/main/java/me/totalfreedom/totalfreedommod/admin/ActivityLog.java index e42e6543..c36b130a 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/admin/ActivityLog.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/admin/ActivityLog.java @@ -166,7 +166,7 @@ public class ActivityLog extends FreedomService } } - @EventHandler(priority = EventPriority.MONITOR) + @EventHandler(priority = EventPriority.HIGH) public void onPlayerJoin(PlayerJoinEvent event) { Player player = event.getPlayer(); @@ -178,7 +178,7 @@ public class ActivityLog extends FreedomService } } - @EventHandler(priority = EventPriority.MONITOR) + @EventHandler(priority = EventPriority.HIGH) public void onPlayerQuit(PlayerQuitEvent event) { Player player = event.getPlayer(); diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_bans.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_bans.java index dcd3a6b3..ef512698 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_bans.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_bans.java @@ -25,7 +25,7 @@ public class Module_bans extends HTTPDModule if (!isAuthorized(remoteAddress)) { return new NanoHTTPD.Response(NanoHTTPD.Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, - "You may not view the ban list, Your IP. " + remoteAddress + ", is not registered to an admin on the server."); + "You may not view the ban list. Your IP, " + remoteAddress + ", is not registered to an admin on the server."); } else { diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_logfile.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_logfile.java index c9f3dc30..ad735a0d 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_logfile.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_logfile.java @@ -109,14 +109,14 @@ public class Module_logfile extends HTTPDModule { if (!isAuthorized(remoteAddress)) { - out.append(HTMLGenerationTools.paragraph("Log files access denied: Your IP, " + remoteAddress + ", is not registered to a superadmin on this server.")); + out.append(HTMLGenerationTools.paragraph("Log files access denied: Your IP, " + remoteAddress + ", is not registered to an admin on this server.")); FLog.info("An unregistered IP (" + remoteAddress + ") has tried to download a log file"); } else { try { - FLog.info("The IP \"" + remoteAddress + "\" is downloading log file:" + params.get("logFileName")); + FLog.info("The IP \"" + remoteAddress + "\" is downloading log file: " + params.get("logFileName")); throw new ResponseOverrideException(downloadLogFile(params.get("logFileName"))); } catch (LogFileTransferException ex) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_punishments.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_punishments.java index 22c39000..cf4d660b 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_punishments.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_punishments.java @@ -25,7 +25,7 @@ public class Module_punishments extends HTTPDModule if (!isAuthorized(remoteAddress)) { return new NanoHTTPD.Response(NanoHTTPD.Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, - "You may not view the punishment list, Your IP, " + remoteAddress + ", is not registered to an admin on the server."); + "You may not view the punishment list. Your IP, " + remoteAddress + ", is not registered to an admin on the server."); } else {