Error
Code:Error while compiling Announcer.cs(206,37): error CS0246: The type or namespace name `Player' could not be found. Are you missing `Oxide.Game.Rust.Libraries' us ing directive?
Information Announcer
Join/leave messages, rules, broadcasts & custom commands
Total Downloads: 2,609 - First Release: May 5, 2015 - Last Update: May 23, 2015
- 4.73333/5, 15 likes
-
Wulf Community Admin
-
I'm new to this whole thing and I am trying. I just don't know what I'm doing wrong. After I input all my rules and changes, I save it, I restart the server, and as soon as I reopen Announcer.json it switches back to the default.
Code:{ "BroadcasterSettings": { "Enabled": true, "Interval": 30, "Messages": [ "You can visit our forums at [URL='http://www.oxidemod.org']www.oxidemod.org[/URL]!", "Don't forget to bring your friends!", "Type /rules to see our server's rules!" ], "ShowChatPrefix": true, "ShowInRandomOrder": false }, "BroadCasterSettings": { "BroadcastMessages": [ "Go and build crazy and unique shit!", "Don't forget to bring your friends!", "Type /rules to see our server's rules!" ] }, "ConnectionSettings": { "Enabled": true, "ExcludePlayers": [], "Log": true, "ShowChatPrefix": true, "ShowJoinMessages": true, "ShowLeaveMessages": true }, "CustomCommands": { "Commands": {}, "ShowChatPrefix": true }, "Messages": { "PlayerJoined": "{0} has clocked in for business.", "PlayerLeft": "{0} is calling it a day." }, "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!.", "6. Do not be a dick!", "7. English is the primary language of this server. Please try to speak it in chat or use google translate.", "8. Have an appropriate RP name. Be original with it.", "9. Repect the players who just want to be peaceful RP builders/farmers/fisherman/etc. Act like they are NPCs that you can't hurt but can interact with.", "10. Respect all the admins and mods. They just want to build and RP too.", "11. No skybridging to get into bases. No breaking blocks to get into bases. However, lockpicking your way into a base is perfectly acceptable.", "12. You must have a valid RP reason to go to war. "They were mean to me" is not a valid reason. Give the RP some effort or no war for you!", "13. Do not be a dick!", "14. You must be level 10 in order to be King.", "15. The king may not tax over 3%. Doing so may result in any sort of punishment depending on the admin.", "16. Admin word is final. We are chill people. We just want everyone to have fun. Fuck with that and you are in trouble. Enjoy!", "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: Apr 1, 2017 -
Wulf Community Admin
-
Thank you so much. That helped me fix it.
-
Hello i need help with adding rules i just started it and no idea what to do. Need help asp because ive just made a server. How to add the rules. i cant seem to find the default rules. Anyway ive looked so may times. NO IDEA. Please can someone help me! REPLY BACK ASP!
-
Mayby( !",) its not right? Test (!.",).not sure if that help.not see any other reason why its reset that default -
how do i make it popup window instead in chat ? anyone know how
-
Hi, I'm struggling to get the rules working! I've editted the original Announcer.txt and it either shows deault rules on the server or not at all.
Please could you help! ThanksAttached Files:
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Thanks so much for your patience! -
Wulf Community Admin
-
Sorry!Attached Files:
-
-
Wulf Community Admin
-
When I put in the .cs file, it does not make a .json file. At first, I thought this was an issue with my text that I added, but when I put in the regular file downloaded straight from here, it's still doing so.
Does anyone have a fresh .json file that I can edit with the server rules in it? Or perhaps someone might know a solution to this issue that I am having? -
Wulf Community Admin
-
I only use this for Reign of Kings thankfully. I noticed this in the eror file: "8:08 AM [Error] Plugin filename Announcer(72310171).cs must match the main class Announcer (should be Announcer.cs)"
I've since saved the file as 'Announcer.cs' which just names it 'Announcer'. Somehow, this fixed the issue -.-
Thank you for pointing me in the right direction, Wulf. You have my appreciation. -
Wulf Community Admin