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.
@Blue_Mustache
Hey can u make a option to use the normal server pic before a player join?
This is an amazing plugin! just what i have been looking for!!!
@devbudmc
Go to the folder your server jar is stored. Navigate to: logs/latest.log
Paste the contents below. If the error did not occur the most recent time you started, find the "date that the error occured.log.gz" And paste its contents, so I can release a patch, and improve the code. Please not that there will be bugs.
Thank you for your cooperation. Have a nice day! - Blue
It wont put players faces up on the motd it just gives me an error at the console. instead of there face it put the face for the guest.this is the error: javax.imageio.IIOException: Can't get input stream from URL! Thanks
@DarkShooter92
I might make it another day. For now, portal guns, and another project I have been working on. Hint: He's pasty white, I'm filled with fright.
@DarkShooter92
I will add that this next update.
@Blue_Mustache btw is it possible of you making a plugin like this? This one is outdated http://www.youtube.com/watch?v=YWmx4mC85aM
nice plugins, but it really need a reload instead of restarting server or reloading server
Benchmark get!
1,000+ downloads! Oh my, that is amazing! Thank You guys! I will now start working on a new update! I can't believe how far this project has come. It has been less than 6 months since I started learning programming, to now. You guys made my month! I do not know how to express the joy I am feeling! So, :) :) :)
Stay tuned, I have plenty of cool updates to release! :D
- Blue
Announcement
I will make an offer. I am so glad that PPMOTD has made it this far. We are so close to 1,000 downloads! If by the end of this week, say Friday, there is 1,000 downloads. I will celebrate, and that will make my month. But... I will also start working on a great update, you all will love. Right now I have been working on other great projects. Such as throwable pokeballs (that don't need resource packs), and a porting of iChun's portal gun mod/ porting the source engine to minecraft. I already have some goodies working. Anyways, KEEP CALM AND THROW THE CHEESE. See you guys later. You are awesome! :D - Blue
@X00LA
I'm glad you problem is solved. :)
@tanjx
Again, a future update. Next update will be nicknames, banned MOTD, all the MOTD goodies, looking into more effective saving.
how about adding random motd?
@Blue_Mustache
Oh, interesting. I don't knew about it. But youre shure. That's not really relevant. There's some features that are more interesting in the moment.
EDIT:
I got a confusing result after a few test with the plugin. I set the autosave to 60 for testing. After a few restarts I set it back to 120. Tada, now the autosave runs fine. After a restart the player name shows up. I don't know why this happen and what i can say to that. The only thing i did is the change to 60 and back to 120. Nothing else!
@X00LA
The bars shown can be changed, but is not relevant at the moment. This will also make it require ProtocolLib, which I am not going to integrate any time soon.
@all:
The plugin gets confused with multiple IP's, but I will look into that.
@TexoLineHD
I hope he can fix it with the next update.
@KevinABC96
The ping icon can not be affected by the plugin. This is a local thing. You can change this with a Texturepack/Resourcepack.
@X00LA
I've also got this problem. Pls fix it!
Hi,
I use the latest build of your plugin and i can confirm, that the playernames are not safed after a restart. Everytime i restart my server it says that I'm a guest.
Regards
@Blue_Mustache
Do you think you can fix the server restart bug?
@Caperr
Glad to hear, follow the above examples, and the plugin setup should be a breeze! :)