Hammer Time

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

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

5/5, 18 likes
  1. You haven't granted yourself or your group the override permission, right? (hammertime.demolishoverride)
     
  2. No Shady. Nobody has that permission on the server, apart from the admins. it was actually a player who notified me of the issue, that when he gains TC access he can destroy any of the building structures in someone elses base.

    Code:
    Group 'vip3' permissions:absolutmail.vip3, adminchat.use, remoteturrets.set, remoteturrets.use, visualcupboard.allowedParent group 'vip2' permissions:absolutmail.vip2, hammertime.allowed, hammertime.repaircooldownParent group 'vip' permissions:backpacks.use.large, signartist.url, replaceonbroken.allow, absolutmail.vip1Group 'default' permissions:bounty.use, backpacks.use, fishing.allowed, robbery.killing, robbery.pickpocket, playerlist.allow, wheresmycorpse.canuse, oilcrate.allow, loyalty.loyalty, showcrosshair.allowed, rulesgui.usecmd, deathnotes.see, backpacks.use.small, loyalty.help, quicksort.lootall, quicksort.use, loyalty.rewards, loyalty.top, automatedsearchlights.use, remoteturrets.use, emote.use
     
  3. Hey. Help me to understand. I put the plug-in so that you can break the building in 2 hours. In file config "HammerTime.json"
    I put the following parameters:
    {
    "AllowDemolishAfterServerRestart": false,
    "AllowRotateAfterServerRestart": false,
    "ClanCanDemolish": false,
    "ClanCanRotate": false,
    "DemolishTime": 14600.0,
    "FriendsCanDemolish": false,
    "FriendsCanRotate": false,
    "MustOwnToDemolish": true,
    "MustOwnToRotate": true,
    "RepairDamageCooldown": 8.0,
    "RotateTime": 600.0
    }

    And in the end it only works 10 minutes. Reboot the plugin, restart the server does not change anything.
    How can I check whether my settings work or not. Or maybe you need something else to change?
     
  4. I'll look into this.

    In a recent update it changed so you have to have the permission "hammertime.allowed", you can grant this to either your group or specific users.
     
  5. Thank's man!
     
  6. Unfortunately, I'm not able to reproduce this. Are they also able to rotate without owning it, if the config option must own to rotate is set to true? Is there any chance another plugin is conflicting?
     
  7. Sounds similar to my problem with the not demolish option showing up. I'm guessing R-Remover tool is conflicting. I can see the rotate option on other people's walls.
     
  8. No, I don't think it's remover tool. From what I remember, that plugin doesn't touch any of the stuff HammerTime does. If the demolish option doesn't show for you, but rotate does, try setting the rotate and demolish settings to the exact same and see if it does then. (Assuming they aren't already the same).
     
  9. I just did a search through my plugins directory for 'OnStructureDemolish' and didn't find any other plugins using this hook. Not sure if that answers any questions.
     
  10. Could you please paste your config for me? I'll try to see if I can figure it out.
     
  11. Code:
    {
      "AllowDemolishAfterServerRestart": true,
      "AllowRotateAfterServerRestart": true,
      "ClanCanDemolish": true,
      "ClanCanRotate": true,
      "DemolishTime": 86400.0,
      "FriendsCanDemolish": true,
      "FriendsCanRotate": true,
      "MustOwnToDemolish": true,
      "MustOwnToRotate": true,
      "RepairDamageCooldown": 8.0,
      "RotateTime": 86400.0
    }
     
  12. Same issue. I installed it yesterday and let the server restart overnight. Today a player was able to remove some foundations not owned by them that a raider had left behind. I authed myself on the nearby TC and was able to do the same thing. Nobody, including admins, have override permissions.

    Code:
    {
      "AllowDemolishAfterServerRestart": true,
      "AllowRotateAfterServerRestart": true,
      "ClanCanDemolish": false,
      "ClanCanRotate": false,
      "DemolishTime": -1.0,
      "FriendsCanDemolish": false,
      "FriendsCanRotate": false,
      "MustOwnToDemolish": true,
      "MustOwnToRotate": true,
      "RepairDamageCooldown": 8.0,
      "RotateTime": -1.0
    }
     
  13. Not really sure what is causing this. Using your config, I'm able to get the demolish option to appear after restart if I have permission, but if I attempt to actually click the demolish it says I must own it in order to demolish it. Is there any chance there's a plugin that's causing conflicting (or in other words changing) OwnerIDs for the blocks? Also, are they able to rotate or only demolish?
     
  14. They're able to rotate and demolish. I think you're right about a plugin conflict somewhere. I'll list the plugins I think may be in conflict with yours because of their effect on or use of build related things and you can dismiss them.

    OxideMod.org plugins:-
    Build
    BuildingGrades
    BuildingOwners
    ConstructionConfig
    CupboardLogs
    EntityOwner
    Friends
    R-RemoverTool
    TwigsDecay
    VisualCupboard

    In addition, there are a couple of paid plugins that use friends and clans to affect build privileges, both by @Fujikura, so if you don't have them, tap him up and he may let you have a copy of each for reference purposes. They're only supposed to affect privileges if the players have friends or are in the same clan, to allow them to be auto authed on all doors, turrets and TCs etc.

    oxidemod.org plugins:-
    ClansReborn
    DynamicCupShare

    I can't see any others in my list that might affect HammerTime, but if I think of anything, I'll let you know. Hopefully, this will help you sort the problem. Thank you for your time on this plugin, it will be really useful when safely working. :)
     
  15. None of them really stick out as potentially causing issues for the average player. The only one I can think of is Build, I don't think Build assigns a OwnerID to a block when it's placed using the plugin's commands, but that's the only case I can think of where it would just allow anyone to demolish.

    There's a few other plugins in there I don't know much about, so I'll look into them and see if there's any potential conflicts, but on the surface it doesn't seem like it.
     
  16. not work last upd((( grant group default hammertime.allowed and conf
    {
    "AllowDemolishAfterServerRestart": true,
    "AllowRotateAfterServerRestart": true,
    "ClanCanDemolish": false,
    "ClanCanRotate": false,
    "DemolishTime": -1.0,
    "FriendsCanDemolish": false,
    "FriendsCanRotate": false,
    "MustOwnToDemolish": true,
    "MustOwnToRotate": true,
    "RepairDamageCooldown": 8.0,
    "RotateTime": 600.0
    }

    not work((( pls check
    [DOUBLEPOST=1493984687][/DOUBLEPOST]i have install plugin BuildingBlocker Can be a problem for him?
     
  17. I checked, and Yes the compatibility issue with the plugin Blocker for Building Rust can correct?
     
  18. I'm not sure what would cause this, I'll go ahead and check to see if it still works on my server after yesterday's update. Building Blocker shouldn't be conflicting.
     
  19. Checked, Blocker Building conflict! had to turn off Building Blocker and has earned
     
  20. Wulf

    Wulf Community Admin

    Just the plugins conflicting with the OnEntityBuilt hook I believe.