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 released!
Just click on the new link, once its approved.
New Features:
Thank you guys for waiting patiently for a new update! I really wanted to add an auto updater, but that will just have to wait.
Still works in any version!
I am currently attempting to fix the auto updater, so it'll be a one time deal. Then I can release the update with the server-icon.png, to test the updater system. I also am having to wait for a new version of Protocol Lib, so that I can modify packets. The tricky thing is, I'm going to have to supress the server-icon.png packet while also making protocol lib send a new packet with the Base64 encoding to the client.
In English: In order for the players picture to be used once per ping, I have to make sure their is no lag time. Such as, say the first player to join is Notch. Notch doesn't see his picture, but the picture of the player before him, and the same with the person behind Notch. Bottom Line, it's a lag problem. Keep checking for updates. I will try to fix this over the holidays (Christmas.) Thanks for commenting! :P
I'm curious, how's it going with the per-player server-icon?
P.S.
Anyone got a cooler logo? :D
STATUS ON NEW UPDATE:
I really don't want to release the new update, without the updater. That would be a pain, for everyone! Until I can make the patch in the Updater.class, there will be no new jar. If you guys have any skilled programmer friends that could help me, please pm me! Thanks Guys (and Gals), - Blue
Thanks for the 100+ downloads! That just made my day. Sorry for the delay in the update release. The Auto-Updater has a slight bug. (Which won't let the mods approve it) I will try to fix this over the weekend. I have a project for school, but I think I can squeeze it in. - Blue
Wow, 13 downloads in 1 day! New record. I will try my best to have the update out tomorrow.
UPDATE: A new version is to be released sometime this Saturday.
Thanks for 50 downloads guys and gals! ;)
Sure thing dude! Ill include that in the next update, for 1.7, when the craftbukkit version is released. The next update will include an auto-updater. (And hopefully colors soon, still working out the kinks.) When the latest version comes out, everyone will have to get it, so it will update with it.
Could you make the Default image customizable for before a user joins?
I really appreciate the 25 downloads guys! But seriously guys... Please take the poll!
I forgot to tell you guys. The above images are photo-shopped. The pictures display color, and the players head, which will be included in a future update. Although you wouldn't have known that would you, if I didn't tell you?
== Next Update will include Metrics! ==
@ThisUsernameIsMine
If you are talking about the open to Lan feature, then there is no current bukkit set up for that.
But if it is on your local network, like to friends playing at 1 person's house, then 1 may have an IP labeled 192.168.1.114 and another 192.168.1.116 or whatever, and their external IPs would still be different. If this plugin gets popular enough soon, Ill have some friends help me integrate a database into it, so every server running this plugin will recognize you, and correct your IP if need be.
Try the poll. Thanks for the +1. Noone comments. Everyone please comment.
This looks fun, but what happens when the (external) IP of the client is shared by multiple computers inside a LAN?
Nevertheless +1 :)
Thanks! :D And congratulations, you are my first commenter ever. I wanted to start off my plugin career with a bang. Stay tuned for future updates. Look at the poll, and add your opinion if you would like.
Great plugin, I found this while looking for a MOTD plugin. Never have seen anything like this! :)