Separated the Classic Datapack to it's own folder.
This commit is contained in:
@ -123,9 +123,9 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
{
|
||||
final NpcHtmlMessage adminReply = new NpcHtmlMessage();
|
||||
|
||||
DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(Config.DATAPACK_ROOT + "/data/events/" + eventName)));
|
||||
DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(Config.DATAPACK_ROOT + "events/" + eventName)));
|
||||
BufferedReader inbr = new BufferedReader(new InputStreamReader(in));
|
||||
adminReply.setFile("en", "data/html/mods/EventEngine/Participation.htm");
|
||||
adminReply.setFile("en", "html/mods/EventEngine/Participation.htm");
|
||||
adminReply.replace("%eventName%", eventName);
|
||||
adminReply.replace("%eventCreator%", inbr.readLine());
|
||||
adminReply.replace("%eventInfo%", inbr.readLine());
|
||||
@ -146,7 +146,7 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
{
|
||||
// There is an exception here for not using the ST. We use spaces (ST delim) for the event name.
|
||||
String eventName = command.substring(16);
|
||||
File file = new File(Config.DATAPACK_ROOT + "/data/events/" + eventName);
|
||||
File file = new File(Config.DATAPACK_ROOT + "events/" + eventName);
|
||||
file.delete();
|
||||
showMainPage(activeChar);
|
||||
}
|
||||
@ -165,7 +165,7 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
FileOutputStream file = new FileOutputStream(new File(Config.DATAPACK_ROOT, "data/events/" + tempName));
|
||||
FileOutputStream file = new FileOutputStream(new File(Config.DATAPACK_ROOT, "events/" + tempName));
|
||||
PrintStream p = new PrintStream(file);
|
||||
p.println(activeChar.getName());
|
||||
p.println(tempBuffer);
|
||||
@ -438,7 +438,7 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
|
||||
private String showStoredEvents()
|
||||
{
|
||||
final File dir = new File(Config.DATAPACK_ROOT, "/data/events");
|
||||
final File dir = new File(Config.DATAPACK_ROOT, "events/");
|
||||
if (dir.isFile())
|
||||
{
|
||||
return "<font color=\"FF0000\">The directory '" + dir.getAbsolutePath() + "' is a file or is corrupted!</font><br>";
|
||||
|
Reference in New Issue
Block a user