Hello, I would like to know how to not let write large letters in the chat? Even if the player type something like this: HELLO will appear as: hello.
Solved Only small letters
Discussion in 'Plugin Requests' started by yVitaum, Sep 5, 2016.
-
Code:
class TestPlugin: Def OnPlayerChat(NetUser netUser, string message): message.ToLower()
May have to remove players message and reset it it with a server.broadcast
[DOUBLEPOST=1473043040][/DOUBLEPOST]C#
Code:using System; using System.Collections.Generic; using Oxide.Core; using Oxide.Core.Plugins;namespace Oxide.Plugins { [Info("TestPlugin", "Jakkee", "1.0")] public class TestPlugin : RustLegacyPlugin { void OnPlayerChat(NetUser netUser, string message) { message.ToLower(); } } }
-
Adding to the Plugin EasyChat ?
-
Ask the developer of EasyChat to add this to their plugin.
But you can do it yourself by going to line #100
and replacing:
Code:string msg = rust.QuoteSafe(message);
Code:string msg = rust.QuoteSafe(message).ToLower();
-
Thank you, it worked.
-