Make distance triggers behavior more consistent with old behavior of signs

This commit is contained in:
Daniel Saukel 2020-04-07 21:05:33 +02:00
parent b89c3078b5
commit a89ccbb830

View File

@ -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();