I will look into it soon

Entity Limit
Limit entities per player
Total Downloads: 703 - First Release: Jun 4, 2016 - Last Update: Jul 20, 2018
- 5/5, 11 likes
-
-
PaiN updated Entity Limit with a new update entry:
0.6.2
[DOUBLEPOST=1532080575][/DOUBLEPOST]
Here is your fixed config:
Code:{ "MaxLimits": { "gates.external.high.stone": 35, "gates.external.high.wood": 35, "wall.external.high.stone": 35, "autoturret_deployed": 25, "landmine": 50, "spikes.floor": 15, "furnace.large": 6 } }
-
Code:if (entity.ShortPrefabName == "miningquarry_static") item = ItemManager.CreateByName("mining.quarry");
else we cant block it, and get a error message.
Code:[Error] Failed to call hook 'OnEntitySpawned' on plugin 'EntityLimit v0.6.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (BasePlayer player, BaseEntity entity) [0x00210] in <6aa5ce3766a448df9ac8908f153028c5>:0 at Oxide.Plugins.EntityLimit.OnEntitySpawned (BaseNetworkable entity) [0x000b7] in <6aa5ce3766a448df9ac8908f153028c5>:0 at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001f3] in <6aa5ce3766a448df9ac8908f153028c5>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <db8eacac902a4df4bfeb92f0619ac1c8>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
-
-
PaiN updated Entity Limit with a new update entry:
0.6.3
-
Getting another error when I do /remove all 300 and then click with the mouse on High External Stone Wall or High External Wood Wall I get this error below.
Code:(16:56:06) | [Oxide] 17:56 [Error] Failed to call hook 'OnRemovedEntity' on plugin 'EntityLimit v0.6.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.EntityLimit.EntityDestroyed (BaseEntity entity) [0x0005b] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.EntityLimit.OnRemovedEntity (BaseEntity entity) [0x00000] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00257] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
-
-
-
-
-
-
I've been also noticing this error once in a while.
Code:(16:56:00) | [Oxide] 17:55 [Error] Failed to call hook 'OnEntityDeath' on plugin 'EntityLimit v0.6.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.EntityLimit.EntityDestroyed (BaseEntity entity) [0x0005b] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.EntityLimit.OnEntityDeath (BaseCombatEntity entity, HitInfo hitInfo) [0x0000d] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00221] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0 (16:56:01) | [Oxide] 17:55 [Error] Failed to call hook 'OnEntityDeath' on plugin 'EntityLimit v0.6.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.EntityLimit.EntityDestroyed (BaseEntity entity) [0x0005b] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.EntityLimit.OnEntityDeath (BaseCombatEntity entity, HitInfo hitInfo) [0x0000d] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00221] in <dc6a73df56b74a09868ed10c626717ba>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
-
-
Heres whats inside the config file
Code:{ "MaxLimits": { "gates.external.high.stone": 35, "gates.external.high.wood": 35, "wall.external.high.stone": 35, "autoturret_deployed.prefab": 25, "landmine.prefab": 50, "spikes.floor.prefab": 15, "large_furnace_deployed": 6 } }
-
https://oxidemod.org/threads/entity-limit.18547/page-10#post-409002 -