use of gg.projecteden.nexus.features.events.y2020.pugmas20.quests.OrnamentVendor.PugmasTreeType in project Nexus by ProjectEdenGG.
the class Pugmas20Command method treeGet.
@Permission(Group.ADMIN)
@Path("tree get")
void treeGet() {
Material logs = getTargetBlockRequired().getType();
PugmasTreeType treeType = PugmasTreeType.of(logs);
if (treeType == null)
error("Pugmas Tree with logs " + camelCase(logs) + " not found");
send(PREFIX + "You are looking at a " + camelCase(treeType) + " tree");
}
use of gg.projecteden.nexus.features.events.y2020.pugmas20.quests.OrnamentVendor.PugmasTreeType in project Nexus by ProjectEdenGG.
the class Pugmas20Command method treeCounts.
@Permission(Group.ADMIN)
@Path("tree counts")
void treeCounts() {
int total = 0;
JsonBuilder json = json(PREFIX + "Pugmas tree counts:");
for (PugmasTreeType treeType : PugmasTreeType.values()) {
Set<Integer> ids = treeType.getPasters().keySet();
if (ids.size() == 0)
continue;
String collect = ids.stream().map(String::valueOf).collect(Collectors.joining(", "));
json.newline().next("&e " + camelCase(treeType) + " &7- " + ids.size() + " &3[" + collect + "]");
total += ids.size();
}
if (total == 0)
error("No pugmas trees found");
send(json.newline().next("&3Total: &e" + total));
}
Aggregations