How to Create a Mob Explosion Timer

Discussion in 'Plugin Development' started by portside, Oct 23, 2022.

  1. Offline

    portside

    The task is as follows: When a player appears, different mobs appear near him, a timer appears over these mobs for 1 minute, if the player kills such a mob - he is given 1 coin, if the player did not kill a single mob within a minute - 1 coin is taken from the player
     
  2. Offline

    LABSTORM

  3. Offline

    Tim_M

    This really seems like you just want someone to give you all of the code, this forum is for more specific issues. But if what you mean is that you're trying theory craft how to do it, it should be pretty simple. Have a PlayerJoinEvent or whatever suits your case to detect players and then create bukkitrunnables and delay them for 1 minute. Every second you could update the name of all of the mobs to update the timer.
     

Share This Page