LaserHydra updated Better Chat with a new update entry:
1.0.2
Better Chat [Replaced]
Discussion in 'Plugin Support' started by LaserHydra, Dec 13, 2015.
-
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("<", "<"); PlayerName = PlayerName.Replace(">", ">"); 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("<", "<"); message = message.Replace(">", ">");
-
Every time i reload the plugin. It will auto change to the beginning content "owner,player,mod". Why ?
-
The plugin is working but the colors are not anyone know why?
-
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]Last edited by a moderator: Dec 23, 2015 -
when i restart the server it doesnt work.
[DOUBLEPOST=1450860688][/DOUBLEPOST]ive tried reinstalling the mod and restarting the server nothing seems to work -
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(); }
-
Hello,
can I change the font ? -
[DOUBLEPOST=1450870235][/DOUBLEPOST] -
Can somebody please update BetterChat Plugin? Doesn't work with the new Oxide client
it's gives me error to compile..
-
Wulf Community Admin
@LaserHydra, you may want to update to use Oxide's API for message sending like I had in the version I posted. -
[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 -
Wulf Community Admin
Attached Files:
-
-
-
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. -
heey can you pliz update the plugins is not working anye more :/
-
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
-
I'm having the exact same problem as Ghost still no answer back from LaserHydra though ;/
-
Wulf Community Admin
-
Still didnt work for me Wulf