Create a default MPlugin onEnable override

This commit is contained in:
Olof Larsson 2014-01-05 10:57:26 +01:00
parent 59ad607b14
commit 010d91a75d

View File

@ -49,6 +49,14 @@ public abstract class MPlugin extends JavaPlugin implements Listener
log(Txt.parse("=== ENABLE <g>COMPLETE <i>(Took <h>"+(System.currentTimeMillis()-timeEnableStart)+"ms<i>) ==="));
}
@Override
public void onEnable()
{
if (!this.preEnable()) return;
this.postEnable();
}
// -------------------------------------------- //
// DISABLE
// -------------------------------------------- //