You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix: It possible KeyAlreadyExistException workarounded
It apparently is possible to have 2 Players with Same Steam ID but different Serial ID. Cause unknown.
For both of them the same Identity ID is looked up because that ignores the Serial ID. And therefore I can just replace the value.
Could auso check with if(!containsKey) but since the result will be identical I didn't bother.
* Fix: Credits are Number-Formatted in all eco commands
* Fix: Players can nolonger pay themselves
Players were able to duplicate money by paying themselves.
If Player A has 10,000 credits
And Pays Player A 1,000 credits
He ended up with 11,000 credits.
But there was a warning on server side that the client was out of sync. And if you do anything else, like for example !econ set !econ take or !econ reset it crashed said client.
* Fix: Added missing .DisplayName when Paying player
* Feat: !econ check can now also check offline players
I dont exactly know why that limitation of online only was in place. set, take, give, check should work for offlines too.
Since the others are not important enough (for me at least) I am not doing that with this commit.
* Fix: Responses now inform about the possability that the player is offline
These kind of commands should work with IMyIdentity instead of IMyPlayer especially since the "*" parameter would work for ALL Players (not NPCs)
but since I have no intention to fix it at this point in time. The better message will have to do.
ModCommunication.SendMessageTo(newNotificationMessage($"Your have recieved {amount} credits from {Context.Player}!",10000,"Blue"),p.SteamUserId);
180
-
ModCommunication.SendMessageTo(newNotificationMessage($"Your have sent {amount} credits to {p.DisplayName}!",10000,"Blue"),Context.Player.SteamUserId);
198
+
ModCommunication.SendMessageTo(newNotificationMessage($"Your have recieved {amount:#,##0} credits from {Context.Player.DisplayName}!",10000,"Blue"),p.SteamUserId);
199
+
ModCommunication.SendMessageTo(newNotificationMessage($"Your have sent {amount:#,##0} credits to {p.DisplayName}!",10000,"Blue"),Context.Player.SteamUserId);
0 commit comments