Added double slash on cuboid selection

Because when you select a position and click on the message you need to manually add a other slash
This commit is contained in:
MrMicky-FR 2017-12-03 15:41:21 +01:00 committed by GitHub
parent 12580b52ae
commit b3ae049afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ public class CuboidRegionSelector extends com.sk89q.worldedit.regions.CuboidRegi
} else {
msg = BBC.SELECTOR_POS.m(1, position1, "");
}
String cmd = Commands.getAlias(SelectionCommands.class, "/pos1") + " " + pos.getBlockX() + "," + pos.getBlockY() + "," + pos.getBlockZ();
String cmd = "/" + Commands.getAlias(SelectionCommands.class, "/pos1") + " " + pos.getBlockX() + "," + pos.getBlockY() + "," + pos.getBlockZ();
msg.suggestTip(cmd).send(player);
session.dispatchCUIEvent(player, new SelectionPointEvent(0, pos, getArea()));
@ -179,7 +179,7 @@ public class CuboidRegionSelector extends com.sk89q.worldedit.regions.CuboidRegi
} else {
msg = BBC.SELECTOR_POS.m(2, position2, "");
}
String cmd = Commands.getAlias(SelectionCommands.class, "/pos2") + " " + pos.getBlockX() + "," + pos.getBlockY() + "," + pos.getBlockZ();
String cmd = "/" + Commands.getAlias(SelectionCommands.class, "/pos2") + " " + pos.getBlockX() + "," + pos.getBlockY() + "," + pos.getBlockZ();
msg.suggestTip(cmd).send(player);
session.dispatchCUIEvent(player, new SelectionPointEvent(1, pos, getArea()));
@ -306,4 +306,4 @@ public class CuboidRegionSelector extends com.sk89q.worldedit.regions.CuboidRegi
public static Class<?> inject() {
return CuboidRegionSelector.class;
}
}
}