Solved how to get ticks since server opened

Discussion in 'Spigot Plugin Help' started by SHsuperCM, Jun 25, 2016.

  1. how do i get the current ticks after last server boot?
     
  2. clip

    Benefactor

    Just store the current time when your plugin is enabled.
     
  3. what do you mean by that?
    EDIT:
    i mean how?
     
  4. clip

    Benefactor

    Code (Java):
    long time;

    @Override
    public void onEnable() {
        time = System.currentTimeMillis();
    }
     
    • Winner Winner x 1
  5. thank you