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. sometimes it doesnt say if someone disconnect or connects.
     
  2. With the changes to Alpha 14's server lsiting, it shows all servers you've connected to or ever favourited now, even when offline.
    For example, i have my server favourited 3 times even though its the same server, just because of the old names.
    When the server isn't actuall there but it loads it because you once were on it, or have it favourited, it shows up but just with a password instead.
    This suggests to me that it isn't actually the plugin itself, but that when you try to place/use it, your server crashes and goes offline - Where are you installing it?
     
  3. In which file on my server i set the announcer.cs. I do something wrong the file dont start????
     
  4. Wulf

    Wulf Community Admin

    Don't edit the plugin directly, edit the Announcer.json file under Saves/oxide/config.
     
  5. Under the file saves is not a file with the name oxide
     
  6. You did not install oxide
     
  7. ohh yes i see now (-: the next problem how i instal 2.0?
     
  8. Wulf

    Wulf Community Admin

    Check the Reign of Kings Discussion area, there are 3 or 4 threads on how to do it. The tutorial for Rust would also apply.
     
  9. Hello, so im editing my announcer.json file, i did everything I want to it and have the file,After uploading the file Announcer.json (deleted the old one replaced with the new one) and then i restart the server, it goes back to the default file and default commands, any thoughts?
     
  10. Wulf

    Wulf Community Admin

    It would reset to defaults if you edited it wrongly. You should use jsonlint.com to validate the format before reloading the plugin.
     
  11. Thanks alot, worked great. found the error in the 3rd line. fixed it.
    I have included the issue file, JSON is showing a error that isnt showing on my text editor.
    ...nds": { Yourcommandsare: /ti
    ^ that is the quote it is talking about, however in JSON it looks like this
    ...nds": { Yourcommandsare: /ti
    --------------------^
    Expecting 'STRING', '}'

    Any thoughts?
     

    Attached Files:

    Last edited by a moderator: Jun 4, 2015
  12. Everytime I change the config and I load back the server, it resets to the default, why is this?
    Okay sorry, I read some of the other comments and found the same problems, should've looked up.
     
  13. Wulf

    Wulf Community Admin

    When you're editing your config, you aren't formatting it properly, so the plugin resets it. Use jsonlint.com to validate it.
     
  14. Every time my server restarts it completely wipes the Announcer file and resets it. Any thoughts?

    These are my settings:
    Code:
    {
      "BroadcasterSettings": {
        "Enabled": true,
        "Interval": 10000,
        "Messages": [
          "You can visit our forums at http://rokmoddedserver.boards.net/ !",
          "Don't forget to bring your friends!",
          "Type /rules to see our server's rules!",
         "Remember have fun.",
         "Server restarts every 3hrs it will warn you 1 hour prior to restart."
        ],
        "ShowChatPrefix": true,
        "ShowInRandomOrder": false
      },
      "ConnectionSettings": {
        "Enabled": true,
        "ExcludePlayers": [],
        "Log": true,
        "ShowChatPrefix": true,
        "ShowJoinMessages": true,
        "ShowLeaveMessages": true
      },
      "CustomCommands": {
        "Commands": {},
        "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. Play nice, that means don't KOS if it can be avoided... Not that I'd do anything about it.",
          "3. When an admin asks you to do something respect their wishes.",
         "4. If you need a kit Type /kit list.",
         "5. If you need to report someone don't bitch to an admin. Type /ticket and report them for violations.",
         "6. If you are challenged to a dule have some honor and accept.",
         "7. Do not beg admins for free shit. If we are in a good mood we will offer you it.",
         "Admins do not abuse their power, if you catch one you have the right to report them."
          "Not complying with these rules may result in a ban at any given time."
        ],
        "ShowChatPrefix": true
      },
      "Settings": {
        "ChatPrefix": "Server",
        "ChatPrefixColor": "950415"
      }
    }
     
    Last edited by a moderator: Jun 5, 2015
  15. Wulf

    Wulf Community Admin

    Please see the previous reply. You are corrupting your config.
     
  16. Mughisi, is it possible to add a function where you determine whether a custom command uses permissions or not?

    Example: add a custom command to show Moderators which commands they have available to them. /modcommands. I wouldn't want all players to view this.

    Perhaps a true/false somewhere around each custom command that determines whether it requires special RoK or Oxide permissions to use it?
     
  17. is there anyway to reload this plugin without restarting server?
     
  18. /oxide.reload Announcer
     
  19. If you are in the permission group admin you should be able to run the chat command /oxide.reload <plugin_name> so you should be able to reload it by using /oxide.reload Announcer
    [DOUBLEPOST=1434579277][/DOUBLEPOST]Aaaand Andrew D was just 2 seconds faster :p
     
  20. ;-)
    I stalk the Oxide forums when I'm home.