Possible to load faster than Discord Sync?Not An Issue

Hey im curious if there is a easy way to get the Rename Plugin to load before

Discord Sync catches the Name on connect, cause i want my Users to have the renamed Name in my Discord.

If i manually change the Name of a player with /rename it Syncs,

but if the player reconnects it grabs the Steam Name before it got renamed.

I think its because DiscordSync is in the Alphabet before Rename and thats why it loads the OnPlayerConnect Hook from DiscordSync before Rename.

Is there a easy solution?

(13:06:01) | Player 'XXXXXXXXXXXXXX' added to group: ingame
(13:06:01) | Unloaded plugin Discord Sync v1.1.0 by Tricky & OuTSMoKE
(13:06:01) | Loaded plugin Discord Sync v1.1.0 by Tricky & OuTSMoKE
(13:06:01) | Failed to call hook 'OnUserNameUpdated' on plugin 'DiscordSync v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.DiscordSync.GetGuildMember (System.String discordId) [0x00018] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.DiscordSync.HandleNick (Oxide.Core.Libraries.Covalence.IPlayer player, System.String discordId) [0x0001d] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.DiscordSync.OnUserNameUpdated (System.String id) [0x00014] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.DiscordSync.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0011c] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(13:06:01) | [Rename] XXXXXXXXXXXXXX was renamed to XXXXXXXXXXXXXX
(13:06:01) | Failed to call hook 'OnUserConnected' on plugin 'DiscordSync v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.DiscordSync.GetGuildMember (System.String discordId) [0x00018] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.DiscordSync.HandleNick (Oxide.Core.Libraries.Covalence.IPlayer player, System.String discordId) [0x0001d] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.DiscordSync.OnUserConnected (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00010] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.DiscordSync.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000f1] in <b22a803f5e32451f807ce91f99d706a6>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

 

Not really aside from renaming one of them.

hmm i tried with the Rename plugin >.> but im not good at it and get always errors :D

Can u maybe help with Discord Sync to rename it to maybe WDiscordSync? :x

I mean i can dono for the work :D

Either one would pretty much just involve renaming the file and renaming the main class inside it.

I did it with the Rename Plugin and didnt work, but i try with the DiscordSync then and hope for the best

What was the issue when you renamed?

there where missing variables and stuff, but now i changed DiscordSync and it still doesnt Rename the Discord Users to the "Rename" Name and still using the Steam name... its so weird, but the errors are gone atleast :D

Locked automatically