BuildingRestriction

Moved

Total Downloads: 894 - First Release: Sep 9, 2016 - Last Update: Sep 4, 2017

5/5, 12 likes
  1. Wulf

    Wulf Community Admin

    Jakkee submitted a new resource:

    BuildingRestriction - Restrict buildings foundations / height

    Read more about this resource...
     
  2. question, this plugin limit height for a clan construction?
     
  3. Hi, amazing mod but can you add multiple buildings in config such as: home, clan home and carry for exemple

    Players can select his buildings with /home create XXX for exemple.

    When a player type that, it created a datafile with each buildings: Steamid/name home: X. Y Clan X. Y and carry X. Y

    So maybe add limit buildings in the config file too? Eg: BuildingsMaxPerPlayer: 3.0
     
  4. Hey. Can we talk in private, I want some modification on this plugin and will pay ya
     
  5. This would be amazing. I allow my players 2 bases per person, but I want to keep them from building massive bases that will be raided and left there to rot. I'm shopping around to find the perfect plugin to solve both problem A: Too big of a base, and B: Left there raided out too long (i.e. removed via EntityLimit) Sometimes players fix their base after raided, but let's face it, most walk away and build new. One plugin that could do both limit size and remove dead bases would be fantastic.
     
  6. Is there a way to limit how many TOTAL foundations people can use?
     
  7. That's the way it works now, but I need it to work the same for two bases, total. So the 'BuildingsMaxPerPlayer: 2.0' would be perfect for me.
     
  8. Hi. How to disable notifications in the Rcon console?
    (15:14:44) | [Oxide] 15:14 [Warning] Calling 'OnEntityBuilt' on 'BuildingRestriction v0.1.2' took 401ms
    (15:14:46) | [Oxide] 15:14 [Warning] Calling 'OnEntityBuilt' on 'BuildingRestriction v0.1.2' took 441ms
    (15:14:46) | [Oxide] 15:14 [Warning] Calling 'OnEntityBuilt' on 'BuildingRestriction v0.1.2' took average 2212ms
    (15:14:50) | [Oxide] 15:14 [Warning] Calling 'OnEntityBuilt' on 'BuildingRestriction v0.1.2' took 401ms
    [...]
     
  9. I think you can't disable this message.

    This hook is called by the plugin for the plugin. It's just for advert you the time for call this hook
     
  10. Too bad.
    You know another plugin that does the same?
    I have a spam in the console ...
     
  11. Yea a lot of plugin do that.

    But the spam is because this hook is called every X action player's use or you.
    Try to find what action call the hook and try to limit it.
     
  12. Plugin not optimise, 140 online+ this plugin = drop server
     
  13. Jakkee updated BuildingRestriction with a new update entry:

    1.0


    [DOUBLEPOST=1476448448][/DOUBLEPOST]
    Plugin Limits a whole base, Whether it be a solo player or Clan base.
    Nice ideas, Not 100% sure if i'd be able to limit building per player as multiple players can build 1 base. I'll have a look and see what happens.
    There is not way to limit per player using this plugin, May add this in the next update.
    Poor code optimization will do this, Saddly I have to loop a whole structure on each placement. So bigger the base, The more spam you'll get in console (Freeze or lag).
    Shouldn't be as bad in the new update but if you are getting this spam in console I recommend lowering your max Height/Foundations.

    I'm working on a better way to solve this looping each building on placement
     
  14. Thanks for reply and update
     
  15. [H]

    [H]

    block building in water? sea?
     
  16. This plugin does not block building in water
     
  17. Jakkee updated BuildingRestriction with a new update entry:

    1.1

     
  18. I received this error:

    [Oxide] 13:48 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BuildingRestriction v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 13:48 [Debug] at Oxide.Plugins.BuildingRestriction.OnEntityDeath (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BuildingRestriction.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    Saved 23,503 ents, serialization(0.00), write(0.01), disk(0.00) totalstall(0.02).
    Saving complete
    [Oxide] 13:48 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BuildingRestriction v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 13:48 [Debug] at Oxide.Plugins.BuildingRestriction.OnEntityDeath (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BuildingRestriction.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    Saved 23,495 ents, serialization(0.00), write(0.00), disk(0.00) totalstall(0.01).
    Saving complete
    [Oxide] 13:49 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BuildingRestriction v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 13:49 [Debug] at Oxide.Plugins.BuildingRestriction.OnEntityDeath (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BuildingRestriction.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    > oxide.reload BuildingRestriction

    Any idea what's going on?

    Thanks!
     
  19. Eh, Thats interesting.
    Didn't happen to use Ent.kill? (Default bind Q)
    [DOUBLEPOST=1476536977][/DOUBLEPOST]Found the cause, Deployable items.