mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-24 09:24:24 +00:00
Reduce the amount of unnecessary data in info command outputs a bit
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user