Information Announcer

Join/leave messages, rules, broadcasts & custom commands

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

4.73333/5, 15 likes
  1. Is it possible to add a character filter because some characters corrupt players data files like rust does or did..
     
  2. For the life of me, I cannot figure out how to get it to show my modified rules. This is my announcement.jsn file.
    Code:
    {
      "BroadcasterSettings": {
        "Enabled": true,
        "Interval": 30,
        "ShowChatPrefix": true
      },
      "BroadCasterSettings": {
        "BroadcastMessages": [
          "Thanks for playing on Ethix Gaming's Reign of Kings Server!"
          "Don't forget to bring your friends!",
          "Type /rules to see our server's rules!"
        ]
      },
      "ConnectionSettings": {
        "Enabled": true,
        "Log": true,
        "ShowChatPrefix": true
      },
      "Messages": {
        "PlayerJoined": "{0} has joined the server!",
        "PlayerLeft": "{0} has left the server"
      },
      "RulesSettings": {
        "Enabled": true,
        "Rules": [
          "1. Do not cheat on our server.",
          "2. No Exploiting!",
          "3. Do not harass other players!",
          "4. Do not Kos! This is an RP Server.",
          "5. Do not build around resources to prevent other players from acquiring them!.",
          "Not complying with these rules may result in a ban at any given time."
        ],
        "ShowChatPrefix": true
      },
      "Settings": {
        "ChatPrefix": "Server"
      }
    }
    Everytime I type /rules, I get the default ones displayed.
     
    Last edited by a moderator: May 16, 2015
  3. You were missing a , in your broadcast messages causing the config to be invalid and to revert to the default one each time it was loaded:
    Code:
    {
        "BroadcasterSettings": {
            "Enabled": true,
            "Interval": 30,
            "ShowChatPrefix": true
        },
        "BroadCasterSettings": {
            "BroadcastMessages": [
                "Thanks for playing on Ethix Gaming's Reign of Kings Server!",
                "Don't forget to bring your friends!",
                "Type /rules to see our server's rules!"
            ]
        },
        "ConnectionSettings": {
            "Enabled": true,
            "Log": true,
            "ShowChatPrefix": true
        },
        "Messages": {
            "PlayerJoined": "{0} has joined the server!",
            "PlayerLeft": "{0} has left the server"
        },
        "RulesSettings": {
            "Enabled": true,
            "Rules": [
                "1. Do not cheat on our server.",
                "2. No Exploiting!",
                "3. Do not harass other players!",
                "4. Do not Kos! This is an RP Server.",
                "5. Do not build around resources to prevent other players from acquiring them!.",
                "Not complying with these rules may result in a ban at any given time."
            ],
            "ShowChatPrefix": true
        },
        "Settings": {
            "ChatPrefix": "Server"
        }
    }
    Also for future use, please use the code tags to post configs and/or errors :)
     
  4. That did the trick! Thanks. Sorry, yeah. Pretty new to this stuff if it wasnt obvious already. Didn't realize I could do that
     
  5. Is there a way to remove the player left message? I tried deleting that line but it keeps coming back!
     
  6. Wulf

    Wulf Community Admin

    I don't think they have their own setting, so you'd either need to set connection settings to false, or comment out the line in the actual plugin.
     
  7. Is there a way to add more than just rules? for example have /rules and /???? with another new list?
     
  8. Currently not possible but I guess I could try to do something like that.
     
  9. could have great uses. i currently use it for in game item prices for my economy system but my players still have to type /rules. I would love them to be able to type /prices and maybe /rules for the actual rules
     
  10. Tried both the connection thing doesn't seem to effect it and the commenting out in the cs file made the plugin not want to load.
     
  11. Wulf

    Wulf Community Admin

    You have to be careful when editing the plugin, especially if you aren't familiar with C#. Make sure you didn't remove any commas, semi-colons, etc. The other option is to wait until Mughisi adds an option to disable each individually.
     
  12. This is all the I tried:
    Code:
            // Plugin messages
            string defaultJoined = "{0} has joined the server!";
            #string defaultLeft = "{0} has left the server";        string joined;
            string left;
    and

    Code:
                // Plugin messages
                joined = Convert.ToString(GetConfigValue("Messages", "PlayerJoined", defaultJoined));
                #left = Convert.ToString(GetConfigValue("Messages", "PlayerLeft", defaultLeft));
     
  13. Wulf

    Wulf Community Admin

    That won't stop the message, that just breaks the message. C# also uses //, not # for comments.

    Try the attachment below.
     

    Attached Files:

  14. Ok that may be why :p where do I place the // then?
     
  15. Wulf

    Wulf Community Admin

    See my above attachment. ;)
     
  16. Done and done thankyou muchly Sir. Now we just need to make Admin's exempt from the playerjoin messages. :p
     
  17. I am a total newb at this. I have my new ROK server set up. I just installed Oxide 2.0 on it. I am also trying to install info announcer. I put them all in the root directory. Can anyone point me in the right direction? Please and thank you.
     
  18. Wulf

    Wulf Community Admin

    Simply place the plugins under Saves/oxide/plugins.
     
  19. Ok sweet, that worked. Btw wulf, have you ever seen the Echovalley.com server on ROK? Do you know what mods they use? They have a bunch of things going on and I am curious what mods they are using. You mind joining my server and letting me know what you think? I got the announcer installed, I am guessing I edit the announcer file to edit the rules, intervals and messages? Are there any other mods I should install on this server? Sorry for asking a lot of questions, I am just trying to stand out amongst the other server. The servers name is Land of Oppurunity and its all green. Thanks.
     
  20. Wulf

    Wulf Community Admin

    No problem! To edit it, edit the .json file under oxide/config and restart the server or reload the plugin. I have no idea what the other server is using, but you could try asking Upperking via PM possibly.