Initialise instance first thing
This commit is contained in:
parent
eabac89b69
commit
49fa7d3e12
1 changed files with 1 additions and 2 deletions
|
|
@ -57,6 +57,7 @@ public class ServerUtils {
|
||||||
*/
|
*/
|
||||||
@Inject
|
@Inject
|
||||||
public ServerUtils(ProxyServer proxy, @DataDirectory Path dataDirectory) {
|
public ServerUtils(ProxyServer proxy, @DataDirectory Path dataDirectory) {
|
||||||
|
instance = this;
|
||||||
try {
|
try {
|
||||||
this.pluginCommandManager = VelocityPluginCommandManager.load(dataDirectory.resolve(PLUGIN_COMMANDS_CACHE));
|
this.pluginCommandManager = VelocityPluginCommandManager.load(dataDirectory.resolve(PLUGIN_COMMANDS_CACHE));
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
|
|
@ -78,8 +79,6 @@ public class ServerUtils {
|
||||||
*/
|
*/
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onEnable(ProxyInitializeEvent event) {
|
public void onEnable(ProxyInitializeEvent event) {
|
||||||
instance = this;
|
|
||||||
|
|
||||||
this.plugin = new VelocityPlugin(this);
|
this.plugin = new VelocityPlugin(this);
|
||||||
ServerUtilsApp.init(this, plugin);
|
ServerUtilsApp.init(this, plugin);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue