Hi, I have this plugin:
But when the users with the permission sends a command like: /home 1Code:object OnPlayerChat(ConsoleSystem.Arg arg) { BasePlayer player = (BasePlayer)arg.connection.player; if (HasPermission(player, "VIPChat")) { ConsoleSystem.Broadcast("chat.add", player.userID.ToString(), string.Format("<color='#fdff4c'>" + "[VIP] " + player.displayName + "</color>: " + arg.GetString(0, "text")), 1.0); return true; } else { return null; } }
All the server can see it.
This start happening since this new update.
Thanks.
Commands showing for chat.add
Discussion in 'Rust Development' started by Reynostrum, Jan 29, 2016.
-
Wulf Community Admin
Nothing has changed with hooks or update that would affect this code. According to your code, you are sending the chat to everyone.
Are you trying to make a "VIP" chat channel or only send the chat players with the permission? Right now you are just broadcasting a message to the chat if the sending player has a permission. -
I am trying to add a the [VIP] tag to players with the permission. The plugin has been working for like 4 months. Today, still working but when a player with the permission sends a command it is broadcasted to the chat. This start happening since this update.
-
Wulf Community Admin
I'd look to your plugins then, as this isn't happening with Oxide alone. Check for plugins that may be overriding OnPlayerChat or OnRunCommand. -
Damn Wulf, you are a genius. It was the RemoveAAA plugin.
