mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
chore: Format our loggers properly
This commit is contained in:
@ -377,8 +377,8 @@ public abstract class ChunkListener implements Listener {
|
||||
if (Math.abs(velocity.getX()) > vertical
|
||||
|| Math.abs(velocity.getZ()) > vertical) {
|
||||
LOGGER.warn(
|
||||
"[FAWE `tick-limiter`] Detected and cancelled rogue FireWork at "
|
||||
+ ent.getLocation());
|
||||
"[FAWE `tick-limiter`] Detected and cancelled rogue FireWork at {}",
|
||||
ent.getLocation());
|
||||
ent.remove();
|
||||
}
|
||||
}
|
||||
@ -408,7 +408,7 @@ public abstract class ChunkListener implements Listener {
|
||||
if (rateLimit <= 0) {
|
||||
rateLimit = 20;
|
||||
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);
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ public class BukkitServerInterface extends AbstractPlatform implements MultiUser
|
||||
RelighterFactory getRelighterFactory() {
|
||||
if (this.relighterFactory == null) {
|
||||
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;
|
||||
}
|
||||
|
@ -301,10 +301,10 @@ public class BukkitWorld extends AbstractWorld {
|
||||
if (treeTypeMapping.get(type) == null) {
|
||||
LOGGER.error("No TreeType mapping for TreeGenerator.TreeType." + type);
|
||||
//FAWE start
|
||||
LOGGER.info("The above message is displayed because your FAWE version is newer than " + Bukkit.getVersion() +
|
||||
" and contains features of future minecraft versions which do not exist in "
|
||||
+ Bukkit.getVersion() + ", hence the tree type " + type + " is not available. This is not an error. " +
|
||||
"This version will work on your version of Minecraft. This is an informative message only");
|
||||
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 {} hence the tree type" +
|
||||
"{} is not available. This is not an error. This version will work on your version of Minecraft." +
|
||||
"This is an informative message only.", Bukkit.getVersion(), Bukkit.getVersion(), type);
|
||||
//FAWE end
|
||||
}
|
||||
}
|
||||
|
@ -367,8 +367,8 @@ public class WorldEditPlugin extends JavaPlugin {
|
||||
} else {
|
||||
//FAWE start - Identify as FAWE
|
||||
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() + ") "
|
||||
+ "that handles the world editing.");
|
||||
+ "but it seems that you have another implementation of FastAsyncWorldEdit installed ({}) "
|
||||
+ "that handles the world editing.", platform.getPlatformName());
|
||||
//FAWE end
|
||||
}
|
||||
this.adapter.invalidate();
|
||||
|
Reference in New Issue
Block a user