mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-10 06:38:35 +00:00
Better logger support
This commit is contained in:
@ -30,6 +30,8 @@ import java.util.Iterator;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import static org.slf4j.LoggerFactory.getLogger;
|
||||
|
||||
public class InspectBrush extends BrushTool {
|
||||
|
||||
/**
|
||||
@ -62,13 +64,13 @@ public class InspectBrush extends BrushTool {
|
||||
public boolean perform(final Player player, LocalSession session, boolean rightClick) {
|
||||
if (!player.hasPermission("worldedit.tool.inspect")) {
|
||||
player.print(Caption.of("", "worldedit.tool.inspect"));
|
||||
System.out.println("No tool control");
|
||||
getLogger(InspectBrush.class).debug("No tool control");
|
||||
return false;
|
||||
}
|
||||
if (!Settings.IMP.HISTORY.USE_DATABASE) {
|
||||
player.print(Caption.of("fawe.error.setting.disable",
|
||||
"history.use-database (Import with /history import )"));
|
||||
System.out.println("No db");
|
||||
getLogger(InspectBrush.class).debug("No db");
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
@ -109,10 +111,9 @@ public class InspectBrush extends BrushTool {
|
||||
}
|
||||
player.print(Caption.of("fawe.worldedit.tool.tool.inspect.info.footer", count));
|
||||
} catch (IOException e) {
|
||||
System.out.println("IOE");
|
||||
throw new RuntimeException(e);
|
||||
} catch (Throwable e) {
|
||||
System.out.println("E throw");
|
||||
getLogger(InspectBrush.class).error("E throw", e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -352,7 +352,6 @@ public class HeightMapMCAGenerator extends MCAWriter implements StreamChange, Dr
|
||||
|
||||
public IChunkSet getChunk(int chunkX, int chunkZ) {
|
||||
// TODO don't generate new Writeable MCA chunk
|
||||
System.out.println("TODO don't generate new Writeable MCA chunk");
|
||||
MCAChunk tmp = new MCAChunk();
|
||||
int bx = chunkX << 4;
|
||||
int bz = chunkZ << 4;
|
||||
|
Reference in New Issue
Block a user