chore: Reword light command messages (#1885)

Dieser Commit ist enthalten in:
Alexander Brandes 2022-07-25 18:49:18 +02:00 committet von GitHub
Ursprung 77a929f6a1
Commit e10774598e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 6 neuen und 15 gelöschten Zeilen

Datei anzeigen

@ -159,18 +159,6 @@ public class RegionCommands {
actor.print(Caption.of("fawe.info.lighting.propagate.selection", count)); 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( @Command(
name = "/removelighting", name = "/removelighting",
aliases = "/removelight", aliases = "/removelight",
@ -202,6 +190,7 @@ public class RegionCommands {
} }
} }
@Deprecated(since = "TODO", forRemoval = true)
@Command( @Command(
name = "/setblocklight", name = "/setblocklight",
aliases = "/setlight", aliases = "/setlight",
@ -209,16 +198,17 @@ public class RegionCommands {
) )
@CommandPermissions("worldedit.light.set") @CommandPermissions("worldedit.light.set")
public void setlighting(Actor actor, EditSession editSession, @Selection Region region) { 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( @Command(
name = "/setskylight", name = "/setskylight",
desc = "Set sky lighting in a selection" desc = "Set sky lighting in a selection"
) )
@CommandPermissions("worldedit.light.set") @CommandPermissions("worldedit.light.set")
public void setskylighting(Actor actor, @Selection Region region) { 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( @Command(

Datei anzeigen

@ -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.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.find.hover": "{0} blocks changed, click for more info",
"fawe.worldedit.history.distr.summary_null": "Could not find edit summary for inputs.", "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.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.set.region": "Selection set to your current allowed region",
"fawe.info.worldedit.toggle.tips.on": "Disabled FAWE tips.", "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.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.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.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.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": "Uploading {0}, please wait...",
"fawe.web.generating.link.failed": "Failed to generate download link!", "fawe.web.generating.link.failed": "Failed to generate download link!",