Expose enableTime
This commit is contained in:
parent
c40c29a9b3
commit
d2da879752
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user