RandomServerIcon
Random Server Icon
Random Server Icon!
Current status: file approved! Happy randomservericon-ing!
Introducing randomized server icons!
In 1.7, Mojang reworked the serverlist, providing some cool things. Player lists, multi-line MOTDs, and - server icons! A server can now display a 64x64 PNG left to the server entry.
But then...
We felt like we could have done more, and an amazing idea came up: why not use multiple icons and randomize them? So said, so done. But we wouldn't want to keep it private, but contribute to the community. So, here it is!
Features
- Random server icons!
- Extremely lightweight, only 3kb and only uses one event!
How does it work?
It works like this:
- You place 64x64 PNGs in the folder of the plugin (where the config is located too, but as for now we don't have a config)
- You reload/restart the server
- When someone pings the server, we'll pick a random image from the folder and send it to their client!
Simply as that!
Reminder!
Remember, use 64x64 PNGs, otherwise, the server will most likely crash or something. Not tried yet. :p
Questions?
Any questions? Sumbit a ticket or comment on this project!
Things to do:
- None
IMPORTANT: Rename all PMGs in the plugin file to: server-icon.png
Dont work: [13:31:03 WARN]: at javax.imageio.ImageIO.write(Unknown Source)
[13:31:03 WARN]: at javax.imageio.ImageIO.doWrite(Unknown Source)
[13:31:03 WARN]: at javax.imageio.ImageWriter.write(Unknown Source)
[13:31:03 WARN]: at com.sun.imageio.plugins.png.PNGImageWriter.write(Unknown Source)
[13:31:03 WARN]: javax.imageio.IIOException: I/O error writing PNG file!
[13:31:03 ERROR]: [RandomServerIcon] Sorry, we generated an error while setting a random server icon. Please post this stacktrace on our BukkitDEV page!
@DavidBPWF
Just realized that one of my images is 64x63 thanks to the message saying something must be at least 64 pixels high. Fixed the image size and now everything is great!
I have just installed this plugin on the server. I populated the folder that the plugin generates with 8 64 x 64 png images, and now sometimes whenever I load my server list in the game, this error spews out into my server console.
It doesn't happen every time. It seems to happen mostly whenever I am refreshing my server list very rapidly, but there have a been a few times when it happens without me refreshing my list very fast. Whenever this error occurs, the server icon is not re-randomized.
Here's a list of all of all of my plugins. Perhaps something is conflicting with RandomServerIcon.
• AFK • GameModeChanger for Multiworld Server • GriefPrevention • HealthBar • HerobrineAI • MaintenanceMode • MineBackup • MotdManager (most likely to conflict with RandomServerIcon since it displays a random message of the day) • MultiInv • MultiWorld • MyHome • PermissionsBukkit • RailMob • RandomServerIcon (hopefully it's a bug in this plugin that can be fixed) • SimpleNotes • Teleport Suite • TuxTwoLib • WelcomeMessage • WorldEdit
@modernguy11
The name does not matter, you just place the images you want to appear in your server in RandomServerIcon folder that appears in the plugins folder
I make a Tutorial for this plugin: http://goo.gl/Zue9Cc It's in Spanish, but the video will know how.
If I want 2 icons would I name the first one "server-icon.png" then the second icon "server-icon.png.2"?
as for a sugestion, how about that it has one image untill the day changes, and when the day changes it picks a new image?
Thanks a lot for this plugin/mod! :-)
@AvengerCraftMC
Hello!
Do you own a bukkit server using Bungee? And do you have a server icon? If so please can you help us as we can't get the server Icon to work with Bungee.
Kind regards, Harry.
Really cool, But can you make this for Bungeecord?
That would Really help me!
Greetz,
Themrcastleman
@HeroCC
Nope, your're wrong! In the new serverping packet there is a field called icon. This is a Base64 encoded string. Client decodes it every time the packet was received. :)
@FlamingxGamer
I know, and thanks for the reply though. What I mean, is that the Minecraft Server Client downloads the icon, so instead of fetching it every time, it just loads it from storage. Or am I wrong?
Dammit! Was 'bout to make that :P
Thanks for this and GL with the development!
@HeroCC
The server sends a Base64 encoded PNG file in the ping packet.
Base64 is just a string, so the client decodes it to an actual PNG so we can see it
When it comes out, I will get it. Does it send a different one every time? I think the client cashes it.
@Redstoner_Pro
Haha sorry, made a typo, fixed it. Now waiting on file approval!
they released these in 1.7.1 1.7.4 doesn't even exist. In face 1.7.3 hasnt even released yet. Otherwise, great idea.