Closes #511 (add navigation message)

This commit is contained in:
Jesse Boyd 2017-04-23 01:03:40 +10:00
parent 76032f7d63
commit 763ca00b4b
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 2 additions and 1 deletions

View File

@ -90,6 +90,7 @@ public enum BBC {
OPERATION("Operation queued (%s0)", "WorldEdit.Operation"),
SELECTION_WAND("Left click: select pos #1; Right click: select pos #2", "WorldEdit.Selection"),
NAVIGATION_WAND_ERROR("&cNothing to pass through", "WorldEdit.Navigation"),
SELECTION_WAND_DISABLE("Edit wand disabled.", "WorldEdit.Selection"),
SELECTION_WAND_ENABLE("Edit wand enabled.", "WorldEdit.Selection"),

View File

@ -524,7 +524,7 @@ public class PlatformManager {
}
if (!player.passThroughForwardWall(40)) {
player.printError("Nothing to pass through!");
BBC.NAVIGATION_WAND_ERROR.send(player);
}
event.setCancelled(true);