Hi there. So the mod I am creating is designed that when in lockpicking mod you will be able to attempt to pick locks/code locks.
Now currently for testing purposes I have set it that when lockpick mod is on any door will open (similar to how admin door unlocker works)
But I have noticed that I get this warning every time I use a door now no matter the lockpicking mode.
[Oxide] 2:42 AM [Warning] Calling hook CanUseDoor resulted in a conflict between the following plugins: MasterKey, ThiefAPI
[Oxide] 2:42 AM [Warning] Calling hook CanUseDoor resulted in a conflict between the following plugins: MasterKey, ThiefAPI
Is there a way to fix this error? or would you just have to have one mode calling that function only?
Solved Resolving conflicting CanUseDoor?
Discussion in 'Rust Development' started by Alphawar, Nov 28, 2015.
-
Wulf Community Admin
Detect and disable the feature in one plugin if the other is detected and the player has permission, else ignore it as it may not actually be an issue.
-
Another question for you wulf. if I had the setting Lockpick on, when I use a door that I have the key/code for is there a way to detect this before running code.
Reason being is that if I make it cost material to pick a lock I would want to make it that if you open your own door while still in lockpick mode you would not use the material. -
Wulf Community Admin
-
#EDIT
@Wulf I had a look at your older version (v2.0.0) when it was added and I believe I found the code, thing though is that mod was made using LUA, and now yours is C#, I cant find it on the newer C# verions, could you please verify this. also this is the old verions I believe
if not lock:IsLocked() or lock:HasLockPermission(player) then return endLast edited by a moderator: Nov 28, 2015