ClanTags

Moved

Total Downloads: 2,083 - First Release: May 1, 2017 - Last Update: Nov 21, 2017

5/5, 11 likes
  1. 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.
     
  2. the command wasnt added for normal players to change their clans color its for admins to easily add and not have to reload the plugin
     
  3. 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
     
  4. hi

    i dont have permission to Change clan col. why?
    any ideas?

    best regards
     
  5. what version and whatd you do

    have to add the permission to anyone who wants to use the command or add it to a group
     
  6. kk but i think i´m blind because i cant see permission Name :-&/
     
  7. No that's my bad I forgot to add it to the description use
    Code:
    clantagcolors.allowed
    I can't edit the description on my phone but there you are sorry about that
     
  8. All ggod man. thanks a lot :)for fast Support :)
     
  9. No problem
     
  10. (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
     
  11. whatd you do post error

    I got this error but I forget what i did to create it so i thought it fixed it
     
  12. I figured it out. You need to delete the old config
    cheers
     
  13. also send your config might be an error but
    That's correct stuff was added
     
  14. How do I put the clan tag before the titles?

    Example: [CLAN] [VIP GOLD] Player name.

    I'm using Better Chat
     
  15. You have to edit the better chat plugin I believe. It was in the comments of better chat. I don't see a way for my plugin to change formatting it's how LazerHydra made it.
     
  16. But I have to change in betterchat.json in the folder date or in betterchat.cs?
     
  17. So. Ask
    .cs file
     
  18. Would it have something to do with priority?
    [DOUBLEPOST=1507497542][/DOUBLEPOST]
    I'm lost, I think something has to be inserted into the cs file. but so far I could not find anything about it in the BetterChat forum
     
  19. You'd have to know a bit about c# I said I thought it was brought up in their comments but it doesn't look like it ask laser hydra in the better chat comments about it
     
  20. 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
    To duplicate this, do
    /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.