Allow space on Sponge Group subjectcollection

This commit is contained in:
Luck 2016-12-19 21:52:26 +00:00
parent 1bdb512826
commit 9aeca91f22
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -133,7 +133,7 @@ public class SpongeGroupManager implements GroupManager, LPSubjectCollection {
try (Timing ignored = plugin.getTimings().time(LPTiming.GROUP_COLLECTION_GET)) { try (Timing ignored = plugin.getTimings().time(LPTiming.GROUP_COLLECTION_GET)) {
id = id.toLowerCase(); id = id.toLowerCase();
if (ArgumentChecker.checkName(id)) { if (ArgumentChecker.checkNameWithSpace(id)) {
plugin.getLog().warn("Couldn't get group subject for id: " + id + " (invalid name)"); plugin.getLog().warn("Couldn't get group subject for id: " + id + " (invalid name)");
return plugin.getService().getFallbackGroupSubjects().get(id); // fallback to transient collection return plugin.getService().getFallbackGroupSubjects().get(id); // fallback to transient collection
} }