From e10774598e3fe9ee06201fa4b1f16d115abc458d Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Mon, 25 Jul 2022 18:49:18 +0200 Subject: [PATCH] chore: Reword light command messages (#1885) --- .../worldedit/command/RegionCommands.java | 18 ++++-------------- .../src/main/resources/lang/strings.json | 3 ++- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java index d8e28084a..092c97777 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java @@ -159,18 +159,6 @@ public class RegionCommands { actor.print(Caption.of("fawe.info.lighting.propagate.selection", count)); } - // @Command( - // name = "/getlighting", - // desc = "Get the light at a position" - // ) - // @CommandPermissions("worldedit.light.fix") - // public void getLighting(Player player, EditSession editSession) throws WorldEditException { - // final Location loc = player.getLocation(); - // int block = editSession.getBlockLight(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()); - // int sky = editSession.getSkyLight(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()); - // player.print(TextComponent.of("Light: " + block + " | " + sky)); - // } - @Command( name = "/removelighting", aliases = "/removelight", @@ -202,6 +190,7 @@ public class RegionCommands { } } + @Deprecated(since = "TODO", forRemoval = true) @Command( name = "/setblocklight", aliases = "/setlight", @@ -209,16 +198,17 @@ public class RegionCommands { ) @CommandPermissions("worldedit.light.set") public void setlighting(Actor actor, EditSession editSession, @Selection Region region) { - actor.print(Caption.of("fawe.info.temporarily-not-working")); + actor.print(Caption.of("fawe.info.light-blocks")); } + @Deprecated(since = "TODO", forRemoval = true) @Command( name = "/setskylight", desc = "Set sky lighting in a selection" ) @CommandPermissions("worldedit.light.set") public void setskylighting(Actor actor, @Selection Region region) { - actor.print(Caption.of("fawe.info.temporarily-not-working")); + actor.print(Caption.of("fawe.info.light-blocks")); } @Command( diff --git a/worldedit-core/src/main/resources/lang/strings.json b/worldedit-core/src/main/resources/lang/strings.json index 083ea2406..5c6a411d2 100644 --- a/worldedit-core/src/main/resources/lang/strings.json +++ b/worldedit-core/src/main/resources/lang/strings.json @@ -4,7 +4,7 @@ "fawe.worldedit.history.find.element.more": " - Changes: {0}\n - Bounds: {1} -> {2}\n - Extra: {3}\n - Size on Disk: {4}", "fawe.worldedit.history.find.hover": "{0} blocks changed, click for more info", "fawe.worldedit.history.distr.summary_null": "Could not find edit summary for inputs.", - "fawe.info.lighting.propagate.selection": "Lighting has been propagated in {0} chunks. (Note: To remove light use //removelight)", + "fawe.info.lighting.propagate.selection": "Lighting has been propagated in {0} chunks.", "fawe.info.updated.lighting.selection": "Lighting has been updated in {0} chunks. (It may take a second for the packets to send)", "fawe.info.set.region": "Selection set to your current allowed region", "fawe.info.worldedit.toggle.tips.on": "Disabled FAWE tips.", @@ -13,6 +13,7 @@ "fawe.info.worldedit.restricted": "Your FAWE edits are now restricted.", "fawe.info.worldedit.oom.admin": "Possible options:\n - //fast\n - Do smaller edits\n - Allocate more memory\n - Disable `max-memory-percent`", "fawe.info.temporarily-not-working": "Temporarily not working", + "fawe.info.light-blocks": "Light blocks are more reliable than light sources, please use the blocks. This command is deprecated and will be removed in a future version.", "fawe.info.update-available": "An update for FastAsyncWorldEdit is available. You are {0} build(s) out of date.\nYou are running build {1}, the latest version is build {2}.\nUpdate at {3}", "fawe.web.generating.link": "Uploading {0}, please wait...", "fawe.web.generating.link.failed": "Failed to generate download link!",