MotdPerWorld
Enable different MOTD based on the world a player enters. MotdPerWorld will display a specified message to a player/group that has the required permission node whenever they join the server or change world. Thanks to RudyBx for the suggestion (http://forums.bukkit.org/threads/motdperworld.177712/).
Description
This is the MotdPerWorld plugin you can add to your server to enable a different MOTD for each world. It is currently v0.6 and was designed for V1.6.4.
I will continue to support this and add many more features. If you have any suggestions please let me know in the comments or through a pm.
Installation and configuration
Place the MotdPerWorld.jar into your plugins directory and then run the server. You will need to manually add the world names and messages into the config. Click here for help with the config.yml
Commands
- /motdpw - Current version of MotdPerWorld running.
- /motdpw reload - Reloads the config for MotdPerWorld.
- /motdpw help - Displays help for MotdPerWorld.
Config
Click here for help with the config.yml
- prefix - Display a prefix before the MotdPerWorld message. To disable type prefix: false
- helpMessage: "&6MotdPerWorld &9will display a different MOTD whenever you change world. \n&9The commands for &6MotdPerWorld &9are currently: &4/motdpw help" - This is the message that will be displayed whenever a player types /motdpw help. Supports all minecraft colours (&1,&2,&3 etc). Supports formatting codes (&l,&m,&n,&o). Supports %name to grab the players name to add to the messages. Click here for help with the config.yml
- world: - Is the name of the world.
- message: - This is the message that the player will see if they have the required permission. Supports all minecraft colours (&1,&2,&3 etc). Supports formatting codes (&l,&m,&n,&o). Supports %name to grab the players name to add to the messages. Click here for help with the config.yml.
Permissions
- motdpw.receive.WORLDNAME
description: Allows the player/group to receive the motdpw message for the WORLDNAME world.
- motdpw.receive.*
description: Allows the player/group to receive all motdpw messages defined in the config.
- motdpw.reload
description: Allows the player/group to reload the config for MotdPerWorld.
default: op
Changelog
- v0.6 - Extra formatting codes added to help message, message and prefix (&l = Bold, &m = Strikethrough. &n = Underline, &o = italic).
- v0.5 - Fully implemented the help command (/motdpw help). The message can be configured in the config.yml. Click here for help with the config.yml.
- v0.4 - Initial release
@Supavitax
Hey. Any chance of an update where you can add a delay, in seconds, for when they receive the message. As stated in my previous comment, with plugins where you go to spawn on login, players still receive the message if they logged out in a world with a message set. So just a simple thing in config like messagedelay: 1 or something. Thanks :)
Hey, I'm running the plugin HubBasics on my server and I have it set so that when they join they are teleported instantly back to the spawn world. And if they logged out on a world that has a message from this plugin, they get the message when they join. Is there any way you can fix this or not?
@Supavitax
please update the plugin, I love this plugin and I need :)
Could you please add a center option?
@lyzha
I'll add this in the next update.
Can you add a thing for know how many players are online like {online} Thanks
been looking for a plugin like this, thanks.
@Supavitax
Then again, I had a world but was replaced with the default's
world
world_nether
@Jaaakee224
By the looks of the config you have world called "message" but don't have a message applied to it which is causing it to return null.
@Supavitax
My config gets reloaded on default with the
world: and world_nether:
<<reply 1866807>>
# Default config for MotdPerWorld.
prefix: ''"
helpMessage: ''"
world:
message: "&6&name&9, you have entered the main world! \n&9Collect the minerals from\
\ the world"
world_nether:
message: "&9Welcome to the &cNether&9, &6&name! \n&9This world is dangerous! \n\
&9Be careful of the Ghast!"
message: '&aBefore the game starts, you can select a class, vote for a map, and buy
an item for the next game, or forever.'
@Jaaakee224
Could you post your config please?
@Supavitax
I got an error on PlayerJoinEvent.
http://pastebin.com/1PbRWCsc
Please fix.
Awesome :)
Will multiple MOTD's per world be(come) possible, some day?
Keeping this in sight! +1