mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bbf1ee05e | ||
|
|
c0e567f326 | ||
|
|
db6a83b2c0 |
No files matched your search
@@ -38,6 +38,10 @@ public class MTLogger implements ILogger {
|
|||||||
unprocessed.clear();
|
unprocessed.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearPlayers() {
|
||||||
|
players.clear();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void logCommand(String message) {
|
public void logCommand(String message) {
|
||||||
for (ILogger logger : loggers) {
|
for (ILogger logger : loggers) {
|
||||||
|
|||||||
@@ -98,8 +98,7 @@ public class MineTweakerMod {
|
|||||||
new MCFormatter(),
|
new MCFormatter(),
|
||||||
new MCVanilla());
|
new MCVanilla());
|
||||||
|
|
||||||
MineTweakerImplementationAPI.logger
|
MineTweakerImplementationAPI.logger.addLogger(new FileLogger(new File("logs/minetweaker.log")));
|
||||||
.addLogger(new FileLogger(new File("logs" + File.pathSeparator + "minetweaker.log")));
|
|
||||||
MineTweakerImplementationAPI.platform = MCPlatformFunctions.INSTANCE;
|
MineTweakerImplementationAPI.platform = MCPlatformFunctions.INSTANCE;
|
||||||
|
|
||||||
File globalDir = new File("scripts");
|
File globalDir = new File("scripts");
|
||||||
@@ -192,5 +191,6 @@ public class MineTweakerMod {
|
|||||||
public void onServerStopped(FMLServerStoppedEvent ev) {
|
public void onServerStopped(FMLServerStoppedEvent ev) {
|
||||||
MineTweakerImplementationAPI.onServerStop();
|
MineTweakerImplementationAPI.onServerStop();
|
||||||
MineTweakerImplementationAPI.setScriptProvider(scriptsGlobal);
|
MineTweakerImplementationAPI.setScriptProvider(scriptsGlobal);
|
||||||
|
MineTweakerImplementationAPI.logger.clearPlayers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -80,7 +80,7 @@ public class MCServer extends AbstractServer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class MCCommand implements ICommand {
|
private static class MCCommand implements ICommand {
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String usage;
|
private final String usage;
|
||||||
@@ -148,7 +148,7 @@ public class MCServer extends AbstractServer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class AddCommandAction implements IUndoableAction {
|
private static class AddCommandAction implements IUndoableAction {
|
||||||
|
|
||||||
private final ICommand command;
|
private final ICommand command;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user