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