Entity Limit

Limit entities per player

Total Downloads: 703 - First Release: Jun 4, 2016 - Last Update: Jul 20, 2018

5/5, 11 likes
  1. In 30mins I will check it.
     
  2. PaiN updated Entity Limit with a new update entry:

    0.6

     
  3. thank you, will try it later
     
  4. is there anyway so you can make it like let's say i limited the sleeping bags to 4 and placed all of them and then i wanted to pickup the bag and place it somewhere else ?
     
  5. For now until I rewrite the plugin you can use
    R-Remover Tool for Rust | Oxide
     
  6. not sure if you understood what i'm trying to say, i meant like i place 4 bags so i reached the limit right! , so if i pickup a bag and try to place it somewhere else it won't let me because i reached the limit, what i was trying to say is have it like if i picked an item it will remove it from my entity limit list so i can place it again, like remove that entity from my entity limit list , i hope this is not confusing :p
     
  7. Code:
      at Oxide.Plugins.EntityLimit.EntityDestroyed (.BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.OnEntityDeath (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  8. did you just add the plugin? i've had this happen when you remove an entity in the world and there isn't yet any recorded data for that entity type.
     
  9. "MaxLimits": {
    "cupboard.tool.deployed": 1
    Code:
    [10/05/2017 08:57:17] Unloaded plugin Entity Limit v0.5.0 by PaiN
    [10/05/2017 08:57:43]   at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Oct 5, 2017
  10. Hi,

    Is there a way to add command said how much they can build again ? For each entities?

    And add clan,friends support to limit per clan and not player? (Using Universal plugin?)

    Thanks
     
    Last edited by a moderator: Oct 15, 2017
  11. Hi, There is an issue with "autoturret_deployed" . The bigest issue is that is possible to continue to deploye turret after the limit.
    The second issue is that the only way to decrease the counter is to /remove the turret.. If you pick it up by the normal way with hamer, the counter don't decrease :/
     
  12. Same here with those settings:

    Code:
    {
      "MaxLimits": {
        "campfire": 10,
        "autoturret_deployed": 10
      }
    }
    Code:
    7:57 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'EntityLimit v0.6.0' (NullReferenceException: Object reference not set to an instance of an object)
    17:57 [Stacktrace]   at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    Thanks
     
  13. Code:
    (08:40:04) | at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (08:40:04) | Failed to call hook 'OnEntitySpawned' on plugin 'EntityLimit v0.6.0' (NullReferenceException: Object reference not set to an instance of an object)
    (08:40:04) | at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  14. Hey, I've this config
    Code:
    {
      "MaxLimits": {
        "mining.quarry": 1,
        "campfire": 50,
        "ceilinglight": 50,
        "furnace": 30,
        "furnace.large": 15,
        "lantern": 50,
        "searchlight": 50,
        "tunalight": 50
      }
    }
    But you can build as many quarries as you want... we have so many players, that too many quarries cause lag :s
    How can I fix this or what can I do?
     
  15. What about limiting building blocks? Can this limit the amount of building blocks such as foundations, walls, etc. that the players build?
     
  16. Great plugin! Exactly what I needed after I found someone lagging the server with campfires! Thanks! :)
     
  17. There's been a persistent issue with this plugin where players will be at max for an entity, have it destroyed, (wooden box, for instance) yet not able to place more of the same entity. Not sure if the code just doesn't account for this or if the plugin isn't playing nice with our server.
     
  18. By default the config limits high stone walls and stone wall gates. I removed that and added my own items. Thing is players were complaining these items were still limited and I saw them in the data file being listed there so I had to modify my config to this:

    Code:
    {
      "MaxLimits": {
        "campfire": 25,
        "skull.fire.pit": 25,   
        "ceilinglight": 25,   
        "searchlight": 25,   
        "tunalight": 25,   
        "furnace": 25,
        "furnace.large": 25,
        "wall.external.high.stone": 500,
        "gates.external.high.stone": 25
      }
    }
    So I worked around it, but just posted as it appears possibly these items are limited by default somehow? Dunno.

    Sincerely, great plugin :)
     
  19. Hi!

    I want to remove bed and limit sleeping bag to 1 for a dark reason.
    bed_deployed doesn't work too :(

    Also, once the sleeping bag is destroyed, I've to wipe the limit to place it again because it counted as one. Same if I picked up. :(

    Thanks!
     
    Last edited by a moderator: Dec 5, 2017
  20. "small_stash_deployed": 2

    not work
    Code:
    | at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    any can help¿?