Prevent Rightclick on Interact Signs

This commit is contained in:
Sn0wStorm 2013-10-24 14:16:41 +02:00
parent 87c65104c1
commit 19548afbbc

View File

@ -163,7 +163,11 @@ public class PlayerListener implements Listener {
// Trigger InteractTrigger
InteractTrigger trigger = InteractTrigger.get(clickedBlock, gworld);
if (trigger != null) {
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
trigger.onTrigger(player);
} else {
p.msg(player, p.language.get("Error_Leftklick"));
}
}
// Class Signs