mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 12:36:40 +00:00
chore: Exchange debug log levels & component-ify a few messages (#1342)
This commit is contained in:
@ -523,7 +523,7 @@ public class RegionCommands {
|
||||
HeightMapFilter filter = new HeightMapFilter(new GaussianKernel(5, 1.0));
|
||||
float[] changed = heightMap.applyFilter(filter, iterations);
|
||||
int affected = heightMap.applyChanges(changed, snowBlockCount);
|
||||
actor.printInfo(Caption.of("worldedit.snowsmooth.changed", TextComponent.of(affected)));
|
||||
actor.print(Caption.of("worldedit.snowsmooth.changed", TextComponent.of(affected)));
|
||||
return affected;
|
||||
}
|
||||
|
||||
|
@ -432,7 +432,7 @@ public class SchematicCommands {
|
||||
) throws WorldEditException {
|
||||
//FAWE end
|
||||
if (worldEdit.getPlatformManager().queryCapability(Capability.GAME_HOOKS).getDataVersion() == -1) {
|
||||
actor.printError(TranslatableComponent.of("worldedit.schematic.unsupported-minecraft-version"));
|
||||
actor.print(TranslatableComponent.of("worldedit.schematic.unsupported-minecraft-version"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ public class ToolCommands {
|
||||
)
|
||||
@CommandPermissions("worldedit.tool.inspect")
|
||||
public void inspectBrush(Player player, LocalSession session) throws WorldEditException {
|
||||
setTool(player, session, new InspectBrush(), "worldedit.tool.info.equip");
|
||||
setTool(player, session, new InspectBrush(), "worldedit.tool.inspect.equip");
|
||||
}
|
||||
//FAWE end
|
||||
|
||||
|
@ -197,7 +197,7 @@ public class WorldEditCommands {
|
||||
if (hookMode != null) {
|
||||
newMode = hookMode == HookMode.ACTIVE;
|
||||
if (newMode == previousMode) {
|
||||
actor.printError(Caption.of(previousMode
|
||||
actor.print(Caption.of(previousMode
|
||||
? "worldedit.trace.active.already"
|
||||
: "worldedit.trace.inactive.already"));
|
||||
return;
|
||||
@ -206,7 +206,7 @@ public class WorldEditCommands {
|
||||
newMode = !previousMode;
|
||||
}
|
||||
session.setTracingActions(newMode);
|
||||
actor.printInfo(Caption.of(newMode ? "worldedit.trace.active" : "worldedit.trace.inactive"));
|
||||
actor.print(Caption.of(newMode ? "worldedit.trace.active" : "worldedit.trace.inactive"));
|
||||
}
|
||||
|
||||
@Command(
|
||||
|
Reference in New Issue
Block a user