mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-04 17:59:31 +01:00
Make distance triggers behavior more consistent with old behavior of signs
This commit is contained in:
parent
b89c3078b5
commit
a89ccbb830
@ -46,11 +46,13 @@ public class DistanceTrigger extends Trigger {
|
||||
public void onTrigger(Player player) {
|
||||
TriggerActionEvent event = new TriggerActionEvent(this);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isTriggered()) {
|
||||
return;
|
||||
}
|
||||
setTriggered(true);
|
||||
this.setPlayer(player);
|
||||
updateDSigns();
|
||||
|
Loading…
Reference in New Issue
Block a user