Calling hook CanUseLockedEntity results in a conflictSolved
seeing this error in console

Calling hook CanUseLockedEntity resulted in a conflict between the following plugins: DynamicCupShare - True (Boolean), Hotel (False (Boolean))
Calling hook CanUseLockedEntity resulted in a conflict between the following plugins: DynamicCupShare - True (Boolean), Hotel (False (Boolean))
CanUseLockedEntity is the problem.
This hook doesn't work now if the codelock aren't locked!
@rustybeachcomber can you conturnate this ?

Thx
In response to DanBosS ():
CanUseLockedEntity is the problem.
This hook doesn't work now if the codelock aren't locked!
This warning is shown when two plugins are passing conflicting values to allow/disallow that hook from continuing.

In regards to the hook being called though, I just pushed a dev build change to fix that; it is not related to this thread though.
In response to Wulf ():
This warning is shown when two plugins are passing conflicting values to allow/disallow that hook fr...
Hi @Wulf,
I did the test on a blank server, when we use the call to the hook:
bool CanUseLockedEntity(BasePlayer player, BaseLock baseLock)
{
    Puts("CanUseLockedEntity works!");
    return true;
}​

 

You do not access the hook, if the lock on the door is not locked. And the principle of the hotel is that the doors are not locked until they are rented. And since this hook no longer responds to a door with an unlocked codelock, the hotel can not do its tests and therefore proceed to the mechanism of the plugin.
I did not find a replacement hook.

Thanks for all :p

In response to DanBosS ():
Hi @Wulf,
I did the test on a blank server, when we use the call to the hook:
bool CanUse...
That has been fixed in the latest dev build as mentioned in the previous post.
If someone goes into a room and locks the door and then leaves it rents the room. So wulf are you saying that this will be fixed when a new build is released?
In response to rustybeachcomber ():
If someone goes into a room and locks the door and then leaves it rents the room. So wulf are you sa...
The issue that was posted above is unrelated to your issue and topic of this thread, so no, sorry.

Thanks @Wulf

CanUseLockedEntity Works again !
You're the best ^^

 

Locked automatically