mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-10 00:13:42 -04:00
Merged in M4SS/holocore/nge_411_ (pull request #279)
Bugfix NGE-411 - Characters missing commands
This commit is contained in:
@@ -124,8 +124,10 @@ public final class SkillService extends Service {
|
||||
}
|
||||
|
||||
private String [] splitCsv(String str) {
|
||||
if (str.isEmpty() || str.indexOf(',') == -1)
|
||||
if (str.isEmpty())
|
||||
return new String[0];
|
||||
else if (str.indexOf(',') == -1)
|
||||
return new String[]{str};
|
||||
return str.split(",");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user