mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 17:47:38 +01:00
parent
b2b289617e
commit
e762b8013f
@ -119,9 +119,14 @@ public class PlanPlaceholderExtension extends PlaceholderExpansion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<String> parseParameters(String params) {
|
private List<String> parseParameters(String params) {
|
||||||
List<String> parameters = Arrays.asList(params.split(":"));
|
List<String> parameters = new ArrayList<>();
|
||||||
if (!parameters.isEmpty()) {
|
boolean first = true;
|
||||||
parameters.remove(0);
|
for (String parameter : params.split(":")) {
|
||||||
|
if (first) {
|
||||||
|
first = false;
|
||||||
|
} else {
|
||||||
|
parameters.add(parameter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return parameters;
|
return parameters;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user