Pychnight / TshockRpgToolKit

Master Controller for distrubtion of quests, custom npcs, custom items and skills, housing, leveling, npcshops, etc.
GNU General Public License v2.0
11 stars 1 forks source link

[Banking] Reward Distributor errors #54

Closed Pychnight closed 5 months ago

Pychnight commented 5 years ago

[05/25/19 18:17:56] [Server API] Warning: Plugin "Banking" has had an unhandled exception thrown by one of its GameUpdate handlers: System.NullReferenceException: Object reference not set to an instance of an object at Banking.Rewards.RewardDistributor.TryUpdateBankAccount (System.String playerName, System.String accountName, System.Decimal& value) [0x00038] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.Rewards.RewardDistributor.PostEvaluateReward (Banking.Rewards.Reward reward, System.Decimal& rewardValue, Banking.CurrencyDefinition currency, System.String playerName) [0x0001e] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.Rewards.RewardDistributor.evaluate (Banking.Rewards.Reward reward) [0x000c1] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.Rewards.RewardDistributor.OnGameUpdate () [0x00015] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.BankingPlugin.OnGameUpdate (System.EventArgs args) [0x00027] in <5e97b6549f3240589f7b8685b8f8f193>:0 at TerrariaApi.Server.HandlerCollection1[ArgsType].Invoke (ArgsType args) [0x0004d] in :0 `

Pychnight commented 5 years ago

[05/25/19 17:29:56] [Server API] Warning: Plugin "Banking" has had an unhandled exception thrown by one of its ServerJoin handlers: System.NullReferenceException: Object reference not set to an instance of an object at Banking.PlayerBankAccountMap.EnsureBankAccountNamesExist (System.Collections.Generic.IEnumerable1[T] accountNames) [0x0003c] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.Bank.EnsureBankAccountsExist (System.String playerName) [0x0004f] in <5e97b6549f3240589f7b8685b8f8f193>:0 at Banking.BankingPlugin.OnServerJoin (TerrariaApi.Server.JoinEventArgs args) [0x00019] in <5e97b6549f3240589f7b8685b8f8f193>:0 at TerrariaApi.Server.HandlerCollection1[ArgsType].Invoke (ArgsType args) [0x0004d] in :0