Reduce the amount of unnecessary data in info command outputs a bit

This commit is contained in:
Luck committed 2018-01-23 19:55:21 +00:00
1 parent e1c60fa70f
commit 982254ff5e
7 files changed
+41 -105

No files matched your search

@@ -111,11 +111,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.AbstractCollection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
@@ -507,20 +504,6 @@ public class LPSpongePlugin implements LuckPermsSpongePlugin {
return Collections.singletonList(new SpongeMainCommand(this));
}
@Override
public Map<String, Object> getExtraInfo() {
Map<String, Object> map = new LinkedHashMap<>();
map.put("SubjectCollection count", this.service.getLoadedCollections().size());
map.put("Subject count",
this.service.getLoadedCollections().values().stream()
.map(LPSubjectCollection::getLoadedSubjects)
.mapToInt(AbstractCollection::size)
.sum()
);
map.put("PermissionDescription count", this.service.getDescriptions().size());
return map;
}
public Game getGame() {
return this.game;
}