mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Remove... whatever this is
This commit is contained in:
parent
56ef3dd202
commit
2e26fe7d7c
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user