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.
The error indicated a Java error. BOTTOM LINE: It's not my fault. Talk to your server host.
face palm
Sorry...
Step 1: Throw your computer our the window.
Step 2: "Luke used Gravity Gun, it was super effective!"
Step 3: Buy a new computer.
Step 4: Repeat steps 1-4. :)
Updated to Java 7! Thanks for letting me know but still doesn't work.
The results are in. I was right, you are not using Java 7. Update to Java 7, then it will work. Here is the proof. http:forums.bukkit.org/threads/java-lang-unsupportedclassversionerror.213510/
@luke13456
I think I know the problem! Are you running the latest version of java? If you are running an older version, it may not run. I think I compiled this in Java 7. If you are not running Java 7, that may be the problem, but I will still look into it on the forums.
Ill wake up the people on the forums. I am on vacation today, but I will put up a forum post.
Im still stuck please help me!
If you do not know how to open a simple config file, or know the basics of bukkit, I suggest that you watch videos on how to do this crap.
@Blue_Mustache
Not since it's error 403 :(
I am stumped. I will have to look into this deeper. I really want you to use this plugin, truely. But I do not under stand this error. What other plugins are loaded? Have you tried all my said advice below? Also, try deleteing all plugins, except mine.
Hey blue idk what to do I really want this plugin. Should I pm you my server ip?
Does this answer your question?
I can't find any way to configure this plugin, help?
What is your craftbukkit version? (Including the revision garb) Thank you for the log. I have never in all my life seen an error like this. To put this in perspective, you received the odds of winning the lottery 4 times, and being struck by lightning in the same day! With that being said, here's a cookie. I will have to take this error to someone with more knowledge than me. Looking at this error, I can tell that since it could not load the plugin, it couldn't run the routines. My recommendations for now are to use the most recent recommended craftbukkit build. Also run your jar with these params, "java.exe -Xms1024M -Xmx1G -jar craftbukkit.jar -o true -nojline". Have you tried updating java? Whatever this problem is, it is not a problem on my end. This either is the bukkit developers fault, or something with your server. I will get back to you another day.
Ok here it is! [22:25:56 ERROR]: Could not load 'plugins/v21.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: core/PluginCore : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:420) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] Caused by: java.lang.UnsupportedClassVersionError: core/PluginCore : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.6.0_65] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) [?:1.6.0_65] at java.lang.ClassLoader.defineClass(ClassLoader.java:621) [?:1.6.0_65] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [?:1.6.0_65] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) [?:1.6.0_65] at java.net.URLClassLoader.access$000(URLClassLoader.java:58) [?:1.6.0_65] at java.net.URLClassLoader$1.run(URLClassLoader.java:197) [?:1.6.0_65] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_65] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [?:1.6.0_65] at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [?:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [?:1.6.0_65] at java.lang.Class.forName0(Native Method) [?:1.6.0_65] at java.lang.Class.forName(Class.java:249) [?:1.6.0_65] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-39-g68b702f-b2954jnks] ... 9 more
Uggg. It's late and I am trying to help you. Go to your server directory, that is where the .jar is stored. Open the logs folder. Tell me what the latestlog.log file says! (Open the file in notepad if it asks).
Hmmm what should I take a picture of?
Im sorry, I was just checking. I believe you. :) Unless you can provide screenshots, log files, etc. Then I cannot help you :(
Dude I made a account to ask you for help. Im not even good at coding I just thought this plugin would be really awesome to have on my server.
I can no longer help you. The jar is working for everyone else. If you cannot provide a latestlog.log file, then I cannot help you. Also, I see that you conveniently joined bukkit minuted before your first comment. You wouldn't happen to be my competitor, here to bad mouth my plugin now would you?