Information Announcer

Join/leave messages, rules, broadcasts & custom commands

Total Downloads: 2,616 - First Release: May 5, 2015 - Last Update: May 23, 2015

4.73333/5, 15 likes
  1. announcer doesnt wanna run after updating it with this
    Code:
    11:49 PM [Info] Loaded plugin Announcer v1.1.1 by Mughisi
    11:49 PM [Error] Failed to call hook 'Loaded' on plugin 'Announcer' (InvalidCastException: Value is not a convertible object: System.Collections.Generic.List`1[System.Object] to System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])
    11:49 PM [Debug]  at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Announcer.GetConfigValue[Dictionary`2] (System.String category, System.String setting, System.Collections.Generic.Dictionary`2 defaultValue) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Announcer.LoadConfigData () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Announcer.Loaded () [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Code:
    {
        "BroadcasterSettings": {
            "Enabled": true,
            "Interval": 120,
            "Messages": [
                "[FF0000]You can visit our forums at [66FF33]WULFPACK.clanservers.com",
                "[FF0000]A massive list of commands can be found at WULFPACK.clanservers.com",
                "[FF0000]Our teamspeak is [66FF33]ts61.gameservers.com:9336",
                "[FF0000]Remember to use /o when talking out of character",
                "[FF0000]Don't forget to bring your friends!",
                "[FF0000]Type /rules to see our server's rules!",
                "[FF0000]Please type /commands to see available comands!"
            ],
            "ShowChatPrefix": true,
            "ShowInRandomOrder": false
        },
        "ConnectionSettings": {
            "Enabled": true,
            "ExcludePlayers": [
              
            ],
            "Log": true,
            "ShowChatPrefix": true,
            "ShowJoinMessages": true,
            "ShowLeaveMessages": true
        },
        "CustomCommands": {
            "Enabled": true,
            "Commands": [
                "[FFFFD1]grand exchange plugin",
                "/store - opens the store",
                "/buy - buy an item from the exchange",
                "/sell - sell an item for gold",
                "[FFFFD1]Bounty plugin",
                "/SET BOUNTY - OPENS A DIALOGUE WHERE YOU CAN SET ABOUNTY ON SOMEONES HEAD",
                "[FFFFD1]WarTracker plugin",
                "/declarewar <player_name> This will announce a war has begun between your guild and the other player's guild.",
                "/warreport - See which guilds are currently at war by requesting the current report.",
                "[FFFFD1]emotes plugin",
                "/emote - shows a list of emotes",
                "[FFFFD1]alliancetracker plugin",
                "/alliancecommands to view all plugin commands below in-game:",
                "/requestally <player_name> - Request to start an alliance with this player's guild",
                "/viewallies <guild_name> - View all allies for this guild",
                "/viewallyrequests - View all ally requests for your guild",
                "/acceptally <guild_name> - Accept an ally request from this guild",
                "/denyally <guild_name> - Deny an ally request from this guild",
                "/endalliance <guild_name> - End a current Alliance with this guild",
                "[FFFFD1]guildinfo plugin",
                "/guildinfo <player_name> - shows infomation about the players guild",
                "[FFFFD1]admin tickets plugin",
                "/ticket - shows all availiable commands depending if the player has the admin permission",
                "/ticket message - Saves a message in the Report list.",
                "[FFFFD1]whisper plugin",
                "/whisper <player_name> private message",
                "[FFFFD1]wartime plugin",
                "/checkwartime - Tells the caller whether it's a time of Peace or War.",
                "[FFFFD1]kits plugin",
                "/kit list - shows a list of kits",
                "[FFFFD1]Out of Context Plugin",
                "/o places the following message out of context"
            ],
            "ShowChatPrefix": true
        },
        "Messages": {
            "PlayerJoined": "{0} has joined the server!",
            "PlayerLeft": "{0} has left the server"
        },
        "RulesSettings": {
            "Enabled": true,
            "Rules": [
                "[FFFFFF]Basic Ruleset",
                "[FF0000]1. [FF0000]Hacking will be punished with a lifetime ban!.",
                "[FF9933]2. [FF9933]Its a Roleplay Server.",
                "[66FF33]3. [66FF33]Executing is allowed.",
                "[3399FF]4. [3399FF]Raiding is allowed but only if the Housekeeper is online!.",
                "[9966FF]5. [9966FF]No flying bases or bases in the drinkable water! Only build bases on the ocean or on land",
                "[FF0000]7. [FF0000]Dont kill Newspans (Unless yourself is a new spawn and they agree)",
                "[FF9933]8. [FF9933]Must use Microphone for close quarters negative RP, i.e. Robbery.",
                "[66FF33]Not complying with any these rules may result in a ban as seen fit by the attending Admin/Mod."
            ],
            "ShowChatPrefix": true
        },
        "Settings": {
            "ChatPrefix": "ZEUS",
            "ChatPrefixColor": "950415"
        }
    }
     
  2. The custom commands part in the config is to create your own command which will display some text of your liking and needs a slightly different format which is explained briefly in the overview of the plugin.
     
  3. So I am using a Gameservers.com server for ROK and I finally got the JSON file to appear in the config folder... I altered it outside of the FTP and uploaded the file back into the FTP. Even after closing and reloading FTP several times the file shows my changes when I open it... However, when I enter ROK and do a /rules check the default rules show up... My changes are not shown. I am out of ideas.
     
  4. Wulf

    Wulf Community Admin

    You need to reload the plugin after saving the config, use /oxide.reload Announcer.
     
  5. Also do not forget to check the validity of the configuration file by copying the text into jsonlint.com or similar website. Even something as simple as a missing comma will force it to load the default file.
     
  6. I figured it out. Was syntax error. Thank you for quick reply!
     
  7. For some reason the Announcer Mod will not update the information on my server for me I have changed the Announcer.json information via ftp and after restarting the server no change I am using Gameservers by the way.

    Its there any way to remove these default settings as it seems like its overriding what I write and not responding to the change I edited the file via Notepad++

    Its just advertising OXIDE at the moment and announcing the default messages!
     
  8. Wulf

    Wulf Community Admin

    You don't need to restart the server to reload the config, just reload the plugin using "/oxide.reload Announcer" in your chat. If your config is resetting to defaults, then you're not editing it properly. Make sure to follow the formatting and check using jsonlint.com.
     
  9. Your a legend thanks for that :)
     
  10. i can not find the folder ../server/saves/oxide
     
  11. Wulf

    Wulf Community Admin

    saves/oxide

    If you don't see that, I'd recommend contacting your host for assistance.
     
  12. we have root server..pls can you make a toturial Video on youtube how i can instal oxide and mods?
     
  13. I am running on gameservers and i am assuming you edit the announcer.cs file .. then upload to ftp and then in game run /oxide.reload announcer... im doing that and its not changing .. new to this game and mods so i apologize if its a stupid question.. just stumped
     
  14. Wulf

    Wulf Community Admin

    You should be editing the config/Announcer.json file, not the pluigin itself. Once you've done that, use "/oxide.reload Announcer" in the chat.
     
  15. Thanks for the quick reply, where should that be located .. the gameserver people installed the oxide main part .. and i just uploaded a bunch of ***.CS files for various plugins i was wanting to use. havent seen a config folder or anything json
     
  16. Wulf

    Wulf Community Admin

    The config folder is one folder up from your plugins folder, under oxide/config.
     
  17. i found a announcer.json in the saves folder .. that the right one?
    [DOUBLEPOST=1436900460][/DOUBLEPOST]where should you upload the .cs files?
     
  18. Wulf

    Wulf Community Admin

    oxide/plugins
     
  19. i dont have a folder called Oxide ... i got a ROK_Data thats under rok folder
     
  20. Wulf

    Wulf Community Admin

    If you don't see saves/oxide in your server root, then you don't have Oxide installed.