I haven't tested it but just looking at it, does this let anybody with the permission change the color of any clan tag? Maybe add a check to see if person using the command is a member of the clan so there isn't griefing
edit:
Rust:IO Clans for Rust | Oxide
GetClanOf(player:ulong|string|BasePlayer):string
Returns the clan tag of a player's clan or null if the player is not a member of a clan.
if clan tag of player = clan tag in command then allow.
ClanTags
Moved
Total Downloads: 2,083 - First Release: May 1, 2017 - Last Update: Nov 21, 2017
- 5/5, 11 likes
-
-
we have a problem
error on all chat messages
Code:(08:22:46) | [Better Chat] Error when trying to get third-party title from plugin 'Oxide.Plugins.ClanTags' System.NullReferenceException: Object reference not set to an instance of an object at Oxide.Plugins.ClanTags.GetClanTagFormatted (IPlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.BetterChat+ChatGroup.FormatMessage (IPlayer player, System.String message) [0x00000] in <filename unknown>:0
-
hi
i dont have permission to Change clan col. why?
any ideas?
best regards -
-
-
Code:clantagcolors.allowed
-
for fast Support
-
-
(21:25:26) | [Better Chat] Error when trying to get third-party title from plugin 'Oxide.Plugins.ClanTags'
System.NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.ClanTags.GetClanTagFormatted (IPlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.BetterChat+ChatGroup.FormatMessage (IPlayer player, System.String message) [0x00000] in <filename unknown>:0
i have the newest version of better chat. the old version of clantags works fine -
I got this error but I forget what i did to create it so i thought it fixed it -
I figured it out. You need to delete the old config
cheers -
also send your config might be an error but
-
How do I put the clan tag before the titles?
Example: [CLAN] [VIP GOLD] Player name.
I'm using Better Chat -
-
-
So. Ask
-
[DOUBLEPOST=1507497542][/DOUBLEPOST] -
-
Code:
(00:58:30) | Failed to call hook 'ChangeClanCol' on plugin 'ClanTags v0.3.0' (ArgumentException: An element with the same key already exists in the dictionary.) (00:58:30) | at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ClanTags.ChangeClanCol (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ClanTags.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
/clancol myclan 123456
This will succeed. Then do
/clancol myclan 123411
This will give the above error in the console because 'myclan' already exists in the clan config.
As it stands, to change the color you'd have to open your FTP and manually enter it or delete it first.
There probably is a way to check to see if the clan tag exists first, and if it does then overwrite it.