dont print null for descriptions in help system
All checks were successful
/ Build BaseBand (push) Successful in 2m34s
All checks were successful
/ Build BaseBand (push) Successful in 2m34s
This commit is contained in:
parent
fa98485181
commit
23dd41daa5
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue