mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Make /toggleeditwand translatable
56182ad0793b79fe53927c1363be92a42e3af14d Co-Authored-By: Octavia Togami <2093023+octylFractal@users.noreply.github.com>
This commit is contained in:
parent
0ee1321546
commit
9fbbcdb3f7
@ -312,15 +312,17 @@ public class SelectionCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.wand.toggle")
|
@CommandPermissions("worldedit.wand.toggle")
|
||||||
public void toggleWand(Player player) {
|
public void toggleWand(Player player) {
|
||||||
player.printInfo(TextComponent.of("The selection wand is now a normal tool. You can disable it with ")
|
player.printInfo(
|
||||||
.append(TextComponent.of("/none", TextColor.AQUA).clickEvent(
|
TranslatableComponent.of(
|
||||||
ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/none")))
|
"worldedit.wand.selwand.now.tool",
|
||||||
.append(TextComponent.of(" and rebind it to any item with "))
|
TextComponent.of("/tool none", TextColor.AQUA).clickEvent(
|
||||||
.append(TextComponent.of("//selwand", TextColor.AQUA).clickEvent(
|
ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/tool none")),
|
||||||
ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "//selwand")))
|
TextComponent.of("/tool selwand", TextColor.AQUA).clickEvent(
|
||||||
.append(TextComponent.of(" or get a new wand with "))
|
ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/tool selwand")),
|
||||||
.append(TextComponent.of("//wand", TextColor.AQUA).clickEvent(
|
TextComponent.of("//wand", TextColor.AQUA).clickEvent(
|
||||||
ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "//wand"))));
|
ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "//wand"))
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
|
@ -285,6 +285,7 @@
|
|||||||
"worldedit.chunk.selected": "Chunk selected: {0}, {1}",
|
"worldedit.chunk.selected": "Chunk selected: {0}, {1}",
|
||||||
"worldedit.wand.invalid": "Wand item is mis-configured or disabled.",
|
"worldedit.wand.invalid": "Wand item is mis-configured or disabled.",
|
||||||
"worldedit.wand.selwand.info": "Left click: select pos #1; Right click: select pos #2",
|
"worldedit.wand.selwand.info": "Left click: select pos #1; Right click: select pos #2",
|
||||||
|
"worldedit.wand.selwand.now.tool": "The selection wand is now a normal tool. You can disable it with {0} and rebind it to any item with {1} or get a new wand with {2}.",
|
||||||
"worldedit.wand.navwand.info": "Left click: jump to location; Right click: pass through walls",
|
"worldedit.wand.navwand.info": "Left click: jump to location; Right click: pass through walls",
|
||||||
"worldedit.contract.contracted": "Region contracted {0} blocks.",
|
"worldedit.contract.contracted": "Region contracted {0} blocks.",
|
||||||
"worldedit.shift.shifted": "Region shifted.",
|
"worldedit.shift.shifted": "Region shifted.",
|
||||||
|
Loading…
Reference in New Issue
Block a user