Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
chore: Format our loggers properly
Dieser Commit ist enthalten in:
Ursprung
e2a1721a5c
Commit
19de815ab4
@ -377,8 +377,8 @@ public abstract class ChunkListener implements Listener {
|
|||||||
if (Math.abs(velocity.getX()) > vertical
|
if (Math.abs(velocity.getX()) > vertical
|
||||||
|| Math.abs(velocity.getZ()) > vertical) {
|
|| Math.abs(velocity.getZ()) > vertical) {
|
||||||
LOGGER.warn(
|
LOGGER.warn(
|
||||||
"[FAWE `tick-limiter`] Detected and cancelled rogue FireWork at "
|
"[FAWE `tick-limiter`] Detected and cancelled rogue FireWork at {}",
|
||||||
+ ent.getLocation());
|
ent.getLocation());
|
||||||
ent.remove();
|
ent.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -408,7 +408,7 @@ public abstract class ChunkListener implements Listener {
|
|||||||
if (rateLimit <= 0) {
|
if (rateLimit <= 0) {
|
||||||
rateLimit = 20;
|
rateLimit = 20;
|
||||||
LOGGER.warn(
|
LOGGER.warn(
|
||||||
"[FAWE `tick-limiter`] Detected and cancelled item lag source at " + loc);
|
"[FAWE `tick-limiter`] Detected and cancelled item lag source at {}", loc);
|
||||||
}
|
}
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ public class BukkitServerInterface extends AbstractPlatform implements MultiUser
|
|||||||
RelighterFactory getRelighterFactory() {
|
RelighterFactory getRelighterFactory() {
|
||||||
if (this.relighterFactory == null) {
|
if (this.relighterFactory == null) {
|
||||||
this.relighterFactory = this.plugin.getBukkitImplAdapter().getRelighterFactory();
|
this.relighterFactory = this.plugin.getBukkitImplAdapter().getRelighterFactory();
|
||||||
LOGGER.info("Using " + this.relighterFactory.getClass().getCanonicalName() + " as relighter factory.");
|
LOGGER.info("Using {} as relighter factory.", this.relighterFactory.getClass().getCanonicalName());
|
||||||
}
|
}
|
||||||
return this.relighterFactory;
|
return this.relighterFactory;
|
||||||
}
|
}
|
||||||
|
@ -301,10 +301,10 @@ public class BukkitWorld extends AbstractWorld {
|
|||||||
if (treeTypeMapping.get(type) == null) {
|
if (treeTypeMapping.get(type) == null) {
|
||||||
LOGGER.error("No TreeType mapping for TreeGenerator.TreeType." + type);
|
LOGGER.error("No TreeType mapping for TreeGenerator.TreeType." + type);
|
||||||
//FAWE start
|
//FAWE start
|
||||||
LOGGER.info("The above message is displayed because your FAWE version is newer than " + Bukkit.getVersion() +
|
LOGGER.info("The above message is displayed because your FAWE version is newer than {}" +
|
||||||
" and contains features of future minecraft versions which do not exist in "
|
" and contains features of future minecraft versions which do not exist in {} hence the tree type" +
|
||||||
+ Bukkit.getVersion() + ", hence the tree type " + type + " is not available. This is not an error. " +
|
"{} is not available. This is not an error. This version will work on your version of Minecraft." +
|
||||||
"This version will work on your version of Minecraft. This is an informative message only");
|
"This is an informative message only.", Bukkit.getVersion(), Bukkit.getVersion(), type);
|
||||||
//FAWE end
|
//FAWE end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -367,8 +367,8 @@ public class WorldEditPlugin extends JavaPlugin {
|
|||||||
} else {
|
} else {
|
||||||
//FAWE start - Identify as FAWE
|
//FAWE start - Identify as FAWE
|
||||||
LOGGER.info("FastAsyncWorldEdit could not find a Bukkit adapter for this MC version, "
|
LOGGER.info("FastAsyncWorldEdit could not find a Bukkit adapter for this MC version, "
|
||||||
+ "but it seems that you have another implementation of FastAsyncWorldEdit installed (" + platform.getPlatformName() + ") "
|
+ "but it seems that you have another implementation of FastAsyncWorldEdit installed ({}) "
|
||||||
+ "that handles the world editing.");
|
+ "that handles the world editing.", platform.getPlatformName());
|
||||||
//FAWE end
|
//FAWE end
|
||||||
}
|
}
|
||||||
this.adapter.invalidate();
|
this.adapter.invalidate();
|
||||||
|
@ -190,7 +190,7 @@ public class CLIWorldEdit {
|
|||||||
this.commandSender = new CLICommandSender(this, LOGGER);
|
this.commandSender = new CLICommandSender(this, LOGGER);
|
||||||
this.platform = new CLIPlatform(this);
|
this.platform = new CLIPlatform(this);
|
||||||
//FAWE start - identify as Fawe
|
//FAWE start - identify as Fawe
|
||||||
LOGGER.info("FastAsyncWorldEdit CLI (version " + getInternalVersion() + ") is loaded");
|
LOGGER.info("FastAsyncWorldEdit CLI (version {}) is loaded", getInternalVersion());
|
||||||
//FAWE end
|
//FAWE end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ public class FastSchematicReader extends NBTSchematicReader {
|
|||||||
try {
|
try {
|
||||||
state = BlockState.get(palettePart);
|
state = BlockState.get(palettePart);
|
||||||
} catch (InputParseException ignored) {
|
} catch (InputParseException ignored) {
|
||||||
LOGGER.warn("Invalid BlockState in palette: " + palettePart + ". Block will be replaced with air.");
|
LOGGER.warn("Invalid BlockState in palette: {}. Block will be replaced with air.", palettePart);
|
||||||
state = BlockTypes.AIR.getDefaultState();
|
state = BlockTypes.AIR.getDefaultState();
|
||||||
}
|
}
|
||||||
int index = (int) entry.getValue();
|
int index = (int) entry.getValue();
|
||||||
|
@ -722,7 +722,7 @@ public final class EditSessionBuilder {
|
|||||||
"FAWE config.yml to let FAWE recognize the extent:"));
|
"FAWE config.yml to let FAWE recognize the extent:"));
|
||||||
event.getActor().print(toReturn.getClass().getName());
|
event.getActor().print(toReturn.getClass().getName());
|
||||||
} else {
|
} else {
|
||||||
LOGGER.warn("Potentially unsafe extent blocked: " + toReturn.getClass().getName());
|
LOGGER.warn("Potentially unsafe extent blocked: {}", toReturn.getClass().getName());
|
||||||
LOGGER.warn(
|
LOGGER.warn(
|
||||||
" - For area restrictions and block logging, it is recommended that third party plugins use the FAWE API");
|
" - For area restrictions and block logging, it is recommended that third party plugins use the FAWE API");
|
||||||
LOGGER.warn(
|
LOGGER.warn(
|
||||||
|
@ -206,7 +206,7 @@ public class MCEditSchematicReader extends NBTSchematicReader {
|
|||||||
//FAWE start - tile entity safety - perhaps caused by the old issue with tile entities created in the wrong
|
//FAWE start - tile entity safety - perhaps caused by the old issue with tile entities created in the wrong
|
||||||
// position in schematics?
|
// position in schematics?
|
||||||
if (index >= blocks.length) {
|
if (index >= blocks.length) {
|
||||||
LOGGER.warn("Skipping corrupt tile entity at position " + x + " " + y + " " + z + " in schematic.");
|
LOGGER.warn("Skipping corrupt tile entity at position {} {} {} in schematic.", x, y, z);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,8 +275,8 @@ public class MCEditSchematicReader extends NBTSchematicReader {
|
|||||||
byte data = blockData[index];
|
byte data = blockData[index];
|
||||||
int combined = block << 8 | data;
|
int combined = block << 8 | data;
|
||||||
if (unknownBlocks.add(combined)) {
|
if (unknownBlocks.add(combined)) {
|
||||||
LOGGER.warn("Unknown block when loading schematic: "
|
LOGGER.warn("Unknown block when loading schematic: {} {}. This is most likely a" +
|
||||||
+ block + ":" + data + ". This is most likely a bad schematic.");
|
"bad schematic.", block, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (WorldEditException ignored) { // BlockArrayClipboard won't throw this
|
} catch (WorldEditException ignored) { // BlockArrayClipboard won't throw this
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren