ShimmyMySherbet / ShimmysAdminTools

A feature-rich admin toolkit for Unturned. Including Flight, Noclip, and Command Spying.
GNU General Public License v3.0
29 stars 7 forks source link

Players can't chat (Using Avi's plugins) #5

Closed ndv400 closed 3 years ago

ndv400 commented 3 years ago

Plugin errors out on any message, also players can't chat after installing this plugin Using Avi's plugins (might be the cause) -> AviRockets.Unturned.Chat

[25.02.2021 0:09:31] [Info] [World] [Player] shalash1203 [shalash1203]: "afgwsrg"
[25.02.2021 0:09:32] [Error] Exception has been thrown by the target of an invocation.
[25.02.2021 0:09:32] [Error]   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper dynamic-method) SDG.Unturned.SteamChannel.SDG.Unturned.SteamChannel.receive_Patch2(SDG.Unturned.SteamChannel,Steamworks.CSteamID,byte[],int,int)
[25.02.2021 0:09:32] [Error] Object reference not set to an instance of an object
[25.02.2021 0:09:32] [Error]   at ShimmysAdminTools.main.Chat_OnCheckPermissions (SDG.Unturned.SteamPlayer player, System.String text, System.Boolean& shouldExecuteCommand, System.Boolean& shouldList) [0x00132] in <0c7dd7f7f102495cbd3293649f1c3ee8>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_SteamPlayer_string_bool&_bool&(SDG.Unturned.SteamPlayer,string,bool&,bool&)
  at SDG.Unturned.ChatManager.process (SDG.Unturned.SteamPlayer player, System.String cmd, System.Boolean fromUnityEvent) [0x0005f] in <6ca2c550579548f6b1714cffb90a0fb7>:0 
  at SDG.Unturned.ChatManager.askChat (Steamworks.CSteamID steamID, System.Byte flags, System.String text) [0x001ed] in <6ca2c550579548f6b1714cffb90a0fb7>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <eae584ce26bc40229c1b1aa476bfa589>:0 
ShimmyMySherbet commented 3 years ago

This is a recent issue with command spy. This weekend I will be re-writing all of the command spy code to fix this.

ShimmyMySherbet commented 3 years ago

I've re-written the command spy code, and I'll create a release with it after properly testing it.

ShimmyMySherbet commented 3 years ago

This should be solved now in the latest release.