PersonalMOTD
PersonalMOTD
A plugin that will let you show player's name in the MOTD and/or randomize public motds of your server. You can also use motd to only one player.
Version: v2.4
This plugin will show a players name to themselves in the MOTD of your server (that's the message shown in the server list!)
It uses mySQL or yml (your choice) to save a players IP. Once the player has logged in at least once to save the IP, it will begin showing them a custom MOTD you define in the conifg, where %name% is replaced with the player's name! You can also set special MOTDs for just one player so that only they see it.
Features:
- Easy config
- YML or mySQL support
- Custom MOTDs where %name% is replaced with a players name
- Can set a special MOTD on a player-by-player basis
- This plugin was tested on my server play.modnations.net and CookieSlap.net for over a month with an average of 50 players online, thought sometimes as many as 125 players. No issues were caused via this plugin.
- Colored MOTDs via using "&" - see colors here.
Config:
- mySQL settings ask the basics
- Set Main.SQL.Enabled to true if you want to use MySQL. (Database.)
- If mySQL connection fails, it will use YML
- Motds.MOTD? - Use %name% where you want the player's name to be
- Motds.Count - Change this to as many motds you want it randomize through.
- Custom MOTDs: - If a player is entered here, only they will see this motd.
- Want colors? Use the color tags in the message.
- Is the UpdateChecks annyoing? Turn them off in the config.
Color Codes:
Use these codes to add colors into the MOTD. Simply use the & symbol followed by the number or letter.
Example: '&9Welcome to the server, &c%name%&9!' would show: Welcome to the server, TheNameofThePlayer!
&0
&1
&2
&3
&4
&5
&6
&7
&8
&9
&a
&b
&c
&d
&e <<- Yellow (&e)
&f <<- White (&f)
&l <<- Bold
&m <<- Strike through line through the text.
&n <<- Underline
&o <<- Italic
&k <<- "Magic" text. (Random text.)
Commands:
- '/personalmotd reload' - Reload the plugin's config file
Permissions:
Permission Nodes | Description | Default |
---|---|---|
personalmotd.* | Access all permissions below. | false |
personalmotd.reload | Access to '/personalmotd reload' | false |
personalmotd.updatecheck | Display updatecheck message in chat when join if available, if it's enabled | false |
ToDo
- Suggest things!
Like the plugin? Help me keep my programming hobby alive! Please consider donating!
Below, to addemod(as he is keeping the plugin up) or itsatacoshop(that created it from the beginning).
@linusgjersvold
It works for me in 1.7, did you set it up correctly?
-I always get a message that I'm not using the latest version, however I am. fix? :D
My players doesnt get the MOTD# messages, is there a problem with 1.7?
This looks great. Now when 1.7 is out can you add something to your ToDo list? The ability to have linebreaks ( \n ). It would complete this plugin!
Best Regards, kazahl
@addemod
The proxy sends an MOTD so if you connect to bungee, it display's the MOTD set in bungee's config. I would be interested to see how you pull it off...
@LiLChris06
@Timtower
@jtaylor0608
Well, I don't really know what you want out of it? Why not just place the plugin on the hub server too?
@addemod
Multiple servers which you can access from a hub server
@LiLChris06
What's "Bungeecord"? xD
@LiLChris06
+1
Can we has Bungeecord variant? :D
@alexgarcia7555
Just put the plugin in your "plugins" folder and then configure it, to see how to configure it properly, check the second video on the OP.
how can we install it
@razorrazor
This will be in the next update! Using &l will make it bold, using &m will make a strike thru line thru the text, &n will make underline and &o will make it Italic. Also, I will add &k to make it "random" or as many of you know, "magic" :P
Edit: New version with the symbols above are waiting approval. (&l, &m, &n, &o and &k)
@dermarionator @Scrandre @barnabas02
New version coming up later today. Will fix the event bug and will be updated to 1.6.2.
Please fix the Event Bug in 2.0!!
@addemod
@barnabas02
Fudge the tickets, I have this problem too! This happens after update to 1.5.2, at successful ping.
@baksovic
That happens to me as well sometimes, after a succesful ping, I usually get that error
Please add text styles >> bold,magic,underline,strikethrough etc :)
@baksovic
Make a ticket, and explain.
@baksovic
me too
[SEVERE] Could not pass event ServerListPingEvent to PersonalMOTD v2.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) at org.bukkit.craftbukkit.v1_5_R2.event.CraftEventFactory.callServerListPingEvent(CraftEventFactory.java:357) at net.minecraft.server.v1_5_R2.PendingConnection.a(PendingConnection.java:152) at net.minecraft.server.v1_5_R2.Packet254GetInfo.handle(SourceFile:23) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:176) at net.minecraft.server.v1_5_R2.PendingConnection.c(PendingConnection.java:55) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:71) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:582) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:229) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:471) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:403) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at com.addemod.itsatacoshop.motd.PersonalMOTDListener.onServerPing(PersonalMOTDListener.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 15 more