mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-27 09:42:37 +01:00
Fix spaces in server names
This commit is contained in:
parent
7f993e2c1d
commit
8b488ddc61
@ -473,7 +473,7 @@ public class CommandTrait extends Trait {
|
||||
this.n = n;
|
||||
this.delay = delay;
|
||||
this.globalCooldown = globalCooldown;
|
||||
List<String> split = Splitter.on(' ').omitEmptyStrings().trimResults().splitToList(command);
|
||||
List<String> split = Splitter.on(' ').omitEmptyStrings().trimResults().limit(2).splitToList(command);
|
||||
this.bungeeServer = split.size() == 2 && split.get(0).equalsIgnoreCase("server") ? split.get(1) : null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user