Register permbans module (whoops).

This commit is contained in:
StevenLawson 2013-09-14 22:15:30 -04:00
parent ded31e4640
commit 81ee5f04dd
2 changed files with 6 additions and 1 deletions

View file

@ -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");

View file

@ -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();
}