Solved Only small letters

Discussion in 'Plugin Requests' started by yVitaum, Sep 5, 2016.

  1. 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.
     
  2. Code:
    class TestPlugin:
        Def OnPlayerChat(NetUser netUser, string message):
            message.ToLower()
    I think this would work,
    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();
            }
        }
    }
     
  3. Adding to the Plugin EasyChat ?
     
  4. 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);
    with
    Code:
    string msg = rust.QuoteSafe(message).ToLower();
     
  5. Thank you, it worked.
     
  6. Not a problem :)