Solved Timer issue

Discussion in 'Plugin Development' started by blazee15, Nov 6, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    blazee15

    How would I go about to add a timer so when the player dies it will kick them from the server and they will be able to reconnect in like 10 seconds.

    Code:
    @EventHandler
    public void OnPlayerDeath(PlayerDeathEvent event)
    {
        Player player = event.getPlayer();
        player.KickPlayer("You have died. You may connect in:" + deathTimer);
    }
    
     
  2. Offline

    cman1885

    System.currentTimeMillis()
     
  3. Offline

    fireblast709

    tempban them: as in write that they get 'banned' and unban after 10*60*1000 milliseconds have passed (using the method provided by cman1885)
     
  4. Offline

    blazee15

    Thanks, that's what I just did

    Resolved
     
Thread Status:
Not open for further replies.

Share This Page