Code Reformat

This commit is contained in:
Driftay
2019-09-11 06:58:46 -04:00
parent bc62491862
commit 9b68687ef7
8 changed files with 16 additions and 16 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -20,6 +20,6 @@ public class WeeWooTask implements Runnable {
continue;
}
faction.msg(TL.WEE_WOO_MESSAGE);
}
}
}
}