Hammer Time

Tweak "Demolish" and "Rotate" time when using the hammer

Total Downloads: 4,351 - First Release: Feb 19, 2016 - Last Update: Jun 30, 2018

5/5, 18 likes

  1. i had over 90K entity and we set -1 in config to use all the time. The server didnt restart so we unload it. it is really good plugins thanks btw
    i hope no one ever experience the trouble i had cus it cost us 1 hour delay to open the server again.
     
  2. Have you confirmed that it's related to my plugin? A while ago my server was having very long start up times, but it wasn't attributed to this plugin, and has stopped since the last devblog. Do you have any time warnings in your console? (On server restart) Like "OnEntitySpawned for Plugin 'HammerTime' took XXX milliseconds"? If you don't have any time warnings, it may not be related to my plugin at all.
     

  3. as i stated before i took one hour to solve the issue. i started the server w/o all plugin and it worked so i concluded that problem is one of the plugin so i load and unload all plugins and find out that hammertime cause this.
     
  4. Ok, well, I appreciate the report but unfortunately there is nothing I can do to resolve this issue without being sure of what's causing it, and/or being able to reproduce it. If you have the time; could you kindly open the log on the day it happened and see if there's any time warnings like the ones I mentioned above?

    Thanks.
     
  5. reach me with pm.
     
  6. It seems like there s no config file loading for my server I am with clanforge (if it matters). So as for now every one is able to remove anyones base with the hammer. I can change the settings in the mod file to suite what I want but I thought there was going to be a cfg file to di it with instead.
    Is there supposed to be a cfg file or am I supposed to edit the main file? thanks
     

  7. By default, the plugin has the exact same behavior as vanilla, if I'm not mistaken. The config file is auto-generated in oxide\config\HammerTime.json.
     
  8. Out of curiosity, does this require that a player have a tool cupboard in their build? I've set the time to -1 since it's a small private server with just a few of us but one of my friends just mentioned that he doesn't have the option to demolish a foundation he just built a few minutes ago.
     
  9. It's all default behavior except for the config options that force the player to own it to rotate/demolish, and the time. So, I'm not sure if a tool cupboard is required normally, but if so, then yes.
     
  10. Ok cool thanks. Sorry for what is probably annoying questions, I'm not used to the new building system yet at all. Last time I played was about two and a half years ago with legacy and it was totally different. :)
     
  11. [Error] Failed to call hook 'OnStructureRepair' on plugin 'HammerTime v1.0.4' (InvalidCastException: Cannot cast from source type to destination type.)
     
  12. Shady757 updated Hammer Time with a new update entry:

    1.0.5

     
  13. Can you explain the config file?
     
  14. Config:
    Code:
    {
      "AllowDemolishAfterServerRestart": false,
      "AllowRotateAfterServerRestart": true,
      "AuthLevelOverrideDemolish": true,
      "DemolishTime": 600.0,
      "MustOwnToDemolish": false,
      "MustOwnToRotate": false,
      "RepairDamageCooldown": 8.0,
      "RotateTime": 600.0
    }
    "AllowDemolishAfterServerRestart": This resets the timer to the specified interval in the config whenever the server restarts again.

    "AllowRotateAfterServerRestart": Same as above, but for rotating.

    "AuthLevelOverrideDemolish": Admins with Auth Level 2 are still allowed to use demolish, if set to false, and "MustOwnToDemolish" set to true, they will not be able to demolish.

    "DemolishTime": How long a player can demolish their object.


    "MustOwnToDemolish": The player must own the object to be able to remove it with the Hammer.

    "MustOwnToRotate": Same as above, for rotate.

    "RepairDamageCooldown": How long before you can repair an object that has been damaged again. (Currently only works with higher intervals)

    "RotateTime": How long a player can rotate their object.


    Also updated overview with this^
     
  15. hi only admins can use it on my server what can i do that all can use it on the own walls?
     
  16. Only admins can use what? This doesn't override any behavior unless you have it so admins *can* use demolish on other people's objects.
     
  17. Admins can demolish all time the Walls and normal User only a short time.
     
  18. So change your config's Demolish Time to something higher. The admin demolish and player demolish are completely different, and this change's the time the player can demolish their objects.
     
  19. Shady757 updated Hammer Time with a new update entry:

    1.0.6

     
  20. Players on my server can't see demolished and rotate. :(
    Code:
      "AllowDemolishAfterServerRestart": true,
      "AllowRotateAfterServerRestart": true,
      "AuthLevelOverrideDemolish": true,
      "DemolishTime": -1,
      "MustOwnToDemolish": true,
      "MustOwnToRotate": true,
      "RepairDamageCooldown": 8.0,
      "RotateTime": -1