Solved Snow trail that disappear in a few seconds?

Discussion in 'Plugin Development' started by Kriam001, Oct 9, 2016.

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

    Kriam001

    Hello! I have made a plugin that makes players leave a snow trail like snow golems, but I want to implement that ability as a VIP perk in a server. The thing, is that the snow trail is permanent, and I want to make it disappear progressively. I mean, I walk, and while I walk, I put a snow block that will disappear in 5 seconds.

    I hope someone helps me because I have been looking for information and I haven't found anything.
     
  2. Offline

    Whoneedspacee

    You could have a hashmap with the location and time for the snow, then make it so nothing at that location can be messed with, use a scheduler to tick up the time and if its >5 seconds, then just delete the hashmap entry and the snow at the location.
     
  3. Offline

    Kriam001


    Thanks for the piece of advice but I have already find out the solution and its even easier than that, I only put a local variable in the method and it is working properly.

    Thanks! :D
     
Thread Status:
Not open for further replies.

Share This Page