dont print null for descriptions in help system
All checks were successful
/ Build BaseBand (push) Successful in 2m34s

This commit is contained in:
Daniella / Tove 2024-10-04 23:48:43 +02:00
parent fa98485181
commit 23dd41daa5
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -91,7 +91,8 @@ public class Help extends Feature {
Chat.print("§c§l" + Setup.Name + " help system: Feature " + args[1]);
for (Feature feature : Features.features) {
if(feature.toString().replace(' ', '_').equalsIgnoreCase(args[1])) {
Chat.print(feature.hover);
if(feature.hover != null)
Chat.print(feature.hover);
Chat.print("The feature is " + (feature.enabled ? "§aenabled" : "§cdisabled") + ".");
Chat.print("It has " + feature.handle.getContent().map.size() + " config entries:");
for (TLMap.Entry<String, Object> entry : feature.handle.getContent().map.entries()) {