mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix trigger signs; resolves #770
This commit is contained in:
parent
8658f49730
commit
ca8ded0788
@ -27,6 +27,7 @@ import de.erethon.dungeonsxl.world.DGameWorld;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.bukkit.block.Sign;
|
import org.bukkit.block.Sign;
|
||||||
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Frank Baumann, Milan Albrecht, Daniel Saukel
|
* @author Frank Baumann, Milan Albrecht, Daniel Saukel
|
||||||
@ -89,12 +90,19 @@ public class TriggerSign extends Rocker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getSign().setLine(1, String.valueOf(id));
|
new BukkitRunnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
getSign().setLine(1, String.valueOf(id));
|
||||||
|
getSign().update(true);
|
||||||
|
}
|
||||||
|
}.runTaskLater(api, 1L);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
|
id = NumberUtil.parseInt(getLine(1), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user