mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-16 12:26:12 +00:00
i missed something as usual
This commit is contained in:
parent
44f101841b
commit
14c9db3433
@ -166,7 +166,7 @@ public class ActivityLog extends FreedomService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
public void onPlayerJoin(PlayerJoinEvent event)
|
public void onPlayerJoin(PlayerJoinEvent event)
|
||||||
{
|
{
|
||||||
Player player = event.getPlayer();
|
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)
|
public void onPlayerQuit(PlayerQuitEvent event)
|
||||||
{
|
{
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
@ -25,7 +25,7 @@ public class Module_bans extends HTTPDModule
|
|||||||
if (!isAuthorized(remoteAddress))
|
if (!isAuthorized(remoteAddress))
|
||||||
{
|
{
|
||||||
return new NanoHTTPD.Response(NanoHTTPD.Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT,
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -109,14 +109,14 @@ public class Module_logfile extends HTTPDModule
|
|||||||
{
|
{
|
||||||
if (!isAuthorized(remoteAddress))
|
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");
|
FLog.info("An unregistered IP (" + remoteAddress + ") has tried to download a log file");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
try
|
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")));
|
throw new ResponseOverrideException(downloadLogFile(params.get("logFileName")));
|
||||||
}
|
}
|
||||||
catch (LogFileTransferException ex)
|
catch (LogFileTransferException ex)
|
||||||
|
@ -25,7 +25,7 @@ public class Module_punishments extends HTTPDModule
|
|||||||
if (!isAuthorized(remoteAddress))
|
if (!isAuthorized(remoteAddress))
|
||||||
{
|
{
|
||||||
return new NanoHTTPD.Response(NanoHTTPD.Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT,
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user