Solved Demolish timer disabler

Discussion in 'Plugin Requests' started by Dreke, Feb 10, 2016.

  1. Is there a plugin that disables the timer after you build a wall so you can demolish it anytime you want?
     
  2. I don't believe so. I don't think you can adjust that timer with a plugin either. ( someone please prove me wrong ! )
     
  3. I'll try looking into it, I'll post back if I get any progress.

    EDIT: So far, this snippet appears to be working:

    Code:
            private void OnEntityBuilt(Planner plan, GameObject objectBlock)
            {
                BuildingBlock block = (BuildingBlock)objectBlock.ToBaseEntity();
                block.CancelInvoke("StopBeingDemolishable");
                block.Invoke("StartBeingDemolishable", 3f);
            }
    Just put it in any plugin (or, just make a base plugin and put this in it) and it should work.

    Also, if I'm not mistaken, isn't there already a plugin for this? If not, I suppose I could release one if people want it.
     
    Last edited by a moderator: Feb 16, 2016
  4. I would love to have such plugin with permissions.
     
  5. Yes please
     
  6. This plugin would work perfectly with for example EntityOwner making sure that players could demolish only their own buildings. Add this and permissions to use. On PVE servers this plugin will ROCK!
     
  7. Yes then I can get rid of removal tool
     
  8. I believe on PVE servers (server.pve true) this is already the default, you can always remove. Also, I'm fairly certain the demolish option from the hammer is only available for whoever placed the building block.
     
  9. Didn't knew about PVE servers having it already, tho it still can be very convinient to have such plugin on servers without raids (indestructable buildings).
    Not really sure about demolish option being available only for owners of entities, cupboards don't override it?

    Can't test it right now.