Solved Difference between two times

Discussion in 'Spigot Plugin Development' started by GamerNock_, Jun 2, 2017.

  1. How can i calculate the difference between two times, player was banned time and now
    Example:
    Code (Text):
        @EventHandler
        public void on(PlayerJoinEvent e) {
            if (difference < 30) {
                e.getPlayer().kickPlayer("You're Banned for " + days +":"+ hours+":"+seconds);
            }
        }
    EDIT: https://www.spigotmc.org/threads/cooldown-for-kits.244735/ i find :)
     
    #1 GamerNock_, Jun 2, 2017
    Last edited: Jun 2, 2017