Entity remove itself if not used for 2mn (HotAirBalloon)

Discussion in 'Plugin Help' started by benda95280, Jul 19, 2019.

  1. benda95280

    benda95280 Spider Jockey

    Messages:
    39
    GitHub:
    benda95280
    Hello,

    I'm using the plugin below:
    https://github.com/solo5star/HotAirBalloon

    How is it possible to the entity to remove it if not rided for 2 minutes ?

    Could you give me advice to do the modification of the Source Code ?
    (I'm thinking to add a task, but don't know how to handle it (attach it) to the entity.)

    Thanks,
    Benda.
     
  2. Deniel

    Deniel Spider Jockey

    Messages:
    39
    GitHub:
    DenielWorld
    Jusy make a clear lagg plugin that will clear all entities that are not being ridden. Much more simple solution. If you want to do it the way you want though, you might want to take a look at some other plugins assigning time checks for specifics. Example: GoldenAppleCooldown, base off of that code. Apply a cooldown of 2 minutes to the entity every time someone stops riding it, and remove the cooldown when a player gets on it. Afterwards add code that will kill the entity upon cooldown running out.
     
  3. benda95280

    benda95280 Spider Jockey

    Messages:
    39
    GitHub:
    benda95280
  4. benda95280

    benda95280 Spider Jockey

    Messages:
    39
    GitHub:
    benda95280
    I've been able to found how have the ID, how to manage to remove it no matter what's happen ?
    (Server Crash, reboot, ...)

    Because ID are not always the same ? (I've seen it with slapper)
    If server reboot while an entity is not removed, it will stay forever on reboot ?
     
    Last edited: Jul 19, 2019
  5. Deniel

    Deniel Spider Jockey

    Messages:
    39
    GitHub:
    DenielWorld
    Send me a message on twitter, and I may be able to help you out more.
    @Deniel_World
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.