You're a beast man. Thanks!
PrivateMessages
Moved
Total Downloads: 1,220 - First Release: Aug 4, 2016 - Last Update: Mar 18, 2017
- 5/5, 4 likes
-
There's an issue with the method you use to find players as it tries to find offline players as well meaning that it's literally impossible to PM people with a large player base.
-
I've modified the plugin to include a better player search and support for BetterChatMute.
-
@PaiN I get this error a lot:
(21:25:29) | [Oxide] 21:25 [Debug] ExType: TargetInvocationException
(21:25:29) | [Oxide] 21:25 [Error] Failed to run command 'pm' on plugin 'PrivateMessages v0.4.0' (NullReferenceException: Object reference not set to an instance of an object)
Private RPC CL_ConsoleCommand was not sent because a connection to Player Client (162) was not found! -
Add this to "void cmdPM"
if (player == null)
return; -
-
This still spams console a lot -
Private RPC CL_ConsoleCommand was not sent because a connection to Player Client (18) was not found! -
Also some players it won't even work. When you try it says "player not found"
-
Alss this version does not seem to find players using partial names...
eg. Player Name: Sobieski
if you try /pm Sobi text - results in player not found... -
Got it fixed. @PaiN if you need my version let me know.
-
I recently noticed that in Hurtworld V2, when you try sending a PM to someone that isn't logged in - it forwards that PM to another random online player.
-
Hi @Wulf, any chance I could help in the development with this plugin? There's a few changes that would be great to make (see the above). As well as support for blocking when muted. Either this or Private Messaging since there's a few features missing that would be great to have within.
-
Code:
Failed to call hook 'cmdPM' on plugin 'PrivateMessages v0.4.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <bd4caadc75b645369559ec9e852e22e4>:0 at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <bd4caadc75b645369559ec9e852e22e4>:0 at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message) [0x00008] in <bd4caadc75b645369559ec9e852e22e4>:0 at Oxide.Plugins.PrivateMessages+PrivateMessage.SendPM (Oxide.Core.Libraries.Covalence.IPlayer sender, Oxide.Core.Libraries.Covalence.IPlayer target, System.String message) [0x0012c] in <80d75a584acc49b7a5c3cfc3b649717d>:0 at Oxide.Plugins.PrivateMessages.cmdPM (Oxide.Core.Libraries.Covalence.IPlayer player, System.String cmd, System.String[] args) [0x00070] in <80d75a584acc49b7a5c3cfc3b649717d>:0 at Oxide.Plugins.PrivateMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00153] in <80d75a584acc49b7a5c3cfc3b649717d>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09b255f9a88d4ffda4779759134e116d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0
Last edited by a moderator: Jun 23, 2018