mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Register permbans module (whoops).
This commit is contained in:
parent
ded31e4640
commit
81ee5f04dd
@ -34,6 +34,7 @@ public class Module_file extends TFM_HTTPD_Module
|
||||
MIME_TYPES.put("java", "text/x-java-source, text/java");
|
||||
MIME_TYPES.put("txt", "text/plain");
|
||||
MIME_TYPES.put("asc", "text/plain");
|
||||
MIME_TYPES.put("yml", "text/yaml");
|
||||
MIME_TYPES.put("gif", "image/gif");
|
||||
MIME_TYPES.put("jpg", "image/jpeg");
|
||||
MIME_TYPES.put("jpeg", "image/jpeg");
|
||||
|
@ -73,7 +73,8 @@ public class TFM_HTTPD_Manager
|
||||
HELP(true, "help"),
|
||||
LIST(true, "list"),
|
||||
FILE(false, "file"),
|
||||
SCHEMATIC(false, "schematic");
|
||||
SCHEMATIC(false, "schematic"),
|
||||
PERMBANS(false, "permbans");
|
||||
private final boolean runOnBukkitThread;
|
||||
private final String name;
|
||||
|
||||
@ -174,6 +175,9 @@ public class TFM_HTTPD_Manager
|
||||
case SCHEMATIC:
|
||||
response = new Module_schematic(uri, method, headers, params, files, socket).getResponse();
|
||||
break;
|
||||
case PERMBANS:
|
||||
response = new Module_permbans(uri, method, headers, params, files, socket).getResponse();
|
||||
break;
|
||||
default:
|
||||
response = new Module_file(uri, method, headers, params, files, socket).getResponse();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user