Code Reformat
This commit is contained in:
parent
bc62491862
commit
9b68687ef7
@ -24,7 +24,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||||||
public interface Faction extends EconomyParticipator {
|
public interface Faction extends EconomyParticipator {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int getWallCheckMinutes();
|
int getWallCheckMinutes();
|
||||||
|
|
||||||
void setWallCheckMinutes(int minutes);
|
void setWallCheckMinutes(int minutes);
|
||||||
|
@ -13,9 +13,9 @@ import java.util.List;
|
|||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
public class CheckTask implements Runnable {
|
public class CheckTask implements Runnable {
|
||||||
private SimpleDateFormat simpleDateFormat = new SimpleDateFormat(Conf.dateFormat);
|
|
||||||
private static List<String> wallChecks = new CopyOnWriteArrayList<>();
|
private static List<String> wallChecks = new CopyOnWriteArrayList<>();
|
||||||
private static List<String> bufferChecks = new CopyOnWriteArrayList<>();
|
private static List<String> bufferChecks = new CopyOnWriteArrayList<>();
|
||||||
|
private SimpleDateFormat simpleDateFormat = new SimpleDateFormat(Conf.dateFormat);
|
||||||
private P plugin;
|
private P plugin;
|
||||||
private int minute;
|
private int minute;
|
||||||
|
|
||||||
@ -43,6 +43,14 @@ public class CheckTask implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean wallCheck(String factionId) {
|
||||||
|
return CheckTask.wallChecks.remove(factionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean bufferCheck(String factionId) {
|
||||||
|
return CheckTask.bufferChecks.remove(factionId);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
long currentTime = System.currentTimeMillis();
|
long currentTime = System.currentTimeMillis();
|
||||||
@ -86,13 +94,5 @@ public class CheckTask implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean wallCheck(String factionId) {
|
|
||||||
return CheckTask.wallChecks.remove(factionId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean bufferCheck(String factionId) {
|
|
||||||
return CheckTask.bufferChecks.remove(factionId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,12 +7,13 @@ import org.bukkit.event.Cancellable;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents {@link Role} change of a factions player
|
* Represents {@link Role} change of a factions player
|
||||||
|
*
|
||||||
* @see FPlayer#getRole()
|
* @see FPlayer#getRole()
|
||||||
*/
|
*/
|
||||||
public class FPlayerRoleChangeEvent extends FactionPlayerEvent implements Cancellable {
|
public class FPlayerRoleChangeEvent extends FactionPlayerEvent implements Cancellable {
|
||||||
|
|
||||||
private boolean cancelled;
|
|
||||||
private final Role from;
|
private final Role from;
|
||||||
|
private boolean cancelled;
|
||||||
private Role to;
|
private Role to;
|
||||||
|
|
||||||
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role from, Role to) {
|
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role from, Role to) {
|
||||||
|
Loading…
Reference in New Issue
Block a user