Picture Login
Picture Login provides a much nicer login message by displaying a picture of the player's head inside of chat. By default it retrieves player avatars from Crafatar (or another service that you can change inside of the config!). It is very customizable; you can edit anything from the source of the avatar to the message beside it.
Here is a picture of what the default settings look like:
As you can see, you can use color and formatting codes, and even variables! The message is also easy to customize.
Features
These are just a few of the features of Picture Login:
- Ability to use color/formatting codes.
- Ability to set a custom avatar url.
- Ability to use variables.
- Ability to center text.
- And much more to be implemented!
TESTING SERVER: Coming soon...
- /pictureloginDisplays plugin information.
- /picturelogin reload Reloads the configuration
- picturelogin.main /picturelogin reload
- picturelogin.show If the player doesn't have this then the message will not be shown for/to them.
The configuration file is well commented, please refer to it for help! (Click to see default file)
- Thanks to bobacadodl for his Image Message Library!
- Thanks to Crafatar for their avatar service!
This plugin is licensed under the MIT License.
The source is available here, feel free to contribute if you so wish to do so!
Metrics
This plugin uses the bStats metrics system.
By default, bStats sends the following data:
- Your server's randomly generated UUID
- The amount of players on your server
- The online mode of your server
- The bukkit version of your server
- The java version of your system (e.g. Java 8)
- The name of your OS (e.g. Windows)
- The version of your OS
- The architecture of your OS (e.g. amd64)
- The system cores of your OS (e.g. 8)
- bStats-supported plugins
- Plugin version of bStats-supported plugins
To disable metrics, simply set enabled to false in the config.yml file located in the bStats plugin folder.
More information available here.
then in v1.03 is fixed leave event?, and its for 1.7.2 right?
Video Tutorial on the Plugin
http://youtu.be/i3flSUkp52c
Credits Video: (AbsintoJ/Picture Login)
@mentox2011
Yes, this error is fixed in v1.0.3, which I submitted on the 14th, but is still awaiting approval.
I managed to fix the error, but now i have a console error when player leaves - Could not pass event PlayerQuitEvent to PictureLogin
I have disabled the option where it says to show message when player quits and it doesn´t but i have that error. How can i fix it? Or should i wait to the next version. Also it takes out the "op" from a player when the error come out
@Airos18
Yup, should work fine on 1.7.2! If, not please let me know! (:
its Fixed for 1.7.2? :D
Version 1.0.3 has been uploaded, awaiting approval. Also, the source is now available on github. https://github.com/TheNathanG/PictureLogin
@Shaorune
Fixed this in v1.0.3
@ccrama
Hi, I will most likely implement your library in place of minotar. (:
@z65703071
Did you get an error message?
@cadika_orade
I will look into this.
@mentox2011
This plugin is working fine for me with 1.7.9-R0.2, are you getting an error message?
Pleasee update it to 1.7.9! i relly need this plugin thanks for creating this
Can a cooldown period be added? Like so that it only displays this if the player is loging in for the first time in X minutes? I'd hate for someone with connection issues to relog 5 times in a minute and spam everybody's chat with a long row of heads.
@Shaorune
A solution to Shaorune's comment, posted this tutorial a little while ago (looks like you might be using my ImageMessage to face code anyway). http://forums.bukkit.org/threads/skin-database-facelibrary.272427/
Warning: If minotar.net is very slow, then your server will COMPLETELY HANG until the player's avatar is downloaded.
In the worst case, your server will COMPLETELY HANG FOREVER.
This is because ImageIO.read() is a blocking process.
To solve it: move the show image process to a thread, OR use runTaskLaterAsynchronously?
Do not use this plugin until the author attempt to fix it.
This plugin has any other requirement of plugins? I couldn't use it.
Yes, I've confirmed this, my apologies as I was away on a trip with band. I'll be fixing this issue within the week as I get some time.
@samueli5750
yeah, when player logout :S
@Airos18
Same bug here. When the player logout ...then message will be shown
[14:02:36] [Server thread/ERROR]: Could not pass event PlayerQuitEvent to PictureLogin v1.0.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:472) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.PlayerList.disconnect(PlayerList.java:301) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:717) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:73) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:700) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:562) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] Caused by: java.lang.NullPointerException at com.thenathang.picturelogin.Listeners.LeaveListener.onLeave(LeaveListener.java:34) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_03] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_03] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_03] at java.lang.reflect.Method.invoke(Method.java:601) [?:1.7.0_03] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277]
please help?!
Are you updating this plugin to 1.7.9 soon? I really need it.
Thanks in advance.
I would appreciate a config setting that differentiates the display of messages to everyone, or just the player that joins. Currently, I can show all messages to everyone or to just the player that joins, but my ideal situation is to show the "first join" message to everyone, and then all subsequent messages (onjoin) to just the person that joins. I feel this would be a useful addition. thank you for the great plugin.
@smallpen
Hi, I've replicated that big and am trying to fix it.