PlayerUniqueMOTDPings
Credit goes to the help of GusGold, Eats_Rainbows, and drtshock of the Bukkit forums.
THIS MAY HAVE NOT BEEN AN ORIGINAL IDEA, BUT WE WERE THE FIRST TO INTEGRATE BOTH FACES AND MULTILINE SUPPORT!
Update to Java 7!
Description:
Have you ever wanted to add a cool aesthetic to your server?
Me? Yes You!
Tired of pinging your server, and seeing your boring "My Boring Server" MOTD?
Lets change that...
This is how it works:
Average Joe pings your server for the first time ever. The server MOTD tells him, "Welcome Guest!", as a friendly greeting.
Your new player enters your game for the first time, and goes about his business. The next day, "Average Joe" pings your server again, and your boring MOTD has been changed to say, "Welcome Average Joe!". (or below, for example purposes)
Average Joe now feels special, and will tell all his friends to come play on your server...
THE END :P
Config:
Look for a folder named PPMOTD!
See examples.
Details:
This plugin is ultra-lite, uses low ram, and is very flexible. To Make it Work:
Step 1: Download. Step 2: Put it in your plugins folder. Step 3: Start your server. Step 4: Have fun :D
NOTE: Incompatible now, and will for ever be, with any other MOTD plugin.
Metrics:
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- You can disable the stat collection via /plugins/PluginMetrics/config.yml if you wish. (But that is not very nice :( )
How It Works:
When the players pings the server for the first time, his/her IP address gets logged into a HashMap. When the player joins the server, it grabs their IP address, and matches the two IP addresses.
Colors:
Just look at this picture from the Minecraft Wiki! This shows the available colors and formats for your MOTD (Don't recommend "k", or any other formats except color, unless you know what you are doing! Just put the letter or number behind the "&", and save.
_______________________________________________________________________________________
Examples:
motd: guest: '&bWelcome &r&a&lGuest!' member: '&bWelcome &r&6&l%p!' linetwo: '&ato the &r&5&nExample&r &6&nNetwork&r&a!' banned: '&4You (%p) are banned!' dofaces: true autoupdater: true
I will explain what each thing means carefully. Do faces means to enable or disabled face generation, use true or false. The autosaveinterval is how often the plugin saves its data, in seconds. NOTE: This will take some trial and error, if you are not familiar with MOTD plugins.
This line here, '&bWelcome &r&a&lGuest!'. Let's take apart what it means.
&b = blue color &r = reset color format &a = green color &l = bold
The &b defines that the color at the beginning is blue. When you want to switch colors and formatting, you use &r (otherwise know as reset). When you want to use another formatting symbol, like the bold underline. The formatter comes before the color, or it wont work. When you want to for example make something bold and orange, you would do "&r&6&lWhatever" Then it would turn out as.
Whatever
If you want to place the players username somewhere, you use %p.
_______________________________________________________________________________________
Auto-updater:
It does exactly what the name implies. It should work, but it might not. There is a new line in my config file, for enabling or disabling. Check the config file section for information about plugin defaults.
Bugs:
- none.
Tell your friends, spread the word if you like this! (or even +1 my reputation)
NOTE: If you want to change the guest ping picture from steve. Feel free too. I currently do not support the addition. Just open my plugin's jar in 7zip, and extract char.png. Edit the picture to your liking. Make sure it is 64 x 64. Then place the new picture (still named char.png) in the jar. You're done! Have fun.
New Update!
-Blue
NOTE: I have not switched over to UUIDs yet, I need everyone to switch to 1.7.9!
@Blue_Mustache
Good to see my problem will be adressed but at the moment my server is @ 1.7.5 anyway so I cant use the fix just yet
@oliver276
Auto-saver is being removed in 1.7.9 build. Also, thnx for checking on the comments. My computer has been bluescreening off and on. Hopefully it will be able to stay on for just long enough.
@Jahb57
If jeb_ ever publishes 1.8, I would do the big update. But, tomorrow, I will release a big update. I wanted to wait for 1.8, but now seems the appropriate time. I will keep my word, 1.7.9 update tomorrow.
BlueMustache out.
@Jahb57
Wait, 6 hours and it still doesn't save?
@Jahb57
I'm not too familiar with how BlueMustache coded this, so you'll have to ask him. In case you don't know, I helped him with a couple of minor ideas, bug fixes and a bit of code here and there - so I'm not the person to ask about this.
I am fairly sure that if a player types "/reload", then the command is cancelled, all data is saved, then the command is re-issued.
@oliver276
I will try that but what happens is that my server restarts every 6 hours and myself using the same IP will be classified as a guest the next time I try join the server.
@Jahb57
There are a few things that could do this if there are no errors:
Try restarting your server with /reload (done in-game by a player) as this will force PPMOTD to save.
It seems everytime the server restarts the MOTD goes back to welcome Guest instead of saying Welcome <playername>
@Bammerbom
Thank You. I'm very sorry I haven't been able to update it much recently. I have been busy with my pet project.
http://dev.bukkit.org/bukkit-plugins/force-texture/
I should have it working by the end of this month. Plus, I really only want to release an update once 1.8 comes out. Not before then. -Blue
Epic plugin! <3
@TinyTom38
What version are you using? In the earliest version, the generation of files was just a test. Sorry to hear. Please use the latest version.
Not sure if it is like this but the players faces seem to save even with dofaces set as false, this is making my server directory as mess as there are 997 files so far of just faces.
@TiippexxModz
What are you trying to say? Sorry, I do not understand your question.
@Blue_Mustache
Works v39 with ro3 to?
Benchmark get!
Astounding! 2,000+ downloads!
You heard it here first! Thank You for supporting. Its been a long fun road! :D Plugin development is going smoothly and incredibly well. A few snags with the auto updater, but it should go well. Any major features you guys want? I love you guys! (In the most non awkward way. (I'm pretty sure I even screwed up this side note. :/ (Great.))) Anyways! Thank you so much! We may have not been the first plugin like this, but we were the first to integrate server icons AND multiline motds!
TTYL. - Blue
Announcement
Attention: PPMOTD is undergoing a major rehaul. I ask for those who are using 1.7.2 versions of CB or the latest 1.7.8 to DELETE PPMOTD from their folder, and delete the config folder and the "pingdata" file. The update is going to be major, so it will break all configs.
Features:
- 1.8 Support
- Code obfuscation (Will take longer for builds to be approved :( )
- Special features
- Essentials style metrics statistics
- Customizable resource files
- And more...
Thanks! - Blue, out!
@Blue_Mustache
Good idea...I like your way of thinking and makes me want to obfuscate mine too :)
@CPx1989
That would be super helpful. Great idea! This UUID thing, even though it will be a pain, has a lot of applications. (It's converting all the old inactive projects that bugs me :/) Such as banning griefers. Our plugins could hook into some kind of UUID database. Also, as a security measure now, in the next update my code will become obfuscated, making it harder to steal from.
@Blue_Mustache
If the new 1.8 update actually sends a packet with the uuid then you would easily be able to get the players name and then the guest feature could turn more into a hey your new come play feature