1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Update Schedule.java

This commit is contained in:
montlikadani 2018-08-16 18:22:47 +02:00 committed by GitHub
parent c36495c94a
commit 846c4f9373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,13 +22,13 @@ public class Schedule {
String Name = null;
List<String> Days = new ArrayList<String>(Arrays.asList("all"));
List<Job> JobsList = new ArrayList<Job>();
List<String> Days = new ArrayList<>(Arrays.asList("all"));
List<Job> JobsList = new ArrayList<>();
List<String> MessageOnStart = new ArrayList<String>();
List<String> MessageOnStop = new ArrayList<String>();
List<String> MessageOnStart = new ArrayList<>();
List<String> MessageOnStop = new ArrayList<>();
List<String> MessageToBroadcast = new ArrayList<String>();
List<String> MessageToBroadcast = new ArrayList<>();
boolean started = false;
boolean stoped = true;
@ -173,7 +173,7 @@ public class Schedule {
}
public void setMessageOnStart(List<String> msg, String From, String Until) {
List<String> temp = new ArrayList<String>();
List<String> temp = new ArrayList<>();
for (String one : msg) {
temp.add(ChatColor.translateAlternateColorCodes('&', one.replace("[until]", Until).replace("[from]", From)));
}
@ -185,7 +185,7 @@ public class Schedule {
}
public void setMessageOnStop(List<String> msg, String From, String Until) {
List<String> temp = new ArrayList<String>();
List<String> temp = new ArrayList<>();
for (String one : msg) {
temp.add(ChatColor.translateAlternateColorCodes('&', one.replace("[until]", Until).replace("[from]", From)));
}
@ -197,7 +197,7 @@ public class Schedule {
}
public void setMessageToBroadcast(List<String> msg, String From, String Until) {
List<String> temp = new ArrayList<String>();
List<String> temp = new ArrayList<>();
for (String one : msg) {
temp.add(ChatColor.translateAlternateColorCodes('&', one.replace("[until]", Until).replace("[from]", From)));
}