Hold ConfigRegistry in Terra instance

This commit is contained in:
dfsek
2020-12-08 19:48:46 -07:00
parent 7e365c351d
commit 8f5a9b7b8e
9 changed files with 98 additions and 126 deletions

View File

@@ -1,5 +1,6 @@
package com.dfsek.terra.command;
import com.dfsek.terra.Terra;
import com.dfsek.terra.config.base.ConfigPackTemplate;
import com.dfsek.terra.config.lang.LangUtil;
import com.dfsek.terra.registry.ConfigRegistry;
@@ -28,7 +29,7 @@ public class PacksCommand extends Command {
@Override
public boolean execute(@NotNull CommandSender commandSender, org.bukkit.command.@NotNull Command command, @NotNull String s, @NotNull String[] strings) {
ConfigRegistry registry = ConfigRegistry.getRegistry();
ConfigRegistry registry = ((Terra) getMain()).getRegistry();
if(registry.entries().size() == 0) {
LangUtil.send("command.packs.none", commandSender);