1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +01:00
This commit is contained in:
Zrips 2018-12-25 22:47:17 +02:00
commit db0675788a
2 changed files with 10 additions and 6 deletions

View File

@ -51,7 +51,7 @@ public class Placeholder {
user_canjoin_$1("jobname/number");
private String[] vars;
private List<Integer> groups = new ArrayList<Integer>();
private List<Integer> groups = new ArrayList<>();
private ChatFilterRule rule = null;
private boolean hidden = false;
@ -62,7 +62,7 @@ public class Placeholder {
Matcher matcher = numericalRule.getMatcher(this.toString());
if (matcher != null) {
rule = new ChatFilterRule();
List<String> ls = new ArrayList<String>();
List<String> ls = new ArrayList<>();
ls.add("(%" + pref + "_)" + this.toString().replaceAll("\\$\\d", "([^\"^%]*)") + "(%)");
// For MVdWPlaceholderAPI
// ls.add("(\\{" + pref + this.toString().replaceAll("\\$\\d", "([^\"^%]*)" + "(\\})"));
@ -173,7 +173,7 @@ public class Placeholder {
}
public List<String> getComplexRegexMatchers(String text) {
List<String> lsInLs = new ArrayList<String>();
List<String> lsInLs = new ArrayList<>();
if (!this.isComplex())
return lsInLs;
@ -188,7 +188,7 @@ public class Placeholder {
public List<String> getComplexValues(String text) {
List<String> lsInLs = new ArrayList<String>();
List<String> lsInLs = new ArrayList<>();
if (!this.isComplex() || text == null)
return lsInLs;
@ -225,7 +225,7 @@ public class Placeholder {
}
public List<String> updatePlaceHolders(Player player, List<String> messages) {
List<String> ms = new ArrayList<String>(messages);
List<String> ms = new ArrayList<>(messages);
for (int i = 0, l = messages.size(); i < l; ++i) {
ms.set(i, updatePlaceHolders(player, messages.get(i)));
}
@ -442,7 +442,7 @@ public class Placeholder {
}
}
List<String> values = new ArrayList<String>();
List<String> values = new ArrayList<>();
if (placeHolder.isComplex()) {
values = placeHolder.getComplexValues(value);
@ -480,6 +480,8 @@ public class Placeholder {
switch (placeHolder) {
case maxjobs:
return String.valueOf(Jobs.getGCManager().getMaxJobs());
default:
break;
}
return null;

View File

@ -15,6 +15,8 @@ general:
mins: '&e%mins% &6perc '
secs: '&e%secs% &6másodperc '
invalidPage: '&cÉrvénytelen oldal'
true: '&2Igaz'
false: '&cHamis'
admin:
error: '&cHiba történt a parancsban.'
success: '&eA parancs végrehajtásra került.'