From 8f097c74546a1debaa397503a0d8f1b296e7d6a7 Mon Sep 17 00:00:00 2001 From: ZeroEpoch1969 <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Fri, 15 Mar 2019 16:36:44 -0700 Subject: [PATCH] . --- TotalFreedomMod.iml | 16 ++++++++++++---- pom.xml | 5 +++-- .../httpd/module/Module_schematic.java | 5 +++-- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/TotalFreedomMod.iml b/TotalFreedomMod.iml index 3ec7936e..068870e6 100644 --- a/TotalFreedomMod.iml +++ b/TotalFreedomMod.iml @@ -35,6 +35,7 @@ + @@ -58,18 +59,25 @@ - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index d47e3e7d..8c214409 100644 --- a/pom.xml +++ b/pom.xml @@ -158,8 +158,9 @@ net.coreprotect coreprotect - 2.15.0 - provided + 2.16.0 + system + ${project.basedir}/lib/CoreProtect-2.16.0.jar diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_schematic.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_schematic.java index 7df40767..cef348c8 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_schematic.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_schematic.java @@ -30,7 +30,8 @@ public class Module_schematic extends HTTPDModule private static final Pattern SCHEMATIC_FILENAME_LC = Pattern.compile("^[a-z0-9_'!,\\-]*\\.(schem|schematic)$"); private static final String[] SCHEMATIC_FILTER = new String[] { - "schematic" + "schematic", + "schem" }; private static final String UPLOAD_FORM = "
\n" + "

Select a schematic file to upload. Filenames must be alphanumeric, between 1 and 30 characters long (inclusive), and have a .schematic extension.

\n" @@ -133,7 +134,7 @@ public class Module_schematic extends HTTPDModule final String remoteAddress = socket.getInetAddress().getHostAddress(); if (!isAuthorized(remoteAddress)) { - out.append(HTMLGenerationTools.paragraph("Schematic upload access denied: Your IP, " + remoteAddress + ", is not registered to a superadmin on this server.")); + out.append(HTMLGenerationTools.paragraph("Schematic upload access denied: Your IP, " + remoteAddress + ", is not registered to an admin on this server.")); } else {