1. Oxide for Rust Legacy has been discontinued and is no longer supported. No updates or additions will be made, and Rust Legacy-specific plugin submissions will no longer be accepted. We recommend upgrading to the latest version of Rust as able.
    Dismiss Notice
  1. Gute

    Gute Shack Builder Plugin Developer

    Hello, I'm with this problem soon after a Disconnected player shows this error

    Private RPC CL_ConsoleCommand was not sent because a connection to Player Client (1) was not found!
    --- Double Post Merged, Sep 30, 2016 ---
    @Wulf how can I solve this?
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That generally happens when you have a plugin that is trying to do something with a player after they have already disconnected. It's hard to know what exactly is causing it, so you may have to do a bit of testing.
     
  3. Gute

    Gute Shack Builder Plugin Developer

    How can doing these test
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Test plugins that do things when a player disconnects by removing them and seeing if it keeps happening.
     
  5. Gute

    Gute Shack Builder Plugin Developer

    @Wulf I may be talking to you in private?
     
  6. Gute

    Gute Shack Builder Plugin Developer

    Code (Text):
    User Disconnected: Gute
    Private RPC CL_ConsoleCommand was not sent because a connection to Player Client (1) was not found!
    [Oxide] 10:59 AM [Error] Failed to run a 0.50 timer in 'Test v0.1.0' (NullReferenceException: )
    [Oxide] 10:59 AM [Debug]   at (wrapper managed-to-native) UnityEngine.Component:InternalGetTransform ()
      at UnityEngine.Component.get_transform () [0x00000] in <filename unknown>:0
      at Character.get_origin () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Test+<MenuTest>c__AnonStorey3.<>m__4 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
    Private RPC CL_ConsoleCommand was not sent because a connection to Player Client (1) was not found!
     
  7. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Looks like your issue is coming from the Test plugin you are running that is trying to check a player's position or something with transform after they disconnected due to the timer.
     
  8. Gute

    Gute Shack Builder Plugin Developer

  9. Wulf

    Wulf Community Admin Community Admin Oxide Developer

  10. Gute

    Gute Shack Builder Plugin Developer

    @Wulf I sent in the private
     
  11. Gute

    Gute Shack Builder Plugin Developer

  12. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I haven't seen anything.
     
  13. Gute

    Gute Shack Builder Plugin Developer

    Could of a look?
     
  14. Gute

    Gute Shack Builder Plugin Developer

    targetUser.Ban ();
    targetUser.Kick (NetError.Facepunch_Kick_Ban, true); [/ code][/Code]
     
    Last edited: Oct 3, 2016
  15. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I sent you a PM to reply to with the full plugin.
    --- Double Post Merged, Oct 3, 2016, Original Post Date: Oct 3, 2016 ---
    So all I see is that you need to destroy your timers in the OnPlayerDisconnected hook.

    testTimerF5[targetUser.userID].Destroy();
    testTimerF5Msg[targetUser.userID].Destroy();
    uiHide[targetUser.userID].Destroy();
     
  16. Gute

    Gute Shack Builder Plugin Developer

    I took the test but when the player leaves the server is not banned.

    Taking this works perfectly
     
    Last edited: Oct 3, 2016
  17. DraB

    DraB Shack Builder Plugin Developer

    @Gute @Wulf Maybe you should find help from the person you stole it from?
     
  18. Gute

    Gute Shack Builder Plugin Developer

    agent has talked about