Code Reformat
This commit is contained in:
@@ -103,7 +103,7 @@ public class CheckSettingsFrame implements InventoryHolder, FactionGUI {
|
||||
return minutes + " Minutes";
|
||||
}
|
||||
|
||||
public String color(String message){
|
||||
public String color(String message) {
|
||||
return ChatColor.translateAlternateColorCodes('&', message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ public class WeeWooTask implements Runnable {
|
||||
continue;
|
||||
}
|
||||
faction.msg(TL.WEE_WOO_MESSAGE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user