diff --git a/Resources/lang/en_GB.lang b/Resources/lang/en_GB.lang index 303ae215..369474e7 100644 --- a/Resources/lang/en_GB.lang +++ b/Resources/lang/en_GB.lang @@ -50,6 +50,8 @@ portal.invalidselection=You must have both pos1 and pos2 selected to create a po portal.noname=No name for the portal has been given. portal.takenname=The name given for the portal is already taken. +portal.selector.poschange=\u00A7eYou have selected pos%1$s X:%2$s Y:%3$s Z:%4$s + command.trans.help=Copy translation new default translation file command.version.help=Returns the current version of the plugin diff --git a/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java b/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java index 9b8adeaa..251dc73e 100644 --- a/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java +++ b/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java @@ -79,7 +79,15 @@ public class PortalManager { } public void playerSelectorActivate(PlayerContainer player, PortalLocation blockLoc, boolean leftClick) { - + int side = leftClick ? 1 : 2; + if(leftClick) { + this.portalSelectorLeftClick.put(player.getUUID().toString(), blockLoc); + } + else { + this.portalSelectorRightClick.put(player.getUUID().toString(), blockLoc); + } + player.sendMessage(Lang.translateInsertVariablesColor("portal.selector.poschange", side, blockLoc.posX, + blockLoc.posY, blockLoc.posZ)); } public boolean playerMove(PlayerContainer player, PlayerLocation fromLoc, PlayerLocation toLoc) {