From b3aec8f839175e41e3305d2bb91b676c98280ba4 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 2 May 2021 20:31:23 +0200 Subject: [PATCH] Fix empty default flag message --- Core/src/main/java/com/plotsquared/core/plot/PlotArea.java | 6 ++---- Core/src/main/resources/lang/messages_en.json | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java index b9ef1b7c7..c9f12a903 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java @@ -124,7 +124,6 @@ public abstract class PlotArea { new FlagContainer(GlobalFlagContainer.getInstance()); private final YamlConfiguration worldConfiguration; private final GlobalBlockQueue globalBlockQueue; - private int maxPlotMembers = 128; private boolean autoMerge = false; private boolean allowSigns = true; private boolean miscSpawnUnowned = false; @@ -325,7 +324,6 @@ public abstract class PlotArea { this.miscSpawnUnowned = config.getBoolean("misc_spawn_unowned"); this.mobSpawnerSpawning = config.getBoolean("mob_spawner_spawning"); this.autoMerge = config.getBoolean("plot.auto_merge"); - this.maxPlotMembers = config.getInt("limits.max-members"); this.allowSigns = config.getBoolean("plot.create_signs"); String biomeString = config.getString("plot.biome"); if (!biomeString.startsWith("minecraft:")) { @@ -425,7 +423,7 @@ public abstract class PlotArea { Collection> flagCollection = this.getFlagContainer().getFlagMap().values(); flagsComponent = getFlagsComponent(flagsComponent, flagCollection); ConsolePlayer.getConsole().sendMessage( - StaticCaption.of("[P2] - area flags: "), + TranslatableCaption.of("flags.area_flags"), Template.of("flags", flagsComponent) ); @@ -450,7 +448,7 @@ public abstract class PlotArea { Collection> roadFlagCollection = this.getRoadFlagContainer().getFlagMap().values(); roadFlagsComponent = getFlagsComponent(roadFlagsComponent, roadFlagCollection); ConsolePlayer.getConsole().sendMessage( - StaticCaption.of("[P2] - road flags: "), + TranslatableCaption.of("flags.road_flags"), Template.of("flags", roadFlagsComponent) ); diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index c8b9bd829..cdc29eb0a 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -586,6 +586,8 @@ "flags.flag_error_stringlist": "Flag value must be a string list.", "flags.flag_error_weather": "Flag must be a weather: 'rain' or 'sun'.", "flags.flag_error_music": "Flag value must be a valid music disc ID.", + "flags.area_flags": "Area flags: ", + "flags.road_flags": "Road flags: ", "commands.description.add": "Allow a user to build in a plot while the plot owner is online.", "commands.description.alias": "Set the plot alias.", "commands.description.area": "Create a new plot area.",