I allow myself to create a new post to report the problem I am having. I had started to write following another post but my research resulted in something quite different.
Let me explain :
Regarding a problem with the Ent Who, Ent Auth, Ent Lock and Ent Unlock I realized that if the owner of the entity on which I am ordering is offline then the information does not go up on Discord and does not go back not in the logs.
So I replaced all the lines =>
var player1 = BasePlayer.FindByID (bentity.OwnerID);
by
var player1 = BasePlayer.FindAwakeOrSleeping (bentity.OwnerID.ToString ());
In this way the problem is corrected but if the player is offline and his body does not exist then the same problem as before.
-------------------------------------------------- ---
Another problem:
On my server during the test we were three admin (OwnerID) and during the give only my two friends went back to Discord and logs thanks to the plugin but I can give without the plugin reporting the information.
Thanks in advance for your answer and sorry for my basic english.
Let me explain :
Regarding a problem with the Ent Who, Ent Auth, Ent Lock and Ent Unlock I realized that if the owner of the entity on which I am ordering is offline then the information does not go up on Discord and does not go back not in the logs.
So I replaced all the lines =>
var player1 = BasePlayer.FindByID (bentity.OwnerID);
by
var player1 = BasePlayer.FindAwakeOrSleeping (bentity.OwnerID.ToString ());
In this way the problem is corrected but if the player is offline and his body does not exist then the same problem as before.
-------------------------------------------------- ---
Another problem:
On my server during the test we were three admin (OwnerID) and during the give only my two friends went back to Discord and logs thanks to the plugin but I can give without the plugin reporting the information.
Thanks in advance for your answer and sorry for my basic english.