Expose enableTime

This commit is contained in:
BuildTools authored and Olof Larsson committed 2015-12-14 08:00:00 +01:00
1 parent c40c29a9b3
commit d2da879752
1 file changed
+5 -3
@@ -37,10 +37,12 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener
// ENABLE
// -------------------------------------------- //
private long timeEnableStart;
private long enableTime;
public long getEnableTime() { return this.enableTime; }
public boolean preEnable()
{
timeEnableStart = System.currentTimeMillis();
enableTime = System.currentTimeMillis();
this.logPrefixColored = Txt.parse("<teal>[<aqua>%s %s<teal>] <i>", this.getDescription().getName(), this.getDescription().getVersion());
this.logPrefixPlain = ChatColor.stripColor(this.logPrefixColored);
@@ -71,7 +73,7 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener
public void postEnable()
{
long ms = System.currentTimeMillis()-timeEnableStart;
long ms = System.currentTimeMillis() - enableTime;
this.checkVersionSynchronization();