Merged in M4SS/holocore/nge_411_ (pull request #279)

Bugfix NGE-411 - Characters missing commands
This commit is contained in:
Undercova PSWG
2016-09-06 06:41:50 +02:00
+3 -1
View File
@@ -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(",");
}