mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Prevent Rightclick on Interact Signs
This commit is contained in:
parent
87c65104c1
commit
19548afbbc
@ -163,7 +163,11 @@ public class PlayerListener implements Listener {
|
|||||||
// Trigger InteractTrigger
|
// Trigger InteractTrigger
|
||||||
InteractTrigger trigger = InteractTrigger.get(clickedBlock, gworld);
|
InteractTrigger trigger = InteractTrigger.get(clickedBlock, gworld);
|
||||||
if (trigger != null) {
|
if (trigger != null) {
|
||||||
|
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
|
||||||
trigger.onTrigger(player);
|
trigger.onTrigger(player);
|
||||||
|
} else {
|
||||||
|
p.msg(player, p.language.get("Error_Leftklick"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Class Signs
|
// Class Signs
|
||||||
|
Loading…
Reference in New Issue
Block a user