diff --git a/core/src/main/java/de/erethon/dungeonsxl/sign/SignUpdateTask.java b/core/src/main/java/de/erethon/dungeonsxl/sign/SignUpdateTask.java deleted file mode 100644 index 8d2f0e24..00000000 --- a/core/src/main/java/de/erethon/dungeonsxl/sign/SignUpdateTask.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2012-2020 Frank Baumann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package de.erethon.dungeonsxl.sign; - -import org.bukkit.block.Sign; -import org.bukkit.scheduler.BukkitRunnable; - -/** - * @author Milan Albrecht, Daniel Saukel - */ -public class SignUpdateTask extends BukkitRunnable { - - private Sign sign; - - public SignUpdateTask(Sign sign) { - this.sign = sign; - } - - @Override - public void run() { - sign.update(); - } - -} diff --git a/core/src/main/java/de/erethon/dungeonsxl/sign/passive/InteractSign.java b/core/src/main/java/de/erethon/dungeonsxl/sign/passive/InteractSign.java index 5a7862eb..787bf075 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/sign/passive/InteractSign.java +++ b/core/src/main/java/de/erethon/dungeonsxl/sign/passive/InteractSign.java @@ -22,7 +22,6 @@ import de.erethon.dungeonsxl.api.sign.DungeonSign; import de.erethon.dungeonsxl.api.sign.Passive; import de.erethon.dungeonsxl.api.world.InstanceWorld; import de.erethon.dungeonsxl.player.DPermission; -import de.erethon.dungeonsxl.sign.SignUpdateTask; import de.erethon.dungeonsxl.trigger.InteractTrigger; import de.erethon.dungeonsxl.world.DGameWorld; import java.util.HashSet; @@ -92,9 +91,6 @@ public class InteractSign extends Passive { } getSign().setLine(1, String.valueOf(id)); - - new SignUpdateTask(getSign()).runTaskLater(api, 2L); - return true; } diff --git a/core/src/main/java/de/erethon/dungeonsxl/sign/rocker/TriggerSign.java b/core/src/main/java/de/erethon/dungeonsxl/sign/rocker/TriggerSign.java index 5024801e..e8bb49d7 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/sign/rocker/TriggerSign.java +++ b/core/src/main/java/de/erethon/dungeonsxl/sign/rocker/TriggerSign.java @@ -22,7 +22,6 @@ import de.erethon.dungeonsxl.api.sign.DungeonSign; import de.erethon.dungeonsxl.api.sign.Rocker; import de.erethon.dungeonsxl.api.world.InstanceWorld; import de.erethon.dungeonsxl.player.DPermission; -import de.erethon.dungeonsxl.sign.SignUpdateTask; import de.erethon.dungeonsxl.trigger.SignTrigger; import de.erethon.dungeonsxl.world.DGameWorld; import java.util.HashSet; @@ -91,9 +90,6 @@ public class TriggerSign extends Rocker { } getSign().setLine(1, String.valueOf(id)); - - new SignUpdateTask(getSign()).runTaskLater(api, 2L); - return true; }