1. LaserHydra updated Better Chat with a new update entry:

    1.0.2

     
  2. Quick antihack fix. Just an idea for author...
    Code:
                //    Forbidden formatting tags
                List<string> forbiddenTagsRE = new List<string>{
                    "</?color[^>]*?>",
                    "</?size[^>]*?>",
                    "</?b[^>]*?>",
                    "</?i[^>]*?>"
                };            var PlayerName = player.Name;
                foreach (string tag in forbiddenTagsRE) PlayerName = Regex.Replace(PlayerName, tag, "", RegexOptions.CultureInvariant|RegexOptions.IgnoreCase);
                PlayerName = PlayerName.Replace("<", "&lt;");
                PlayerName = PlayerName.Replace(">", "&gt;");            message = Regex.Replace(message, "{Title}", "", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
                foreach (string tag in forbiddenTagsRE) message = Regex.Replace(message, tag, "", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
                message = message.Replace("<", "&lt;");
                message = message.Replace(">", "&gt;");
     
  3. Every time i reload the plugin. It will auto change to the beginning content "owner,player,mod". Why ?
     
  4. The plugin is working but the colors are not anyone know why?
     
  5. Hello LaserHydra Nice Plugin but when i add a group and than i restart the server the group in betterchat.json is resetet
    [DOUBLEPOST=1450860349][/DOUBLEPOST]
    When you restart the server it maybe works by me is it so
     
    Last edited by a moderator: Dec 23, 2015
  6. when i restart the server it doesnt work.
    [DOUBLEPOST=1450860688][/DOUBLEPOST]ive tried reinstalling the mod and restarting the server nothing seems to work
     
  7. I'm spending so much time on something so simple, but all i want is a Owner, Admin and VIP groups and making the group in-game doenst help so i go into the .json file edit that and it either doesn't work or it resets... why does it reset.

    I've even changed the .cs file so it keeps the settings i want and it doesn't work but the code is the end result i want

    Code:
    Code:
     {
                SetConfig("WordFilter", "Enabled", false);
                SetConfig("WordFilter", "FilterList", new List<string> {});
                SetConfig("WordFilter", "UseCustomReplacement", false);
                SetConfig("WordFilter", "CustomReplacement", "Unicorn");            SetConfig("AntiSpam", "Enabled", false);
                SetConfig("AntiSpam", "MaxCharacters", 85);            SetConfig("player", "Formatting", "{Title} {Name}<color={TextColor}>:</color> {Message}");
                SetConfig("player", "ConsoleFormatting", "{Title} {Name}: {Message}");
                SetConfig("player", "Permission", "color_player");
                SetConfig("player", "Title", "[Player]");
                SetConfig("player", "TitleColor", "aqua");
                SetConfig("player", "NameColor", "aqua");
                SetConfig("player", "TextColor", "white");
                SetConfig("player", "Rank", 1);
               
                SetConfig("vip", "Formatting", "{Title} {Name}<color={TextColor}>:</color> {Message}");
                SetConfig("player", "ConsoleFormatting", "{Title} {Name}: {Message}");
                SetConfig("player", "Permission", "color_player");
                SetConfig("player", "Title", "[V.I.P]");
                SetConfig("player", "TitleColor", "yellow");
                SetConfig("player", "NameColor", "aqua");
                SetConfig("player", "TextColor", "white");
                SetConfig("player", "Rank", 2);            SetConfig("admin", "Formatting", "{Title} {Name}<color={TextColor}>:</color> {Message}");
                SetConfig("admin", "ConsoleFormatting", "{Title} {Name}: {Message}");
                SetConfig("admin", "Permission", "color_admin");
                SetConfig("admin", "Title", "[Admin]");
                SetConfig("admin", "TitleColor", "olive");
                SetConfig("admin", "NameColor", "aqua");
                SetConfig("admin", "TextColor", "white");
                SetConfig("admin", "Rank", 3);            SetConfig("owner", "Formatting", "{Title} {Name}<color={TextColor}>:</color> {Message}");
                SetConfig("owner", "ConsoleFormatting", "{Title} {Name}: {Message}");
                SetConfig("owner", "Permission", "color_owner");
                SetConfig("owner", "Title", "[Owner]");
                SetConfig("owner", "TitleColor", "green");
                SetConfig("owner", "NameColor", "aqua");
                SetConfig("owner", "TextColor", "white");
                SetConfig("owner", "Rank", 4);            SaveConfig();
            }
     
  8. Hello,
    can I change the font ?
     
  9. As far as I know that is not possible.
    [DOUBLEPOST=1450870235][/DOUBLEPOST]
    It should work by changing it in the config file. I don't recommend editing the cs file.
     
  10. Can somebody please update BetterChat Plugin? Doesn't work with the new Oxide client :( it's gives me error to compile..
     
  11. Wulf

    Wulf Community Admin

    Please provide the errors.

    @LaserHydra, you may want to update to use Oxide's API for message sending like I had in the version I posted.
     
  12. First error is that it can't compile it and I tried to redownload it and /load and /reload the plugin and it doesn't work when I try to load it or /reload it says something like this!

    [Error] Betterchat plugin failed to compile!
    [Error]BetterChat.cs 494.111: error cs1501: no overload for new method "AppendChatBoxServerSingle" takes "2" arguements

    Something like that for both BetterChat and PlugIn
     
  13. Wulf

    Wulf Community Admin

    Here ya go.
     

    Attached Files:

  14. Works Thanks a lot ^^
     
  15. dang mine was working ten minutes ago, and now it's broken. I was using the Betterchat.cs that @Wulf just posted above.
    I had assigned myself to the owner group, and it worked perfect.
    I started to edit the BetterChat.json to make my chat, and the moderator chat look different, and when I uploaded it back into the server it reverted the game to normal chat on me.

    I have since stopped the server, removed betterchat.cs, and the .json file, restarted the server. Stopped it again, added the BetterChat.cs that wulf gave us a link to, started the server, and confirmed that yes it did create the .json file.

    When i login to the game and give myself the "owner_color" permission however I still have regular chat.
     
  16. heey can you pliz update the plugins is not working anye more :/
     
  17. Just posting some compiler warning logs for this plugin. (May wish to tidy up the code to stop people from worrying)
    Code:
    BetterChat.cs(32,14): warning CS0114: `Oxide.Plugins.BetterChat.LoadConfig()' hides inherited member `Oxide.Core.Plugins.Plugin.LoadConfig()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword
    BetterChat.cs(270,13): warning CS0162: Unreachable code detected
    BetterChat.cs(265,30): warning CS0168: The variable `ex' is declared but never used
     
  18. I'm having the exact same problem as Ghost still no answer back from LaserHydra though ;/
     
  19. Wulf

    Wulf Community Admin

  20. Still didnt work for me Wulf