Plugin isn't working despite lack of compiler errorsSolved
In response to Wulf ():
So something still null in that method, likely something with the player or crest. I'd suggest addin...
Problems solved.

There are two things that I have learned and that have caused all the problems:
  1. You can't put Reign of Kings-Players in any kind of Collection. Not in List<T>s nor in Dictionary<TKey,TValue>s or anything else.
  2. Server.AllPlayers does infact not contain all Players and you can't get each Player with Server.GetPlayerById(ulong playerId) nor with Server.GetPlayerByName(string playerName) either, because the first one only contains "all" players that are online and the latter can only get a player by name or id if said player is online, too. But what does infact contains all Players, or more accurate all IPlayers is covalence.Players.All. Even though it is a little inconvenient that the IPlayer.Id is a string and not a ulong like the Reign of Kings-Player.Id, the problem is easily solved with two lines of code ulong Id = 0; and ulong.TryParse(Iplayer.Id, out Id); .
(Advance Notice: It is theoretical possible to declare the variable inline like this ulong.TryParse(Iplayer.Id, out ulong Id);, but in practice Reign of Kings will not accept this and you will get a strange compiler error.)


So the only thing that is left for me to ask at this point is if there's any way I can monitor the amound of resources each player gathers and if you know no way I would like to ask you to create a Hook for the Chest/ContainerOpenEvent and the Chest/ContainerCloseEvent or what might be even better would be one Hook that is called for all Events, each and everyone of them, so that one can then distinguish which kind of Event the Event is, that has been passed on after it called the Hook, just like with the OnPlayerChat-Hook which seems to get called for multiple chat related Events like the PlayerWhisperEvent, the GuildMessageEvent and the PlayerLocalChatEvent etc. Later on you can use if statements to determine which Event it actually was.
That way there would only be the need to create one Hook to enable the players to work with every Event they please, which I would really appreciate.

I hope you think about adding this "universal" Hook and I would be very grateful if you would decide to do so.
The hooks would be possible, but I'd recommend creating a separate thread(s) with requests for each.
In response to Wulf ():
The hooks would be possible, but I'd recommend creating a separate thread(s) with requests for each.
Yeah, the problem is just that I don't know for sure for which Event I need a Hook so the "universal" Hook would suite me best.

But I will make a new thread to request it.
Locked automatically