Player Count Message
Player Count Message
- now animated
By: flyguy23ndm
Thanks for 20k+ downloads
made from my config
Intro
This is my first plugin and has grown much beyond my original sights and has grown in size by a factor of 20 reaching into the 10's of thousands of downloads. The plugin has recently been adapted to allow animated server pings with moving text and a gif for the server Icon. I saw someone was offering an animated config for $12 a download and I thought, I can do that and better, for free. Then, the mega-upgrade of my original plugin had begun and hopefully you will enjoy the fruits of my work. So, if you want an animated ping for you minecraft motd, you've come to the right place.
Also, the old config (earlier than v4.0) has been replaced by a new file. The server will not atuo-transfer from the old config. And I got rid of the motd.txt file.
Note, you need Protocol lib to run this plugin
Tutorial
For a tutorial with the new system, go here
Video I made, it's pretty bad but it should work :P https://www.youtube.com/watch?v=biH75H36K0Q
Commands and Permissions
Commands and permissions are here
Configs
Config explanations are here
My example config is here
Plugin Information
Tags and information about them are here
Animation information is here
Also, if you want to use an outdated version of the plugin, check out the old pages
UPDATE
Hello, I would like to apologize to anyone that wanted to use this plugin. The latest version of minecraft broke this plugin (that was a few months ago). I was discouraged by this so much that I just abandon the project and refused to look at it. This is unacceptable behavior from a content creator and I shouldn't have acted this way. I will post the source code for the broken plugin soon. This code will not work but anyone can see the code that made the magic work (undocumented scrawl is the real magic. I will never document it... that is way too much work for the time I have now). Hopefully this will be of some consolation. I may change the software so that it will work as the initial versions did without the animation. Apparently 37k of you have downloaded the software and I thank you for your support and not reporting me constantly for the small support that I have given.
here is the source code:
bukkit: https://github.com/nicholas-maltbie/PlayerCountMessage
bungee: https://github.com/nicholas-maltbie/Player-Count-Message-Bungee
Feel free to modify, copy or update the code as you please; I only request that you cite me. Also, if you make any cool projects with my work, send me a like and I'd love to see what you have made.
@flyguy23ndm
http://www.spigotmc.org/resources/simple-animatedmotd.4842/ ^you should make a move about this thief
@GreyTwo
I approve of this message.
Whenever I get the time I will look into bungee and work on the update ideas from you guys. Sorry, I haven't had as much time to work on the plugin as in the past. Hopefully I will have some useful updates within the month.
I am doing something wrong? I have a 3 servers plugin is instaled coretly and there is no errors in log but message is not showing? Version is 1.8, spigor ro1. ProtocolLib is instaled and no errors. One srver is test server and I instaled all version but message isnot showing , and I dont have any idea what could be the problem. Can you help ? I tryed to change ping interval but no changes
The plugin is working perfectly. Just one small issue. Why does it say "Server out of date!" next to players online. I see the image on your site also has that red X on it. How can this be fixed?
@Sora37
Exc.How can you work this plugin on Minecraft CB1.7.2. Which version did you use?(I have the latest version of the plugin and of ProtocolLib too)
[20:39:41 INFO]: [PlayerCountMessage] Enabling PlayerCountMessage v4.2
[20:39:42 ERROR]: Error occurred while enabling PlayerCountMessage v4.2 (Is it up to date?) java.lang.NoSuchMethodError: org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Ljava/io/Reader;)Lorg/bukkit/configuration/file/YamlConfiguration; at com.flyingblock.pcm.save.ConfigAccessor.reloadConfig(ConfigAccessor.java:59) [?:?] at com.flyingblock.pcm.save.PingAnimationConfig.<init>(PingAnimationConfig.java:100) [?:?] at com.flyingblock.pcm.PcmMain.onEnable(PcmMain.java:29) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:439) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:375) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [Start.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks] ======
EDIT:Player Count Message v.3.2 can be loaded.
please make this compatible with bungeecord the only one like this that's on bungeecord is $12! D:
@MerlinK11
^Please.
Can you this Plugin Upgrade to MC version 1.8.3 ?
Can you make this work on BungeeCord? I would love to use it but my server is BungeeCord and it doesn't work on it.
@DwellingDwarf
This error is unavoidable, a caveat of using the plugin. It will not reduce the effect of the plugin and there is no way (as far as I know) to stop it from occurring. I will continue experimenting with Bukkit to try and remove the error.
The default config works; you can find it here. Take the text and override the text in your serverInfo.yml file. Then do the command /pcm load (or start up the server if it wasn't already running) that should fix your problems.
@flyguy23ndm This is the extent of my errors. The one at the top is caused when I refresh the page before even joining the server. May I ask you reply to me with a default config that works? 03.03 15:39:44 [Server] INFO java.nio.channels.ClosedChannelException 03.03 15:39:44 [Server] WARN An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. 03.03 15:39:44 [Server] INFO java.nio.channels.ClosedChannelException 03.03 15:39:44 [Server] WARN An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. 03.03 15:39:09 [Server] INFO Failed 03.03 15:39:09 [Server] WARN at java.lang.Thread.run(Unknown Source) 03.03 15:39:09 [Server] WARN at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) 03.03 15:39:09 [Server] WARN at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) 03.03 15:39:09 [Server] WARN at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) 03.03 15:39:09 [Server] WARN at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:709) 03.03 15:39:09 [Server] WARN at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) 03.03 15:39:09 [Server] WARN at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) 03.03 15:39:09 [Server] WARN at modreq.VersionChecker.run(VersionChecker.java:78) 03.03 15:39:09 [Server] WARN at modreq.VersionChecker.getVersion(VersionChecker.java:43) 03.03 15:39:09 [Server] WARN at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 03.03 15:39:09 [Server] WARN java.io.FileNotFoundException:
When I try to load the plugin, I get this error message:
[19:39:47] [Netty Server IO #1/WARN]: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. java.nio.channels.ClosedChannelException
Please Help!
@Sora37
GJ on fixing the problem. If you have more ideas, PM me, they seem cool.
@DwellingDwarf
Is there any error message in the console log?
Hi, I have some ideas:
-- TAGS --
SERVER
%ping% -> Shows the ping, and the tag is refreshed every (lenght parameter)
example: %ping%ms -> 52ms
%version% -> Shows the server's version
example: Join us in %version% -> Join us in 1.7.10
DATE
%h% -> Shows the hours
%m% -> Shows the minutes
%s% -> Shows the seconds
example: %h%:%m%:%s% -> 04:12:26
%h24% Shows the hours in 24h format
example: %h24%:%m% -> 16:12
%d% -> Shows the day
%M% -> Shows the month
%y% -> Shows the year
example: %d%/%M%/%y% -> 28/2/2015
PLAYER
%essuser% -> Shows the user's nick (%user%, requires Essentials
example: Welcome, %essuser% ! -> Welcome, [Admin] Sora !
%essplayer% -> Shows the player logged in's nick (%player%), requires Essentials
example: Players: %essplayer% - %essplayer% -> Players: [Moderator] ThisIsAnUsername - ThisIsAPlayer
%money% -> Shows the money of user, requires Vault
example: You have %money%$ -> You have 12
%mail% -> Shows the number of mails unread, requires Essentials
example: You have %mail% mails. -> You have 2 mails.
-- CONFIG --
guestname: 'Guest'
(String) This option allow admin to change the unknown player's name
players-and-staff: true
(Boolean) If false: %player% doesn't show staff members, elseif true, %player% shows staff members (for grouping staff and players)
-- OTHER --
It is possible to make a motd (player list, motd, icon) for each group ? (Requires Vault)
Example:
Welcome %user% to our servers ! (for players)
Hi, you have %mail% mails. (for Admins)
my dont work for 1.8?
@DwellingDwarf
This happens to me too, I dont know what it is, but if you're here for an MOTD plugin, try ServerlistMOTD, it works perfectly for me and it doesnt say "Server offline"
@flyguy23ndm
I did all the things you've said, my server is spigot 1.8 prtocollib is installed and working for 1.8, and still I get "Server offline" yet I can join. I have no idea what I am doing wrong here and the config is yours that I am using.
@flyguy23ndm Hi,
Yes I know, after I stopped the server, edited the config, and restarted, the new motds are here (I tried to change them), but even when the lenght is 1, the motds animated 10 seconds.
The problem is very strange, I know ! :s
EDIT: I found the problem: The animation stops after 10 seconds on Minecraft 1.7.2, but on all other versions (1.7.4 - 1.7.10), it works fine. Thanks you for helpping me ! :D
@DwellingDwarf
It should work with spigot 1.8 (the one taken from the build tools) as long as you have a version of protocol lib that works properly. and it works with the protocol lib builds from this site: http:ci.shadowvolt.com/job/ProtocolLib/ (These versions also work with spigot). The cannot connect red 'x' in the upper right over the ping level is a problem with the trick to get the animation work (sorry). My config (from here) copied and pasted into the serverInfo.yml file works perfectly fine. Note, if you update the config while the server is running, you need to do the /pcm reload command or it will save whatever was loaded into the server on the last load to the file overriding anything that was changed. I'm planning on making instructions on how to implement an example with a video, but for now these resources should be good: default config, tag info, animation info. They all contain info about how the different aspects of the plugin work. They might be a bit choppy because I typed them all in 4 hours after coding for 6 hours and have not looked at them since.
@Sora37
Hello Sora, hopefully you can understand this. The config looks alright, and when I changed the default config to 3000ms length, it worked. According to the code the animation length can anywhere from 0 to 2^31-1 (2147483647) milliseconds. If you close the server, change the value, save serverInfo.yml, and then start up the server it should work. If you don't want to do that, you can edit and save the file then do the command /pcm reload and it should have the same effect. You probably changed the value while the server was running and it saved over the value you had in the serverInfo file.
@Arkeltays
The server's data is set from the serverInfo file in your PlayerCountMessage folder within your plugins directory. If that doesn't help, re-read the tutorial and the above responses, they should aide you in fixing the plugin.
Hope this helps you with your problems. If this didn't work, I can probably have another solution.
Hi, (Sorry for my english, I'm French)
Very nice plugin !But I have a little problem :s
The config works fine, but the lenght is ignored, the entire animation is 10 seconds, I can't edit it.
There isn't any error in the logs.
(The config: http://pastebin.com/N95bXd4G)
The server is running "CraftBukkit version git-Spigot-1544 (MC: 1.7.10) (Implementing API version 1.7.10-R.01-SNAPSHOT)"
and I have the latest version of the plugin and of ProtocolLib.
I don't use another Motd plugin.
Where is the problem ?
Thanks you !