GUIAnnouncements

Moved

Total Downloads: 11,756 - First Release: Jul 13, 2015 - Last Update: Oct 20, 2017

5/5, 66 likes
  1. Not sure what I'm doing wrong, but I can't display any messages.
     
  2. Can you try getting some messages to show and look for any errors in console? Are there any when the plugin is loaded? Can you post your config in the
    Code:
    
                            
    tags too please?
     
  3. No Error using Announce in Chat or in Console.

    Code:

    Code:
    {
      "A List Of Available Colors To Use (DO NOT CHANGE)": {
        "Banner Colors": "Grey, Red, Orange, Yellow, Green, Cyan, Blue, Purple",
        "Text Colors": "White, Red, Orange, Yellow, Green, Cyan, Blue, Purple"
      },
      "General Settings": {
        "Adjust Vertical Position": 0.0,
        "Announcement Duration": 10.0,
        "Fade In Time": 0.5,
        "Fade Out Time": 0.5,
        "Font Size": 18
      },
      "Private New Player Announcements": {
        "Announcements List (Show On This Many Joins : List To Show)": {
          "1": [
            "1st Join {rank} {playername} New player announcement 1.",
            "1st Join {rank} {playername} New player announcement 2.",
            "1st Join {rank} {playername} New player announcement 3."
          ],
          "2": [
            "2nd Join {rank} {playername} New player announcement 1.",
            "2nd Join {rank} {playername} New player announcement 2.",
            "2nd Join {rank} {playername} New player announcement 3."
          ],
          "3": [
            "3rd Join {rank} {playername} New player announcement 1.",
            "3rd Join {rank} {playername} New player announcement 2.",
            "3rd Join {rank} {playername} New player announcement 3."
          ]
        },
        "Banner Color": "Grey",
        "Enabled": false,
        "Text Color": "White"
      },
      "Private Respawn Announcements": {
        "Announcements List": [
          "{playername} Respawn announcement 1.",
          "{playername} Respawn announcement 2.",
          "{playername} Respawn announcement 3."
        ],
        "Banner Color": "Grey",
        "Enabled": false,
        "Text Color": "White"
      },
      "Private Test Announcement": {
        "Adjust Vertical Position": 0.0,
        "Banner Color": "Grey",
        "Duration": 10.0,
        "Fade In Time": 0.5,
        "Fade Out Time": 0.5,
        "Font Size": 18,
        "Text Color": "White"
      },
      "Private Welcome Announcements": {
        "Banner Color": "Grey",
        "Duration": 20.0,
        "Enabled": true,
        "Show Welcome Back If Player Has Been Here Before": true,
        "Text Color": "White",
        "Welcome Back Text": "Welcome back {playername}",
        "Welcome Text": "Welcome {playername}"
      },
      "Public Airdrop Announcements": {
        "Banner Color": "Green",
        "Enabled": true,
        "Show Location": false,
        "Text": "Airdrop en route!",
        "Text Color": "Yellow",
        "Text With Coords": "Airdrop en route to x{x}, z{z}"
      },
      "Public Automatic Game Time Announcements": {
        "Announcement List (Show at this in game time : Announcements to show)": {
          "18:15": [
            "The in game time is 18:15 announcement 1.",
            "The in game time is 18:15 announcement 2.",
            "The in game time is 18:15 announcement 3."
          ],
          "00:00": [
            "The in game time is 00:00 announcement 1.",
            "The in game time is 00:00 announcement 2.",
            "The in game time is 00:00 announcement 3."
          ],
          "12:00": [
            "The in game time is 12:00 announcement 1.",
            "The in game time is 12:00 announcement 2.",
            "The in game time is 12:00 announcement 3."
          ]
        },
        "Banner Color": "Grey",
        "Enabled": false,
        "Text Color": "White"
      },
      "Public Automatic Timed Announcements": {
        "Announcement List": [
          [
            "1st Automatic Timed Announcement 1",
            "1st Automatic Timed Announcement 2"
          ],
          [
            "2nd Automatic Timed Announcement 1",
            "2nd Automatic Timed Announcement 2"
          ],
          [
            "3rd Automatic Timed Announcement 1",
            "3rd Automatic Timed Announcement 2"
          ]
        ],
        "Banner Color": "Grey",
        "Enabled": false,
        "Show Every (HH:MM:SS)": "00:30:00",
        "Text Color": "White"
      },
      "Public Christmas Stocking Refill Announcement": {
        "Banner Color": "Green",
        "Enabled": false,
        "Text": "Santa has refilled your stockings. Go check what you've got!",
        "Text Color": "Red"
      },
      "Public Helicopter Announcements": {
        "Despawn": false,
        "Despawn Banner Color": "Red",
        "Despawn Text": "The patrol helicopter has left.",
        "Despawn Text Color": "White",
        "Destroyed": true,
        "Destroyed Banner Color": "Red",
        "Destroyed Text": "The patrol helicopter has been taken down!",
        "Destroyed Text Color": "White",
        "Destroyed Text With Destroyer": "{playername} got the last shot on the helicopter taking it down!",
        "Show Destroyer": true,
        "Spawn": true,
        "Spawn Banner Color": "Red",
        "Spawn Text": "Patrol Helicopter Inbound!",
        "Spawn Text Color": "Orange"
      },
      "Public Join/Leave Announcements": {
        "Announce Only Players With Permission": true,
        "Join Banner Color": "Grey",
        "Join Enabled": false,
        "Join Text": "{rank} {playername} has joined.",
        "Join Text Color": "White",
        "Leave Banner Color": "Grey",
        "Leave Enabled": false,
        "Leave Text": "{rank} {playername} has left.",
        "Leave Text Color": "White"
      },
      "Public Player Banned Announcement": {
        "Banner Color": "Grey",
        "Enabled": false,
        "Text": "{playername} has been banned. {reason}.",
        "Text Color": "Red"
      },
      "Public Restart Announcements": {
        "Announce With Time Left (HH:MM:SS)": [
          "12:00:00",
          "11:00:00",
          "10:00:00",
          "09:00:00",
          "08:00:00",
          "07:00:00",
          "06:00:00",
          "05:00:00",
          "04:00:00",
          "03:00:00",
          "02:00:00",
          "01:00:00",
          "00:45:00",
          "00:30:00",
          "00:15:00",
          "00:05:00"
        ],
        "Banner Color": "Grey",
        "Cancelled Scheduled Restart Text": "The restart in {time} has been cancelled.",
        "Enabled": false,
        "Restart Announcement Text": "Restarting in {time}",
        "Restart At (HH:MM:SS)": [
          "08:00:00",
          "20:00:00"
        ],
        "Restart My Server": false,
        "Suspended Restart Text": "The restart in {time} has been suspended.",
        "Text Color": "White"
      },
      "Third Party Plugin Support": {
        "Do Not Overlay LustyMap": false,
        "LustyMap Position (Left/Right)": "Left"
      }
    }
    It's the default config, I haven't changed anything in it.
    [DOUBLEPOST=1497013644][/DOUBLEPOST]I can do announceto, but not announce to all.

    /announce Test - Gives me no message.
     
  4. None of the announcements appear anymore.
     
  5. Apparently my players see them, but I can't see them, I mean sure If I was sending it to a person specifically, but I wanna see the Announce as well.
     
  6. I can also confirm that the latest update appears to not be fully working.. None of the actual announcements work except for: /announcetest and /announceto <Player> :: I was running the plugin today. Permissions were set, and commands did seem to work, but no output was occurring. What is a bit weird. It is outputting no Errors to console or a log. So I can't fully explain what's going on. I know this is really of no help, but I still wanted to post something.
     
  7. Currently investigating it. Literally having no issues on my server though.
     
    Last edited by a moderator: Jun 9, 2017
  8. Yes, everything works now, thank you. However. the Public Helicopter Announcements.. I had to add the node [ "Enabled" : true, ] Manually. Idk if you meant for it to not be there, or if it just fails to write it. but still. Regardless everything now works for me. Thank you!
    @JoeSheep

    Edit: Didn't mean it had to be true. Just meant the "Enabled" Node itself {Didn't know if that'd confuse anyone}
     
    Last edited by a moderator: Jun 10, 2017
  9. Code:
    "Public Helicopter Announcements": {
        "Despawn": true,
        "Despawn Banner Color": "Red",
        "Despawn Text": "The patrol helicopter has left.",
        "Despawn Text Color": "White",
        "Destroyed": true,
        "Destroyed Banner Color": "Red",
        "Destroyed Text": "The patrol helicopter has been taken down!",
        "Destroyed Text Color": "White",
        "Destroyed Text With Destroyer": "{playername} got the last shot on the helicopter taking it down!",
        "Show Destroyer": true,
        "Spawn": true,
        "Spawn Banner Color": "Red",
        "Spawn Text": "Patrol Helicopter Inbound!",
        "Spawn Text Color": "Orange"
      },
    spawn and despawn is there so no need to add what you added
     
  10. I did that, and it still didn't work and no announcements were made. when I added "Enabled": true, It worked fine like a charm. I can't fully explain it either.
     
  11. Did you add it to the script or config
     
  12. The config itself.
    Code:
    "Public Helicopter Announcements": {
      "Enabled": true, // Manually Added
      "Despawn": true,
      "Despawn Banner Color": "Red",
      "Despawn Text": "The patrol helicopter has left.",
      "Despawn Text Color": "White",
      "Destroyed": true,
      "Destroyed Banner Color": "Red",
      "Destroyed Text": "The patrol helicopter has been taken down!",
      "Destroyed Text Color": "White",
      "Destroyed Text With Destroyer": "{playername} got the last shot on the helicopter taking it down!",
      "Show Destroyer": true,
      "Spawn": true,
      "Spawn Banner Color": "Red",
      "Spawn Text": "Patrol Helicopter Inbound!",
      "Spawn Text Color": "Orange"
    
     

  13. Code:
    void OnEntitySpawned(BaseNetworkable entity)
            {
                if (helicopterSpawnAnnouncement && entity is BaseHelicopter)
                {
                    CreateAnnouncement(helicopterSpawnAnnouncementText, helicopterSpawnAnnouncementBannerColor, helicopterSpawnAnnouncementTextColor);
                }
            }
    
    The bool helicopterSpawnAnnouncement is what you see listed as "Spawn" in the config, there has never been an "Enabled" option for it but rather options describing what will be enabled. So considering "Enabled" in that section is not read it would make no difference putting it in there, so I have no clue why you are having issues with helicopter spawn announcements showing. I also am having no issues with that and it hasn't been altered at all since the config was overhauled a while back. Maybe remove it and try spawning in a helicopter again? I use HeliControl for playing with helicopters.

    Glad to hear the announcements are in general working for you now though! :D
     
  14. Hey @JoeSheep , I tried reading in the config file but I don't understand how to do an announcement to show for example per 1 hour or custom time pretty much to announce a message that I want :)
     
  15. Would the Public Automatic Timed Announcements do that for you? Set "Show Every (HH:MM:SS):" to 01:00:00 so that it shows every hour.
     
  16. Ohh, I see thank you :D
     
  17. Good afternoon all! So, I'm pretty shit at reading code, and I'm trying to find the line where it makes public join announcements. Apparently the private messages work though.
     
  18. @JoeSheep hey man! any possiblity you could make like true or false thing for showing admins if they join or leave the server, my server has so everyone see when people join which I think is good, but I want it to be hidden when it comes to me joining as admin
     
  19. Do you mean you are reading through the code for the plugin? Or the configuration file?

    I can make that happen with checking for auth level above 0.