MCPcopy Create free account
hub / github.com/boxbeam/RedLib / onEnable

Method onEnable

src/redempt/redlib/RedLib.java:68–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 @Override
69 public void onEnable() {
70 ConfigManager.create(this).target(RedLibConfig.class).saveDefaults().load();
71 if (RedLibConfig.devMode) {
72 ChainCommand chain = new ChainCommand();
73 new CommandParser(this.getResource("command.rdcml"))
74 .setArgTypes(ArgType.of("material", Material.class), chain.getArgType())
75 .parse()
76 .register("redlib", new ProfilerCommands(), StructureTool.enable(), chain);
77 }
78 }
79
80 /**
81 * @return The server version String (ex: 1.16.4)

Callers

nothing calls this directly

Calls 8

createMethod · 0.95
getArgTypeMethod · 0.95
enableMethod · 0.95
saveDefaultsMethod · 0.80
targetMethod · 0.80
parseMethod · 0.80
loadMethod · 0.65
registerMethod · 0.45

Tested by

no test coverage detected