mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-29 12:37:53 +01:00
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:
parent
12580b52ae
commit
b3ae049afa
@ -161,7 +161,7 @@ public class CuboidRegionSelector extends com.sk89q.worldedit.regions.CuboidRegi
|
|||||||
} else {
|
} else {
|
||||||
msg = BBC.SELECTOR_POS.m(1, position1, "");
|
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);
|
msg.suggestTip(cmd).send(player);
|
||||||
|
|
||||||
session.dispatchCUIEvent(player, new SelectionPointEvent(0, pos, getArea()));
|
session.dispatchCUIEvent(player, new SelectionPointEvent(0, pos, getArea()));
|
||||||
@ -179,7 +179,7 @@ public class CuboidRegionSelector extends com.sk89q.worldedit.regions.CuboidRegi
|
|||||||
} else {
|
} else {
|
||||||
msg = BBC.SELECTOR_POS.m(2, position2, "");
|
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);
|
msg.suggestTip(cmd).send(player);
|
||||||
|
|
||||||
session.dispatchCUIEvent(player, new SelectionPointEvent(1, pos, getArea()));
|
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() {
|
public static Class<?> inject() {
|
||||||
return CuboidRegionSelector.class;
|
return CuboidRegionSelector.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user