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 <maxi.cass11@gmail.com>
parent 2f4089d6
...@@ -6,25 +6,25 @@ import org.bukkit.Location; ...@@ -6,25 +6,25 @@ import org.bukkit.Location;
public class RedstoneClock { public class RedstoneClock {
private final long endTime; private final long endTime;
private int clock; private int numberOfClock;
private final Location loc; private final Location loc;
//only for comparator //only for comparator
private int value; private int value;
private boolean detected; private boolean detected;
public RedstoneClock(Location loc){ public RedstoneClock(Location loc){
endTime = System.currentTimeMillis() /1000+Main.getDelay(); endTime = System.currentTimeMillis() / 1000 + Main.getInstance().getConfig().getInt("Delay");
clock = 0; numberOfClock = 0;
this.loc = loc; this.loc = loc;
detected = false; detected = false;
} }
public void addOneToClock(){ public void addOneToClock(){
clock++; numberOfClock++;
} }
public int getClock(){ public int getNumberOfClock() {
return clock; return numberOfClock;
} }
public Location getLocation(){ 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