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 {
|
||||
|
||||
|
||||
|
||||
int getWallCheckMinutes();
|
||||
|
||||
void setWallCheckMinutes(int minutes);
|
||||
|
@ -13,9 +13,9 @@ import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
public class CheckTask implements Runnable {
|
||||
private SimpleDateFormat simpleDateFormat = new SimpleDateFormat(Conf.dateFormat);
|
||||
private static List<String> wallChecks = new CopyOnWriteArrayList<>();
|
||||
private static List<String> bufferChecks = new CopyOnWriteArrayList<>();
|
||||
private SimpleDateFormat simpleDateFormat = new SimpleDateFormat(Conf.dateFormat);
|
||||
private P plugin;
|
||||
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
|
||||
public void run() {
|
||||
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
|
||||
*
|
||||
* @see FPlayer#getRole()
|
||||
*/
|
||||
public class FPlayerRoleChangeEvent extends FactionPlayerEvent implements Cancellable {
|
||||
|
||||
private boolean cancelled;
|
||||
private final Role from;
|
||||
private boolean cancelled;
|
||||
private Role to;
|
||||
|
||||
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role from, Role to) {
|
||||
|
Loading…
Reference in New Issue
Block a user