Skip to content

Commit

Permalink
SkBee - add load time to load message
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Oct 19, 2020
1 parent f1dc93b commit 33faaf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/tk/shanebee/bee/SkBee.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class SkBee extends JavaPlugin {

@Override
public void onEnable() {
long start = System.currentTimeMillis();
instance = this;
this.config = new Config(this);
this.nbtApi = new NBTApi();
Expand Down Expand Up @@ -78,7 +79,7 @@ public void onEnable() {
return;
}
loadMetrics();
Util.log("&aSuccessfully enabled v" + desc.getVersion());
Util.log("&aSuccessfully enabled v%s&7 in &b%.2f seconds", desc.getVersion(), (float)(System.currentTimeMillis() - start) / 1000);
}

private void loadNBTElements() {
Expand Down

0 comments on commit 33faaf9

Please sign in to comment.