Commit 0cd770e6 authored by Amosar's avatar Amosar

Correct sign duplication error (Again)

-Improve Configuration management
-add setting to disable the signs
Signed-off-by: Amosar's avatarAmosar <>
parent 2f4089d6
......@@ -6,25 +6,25 @@ import org.bukkit.Location;
public class RedstoneClock {
private final long endTime;
private int clock;
private int numberOfClock;
private final Location loc;
//only for comparator
private int value;
private boolean detected;
public RedstoneClock(Location loc){
endTime = System.currentTimeMillis() /1000+Main.getDelay();
clock = 0;
endTime = System.currentTimeMillis() / 1000 + Main.getInstance().getConfig().getInt("Delay");
numberOfClock = 0;
this.loc = loc;
detected = false;
public void addOneToClock(){
public int getClock(){
return clock;
public int getNumberOfClock() {
return numberOfClock;
public Location getLocation(){
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment