Oh so nice and clean.
This commit is contained in:
parent
36c8d217c8
commit
541c6d2e0a
@ -21,22 +21,10 @@ import com.massivecraft.mcore4.util.Txt;
|
|||||||
|
|
||||||
public class MCore extends JavaPlugin
|
public class MCore extends JavaPlugin
|
||||||
{
|
{
|
||||||
InternalListener listener;
|
|
||||||
|
|
||||||
// -------------------------------------------- //
|
|
||||||
// DERP
|
|
||||||
// -------------------------------------------- //
|
|
||||||
|
|
||||||
public static Random random = new Random();
|
public static Random random = new Random();
|
||||||
public static Gson gson = getGsonBuilder().create();
|
public static Gson gson = getGsonBuilder().create();
|
||||||
|
|
||||||
@Override
|
InternalListener listener;
|
||||||
public void onDisable()
|
|
||||||
{
|
|
||||||
// Avoid memleak by clearing ???
|
|
||||||
// Or will this trigger errors???
|
|
||||||
//Persist.getRealms().clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable()
|
public void onEnable()
|
||||||
|
@ -66,11 +66,6 @@ public abstract class MPlugin extends JavaPlugin implements Listener
|
|||||||
this.persist.saveAll();
|
this.persist.saveAll();
|
||||||
Persist.instances.remove(this.persist);
|
Persist.instances.remove(this.persist);
|
||||||
|
|
||||||
this.cmd = null;
|
|
||||||
this.persist = null;
|
|
||||||
this.one = null;
|
|
||||||
this.lib = null;
|
|
||||||
|
|
||||||
log("Disabled");
|
log("Disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user