mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-27 13:05:11 +01:00
Fix plugin live reloading
This commit is contained in:
parent
8f6c3c6710
commit
bf4368c9be
@ -74,6 +74,7 @@ public class EpicFarming extends SongodaPlugin {
|
|||||||
private FarmTask farmTask;
|
private FarmTask farmTask;
|
||||||
|
|
||||||
private EntityUtils entityUtils;
|
private EntityUtils entityUtils;
|
||||||
|
private static EpicFarming instance;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPluginLoad() {
|
public void onPluginLoad() {
|
||||||
@ -94,6 +95,7 @@ public class EpicFarming extends SongodaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPluginEnable() {
|
public void onPluginEnable() {
|
||||||
|
instance = this;
|
||||||
// Run Songoda Updater
|
// Run Songoda Updater
|
||||||
SongodaCore.registerPlugin(this, 21, XMaterial.WHEAT);
|
SongodaCore.registerPlugin(this, 21, XMaterial.WHEAT);
|
||||||
|
|
||||||
@ -390,11 +392,7 @@ public class EpicFarming extends SongodaPlugin {
|
|||||||
return this.entityUtils;
|
return this.entityUtils;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link EpicFarming#getPlugin(Class)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public static EpicFarming getInstance() {
|
public static EpicFarming getInstance() {
|
||||||
return getPlugin(EpicFarming.class);
|
return instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user