RealMotd

Logo

RealMotd is advanced MOTD plugin. It offers you big amount of variables to use in MOTD, different MOTD every day, permission checking in motd and colors in MOTD.

motd example image

Features

  • Many many variables to use in MOTD
  • Colorful MOTD
  • Also /motd
  • Group-specific MOTD
  • World-specific MOTD
  • Group in world specific MOTD ( CHECK PAGE QUICK START FOR MORE INFORMATION)
  • 3 Modes: Single(only one MOTD within selected context), Daily(some days have special messages), Random(everytime player logs in choose something else)
  • Checking whether player has permission in MOTD.
  • Itallics,Bold,Underline, Strike & Rainbow!

Variables

This plugin offers you big amount of variables, so here you go!(please let me know if I forgot something)

  • %player% - Name of player who has joined
  • %nick% - Name of player who has joined. This may be colorful, contain prefix & suffix. Also, it's changeable.
  • %world% - Name of world player has joined to
  • %time% - Time in player's world.(0-24000)
  • %weather% - Weather in world (rain or clear)
  • %ip% - Player's IP
  • %playerlist% - Online players
  • %d% - Day of month in real life
  • %mo% - Month
  • %yr% - Year
  • %h% - Hour
  • %mi% - Minute
  • %s% - Second
  • %exp% - Experience
  • %lev% - Level
  • %totalexp% - Total experience
  • %food% - Player's food level
  • %x% - Player's X coordinate
  • %y% - Player's Y coordinate
  • %z% - Player's Z coordinate
  • %op% - Whether the player is an OP
  • %mode% - Game mode of the player
  • ^example.example - Checks whether the player has permission example.example . The character ^ can be changed to something else.
  • /n - New line in MOTD.
  • %whitelist% - Whitelisted players
  • %banlist% - Banned players
  • %timestat% - Status of time (day | night)
  • %allowednether% - Whether there is a nether enabled on this server (true | false)
  • %allowflight% - Whether there is flight allowed (true | false)
  • %serverip% - IP address of the server
  • %serverport% - Port the server is listening on
  • %serverid% - ID of the server (random number used for authentification)
  • %env% - Environment type of the world where player is
  • %nplayersonline% - Online players count
  • %nmaxplayers% - Maximal count of players on the server
  • %ptime% - Player's time (may be different from world's time)
  • %ptimestat% - Same as timestat, but with player's time
  • %worlds% - Worlds which this server is currently running
  • %plugins% - Plugins running on this server
  • %day% - Minecraft day

Commands

Commands can be used to set MOTD in-game. It's good for quick changing, but you're limited to 80 chars. Use /motd set <motd> to set default motd and /motd set <month> <day> <motd> to set a day-specific motd. While setting motd in-game, use /n for newline and colors stay the same.

Configuration

This plugin generates configuration file after its first run.

Configuration Nodes

transl.weather.clear - Translation for weather clear
transl.weather.raining - Translation for raining
transl.mode.creative - Translation for creative mode
transl.mode.survival - Translation for survival mode
transl.op.is - Translation for OP
transl.op.isnt - Translation for regular player
transl.permission.has - Translation for has permission
transl.permission.hasnt - Translation for hasn't permission
transl.time.day - Translation for day
transl.time.night - Translation for night
transl.env.nether - Translation for nether
transl.env.sky - Translation for skylands
transl.env.normal - Translation for regular world
transl.flight.allowed - Translation for flight allowed
transl.flight.denied - Translation for flight denied
permission - The character which identifies, that the text next to it is permission verification
motd.mode - Mode of motd. Must be one of these: Daily, Random, Single

Setting up MOTD

Setting up motd is very easy. Go to <your server's folder>/plugins/RealMotd where you find folder "messages".

  • Daily mode - Different MOTD for special days. You need to create a new text file called: motd_[month]_[day].txt ,where you write your motd. For example, for 26th September, it'd be "motd_9_26.txt". You don't need to create MOTD files for every day. Only for those special ones. If RealMotd can't find such-named file, it displays the default file.
  • Random mode - Random mode each time user logs in You need to create how much of txt files you like. Files don't even have to end with .TXT. This mode chooses random file from messages directory as MOTD.
  • Single mode - One MOTD forever. Always chooses motd.txt from folder messages.

If you're confused, look at the example configuration file below

Example configuration file

transl.weather.clear: Clear
transl.weather.raining: Raining
transl.mode.creative: Creative
transl.mode.survival: Survival
transl.op.is: Operator
transl.op.isnt: Player
transl.permission.has: can
transl.permission.hasnt: can't
permission: ^
transl.time.day: Day
transl.time.night: Night
transl.env.nether: Nether
transl.env.sky: Skylands
transl.env.normal: Overworld
transl.flight.allowed: can
transl.flight.denied: can't
mode: single

How do I use the configuration file like that???

There are lots of options how to make MOTD as you wish. This example configuration file can be used as following: [plugins/RealMotd/messages/motd.txt]

Hello %op% %player%!
You ^can.mine mine blocks and ^can.build build.
You ^can.fly fly.
Time of server is %time%. That's %timestat%.
It's %weather%.

Look at the result MOTD. I've attached two of them, so you can see which parts of MOTD are changing. The result MOTD for code like that would look like this:

Hello Player Tomsik68!
You can't mine blocks and can't build.
You can't fly.
Time of server is 13536. That's night.
It's Clear.

or this:

Hello Operator Tomsik68!
You can mine blocks and can build.
You can fly.
Time of server is 1353. That's day.
It's Raining.

Colors

To use colors in your MOTD, you just enter '&' with a name of color you'd like to use for following text. You can change color again by doing new line, or entering next color's name.

Available colors

  • black
  • dark_blue
  • dark_green
  • dark_aqua
  • dark_red
  • dark_purple
  • gold
  • gray
  • dark_gray
  • blue
  • green
  • aqua
  • red
  • light_purple
  • yellow
  • white

Adding colors

Adding colors is very simple. You just write down the name of color you want to use before the text you want to be colored, like in the example: &aquaSome text! &blackThis message is poorly visible! &whiteHello there!

Formatting

You can use itallics, underline, bold,strike and random text as of the latest update.

Adding Formatting

It's as simple as adding colors, but if you want both formatted and colorized text, remember to put formatting mark after the color mark. Here are available names: &bo, &no,&it, &un, &ran, &str, &rbow. &bo = bold &ran = write a random string (used in one of the splashes) &str = strike &it = itallics &un = underline &no = remove formatting(except colors) &rbow = rainbow!(random color for each letter, configurable). TIP: Use &no to end rainbow.

If you need more complex MOTD example even with formatting and colors, go here

Addons

So you don't have enough? RealMotd API is big, so there are some plugins that are using it. Here's a list of such plugins:

  • RealMotd-Messages - Implementation of Join & Leave message using RealMotd variables, colors & formatting!
  • RealMotd-ServerList - Server list message(a.k.a. MOTD) using RealMotd power!

TO-DO

  • Import groups from permission plugins

Developers' API

It's available at http:dev.bukkit.org/server-mods/realmotd/pages/developers-api-documentation/

This help is not complete

As this plugin is very customisable, you can try to figure out some trick with configuration, variables or colors. And if you don't know how to do something with this plugin, send me a PM, or email me at [email protected] . I like to help! Thanks and Enjoy!

Contact Author

If you wish to contact author somewhere else, you can do so on:

  • Blog: http://tomsik68.blogspot.com/
  • Twitter: https://twitter.com/tomsik68
  • E-Mail: [email protected]
  • GitHub: https://github.com/tomsik68 (also, sources of all plugins!)
  • Skype: Tomsik68 (my pic is redstone dust ;) )
  • Bitcoin[for donations :) ]: 15ZvWH3HnsvxdqPsRA3GgQQBR5mQtTW1nc

Have a problem? Take a ticket!

If you wanna submit a bug, please take a ticket, so we avoid comments section mess ;)

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of TruDan97 TruDan97 Mar 24, 2014 at 16:40 UTC - 0 likes

    @tomsik68: Go

    That's not impossible. I'll upload the latest one and see if its still there.

    Edit: Yep that fixed it, thanks. :)

    Last edited Mar 24, 2014 by TruDan97

    TruDan
    Like my plugins? Donate via PayPal!

  • Avatar of tomsik68 tomsik68 Mar 23, 2014 at 14:27 UTC - 0 likes

    @TruDan97: Go

    Are you using the latest version(0.9)? Because alpha & beta versions had that enabled, but I think I've turned it off for stables...

    BFAK:1198,6ea4c712fb9bbe1009466a1a965769fff8a2468d179190a3d9ce26723d99e2f8

  • Avatar of TruDan97 TruDan97 Mar 23, 2014 at 11:54 UTC - 0 likes

    Also, is it possible to disable the console spam on every player join? It would be nice to have it as a config option like "debug: false" because my console logs are just spammed with

    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&aquaforums' for '§bforums'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&grayfor'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&grayfor' for '§7for'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&dark_aqua'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&dark_aqua' for '§3'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&yellow'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&yellow' for '§e'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&goldLobby'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&goldLobby' for '§6Lobby'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&yellow'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&yellow' for '§e'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&dark_aqua'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&dark_aqua' for '§3'
    [07:32:04] [Server thread/INFO]: Looking up replacement '&dark_red'
    [07:32:04] [Server thread/INFO]: [RealMotd] Replacing '&dark_red' for '§4'
    

    (that's just 1/5 of what it outputs on each player join)

    Thanks

    Last edited Mar 23, 2014 by TruDan97
  • Avatar of tomsik68 tomsik68 Feb 17, 2014 at 15:09 UTC - 0 likes

    @EN7: Go

    Tested just for you - RealMotd 0.9 + CraftBukkit 1.7.2-R0.3 works without problems

  • Avatar of EN7 EN7 Feb 17, 2014 at 01:58 UTC - 0 likes

    @tomsik68: Go

    Does this work in 1.7?

    BFAK:90909081,ec2362d7cc7f0727a4ddf44e3fc0ae2b49badd8611256fd9e34ec92f035fb4a6

  • Avatar of tomsik68 tomsik68 Feb 09, 2014 at 13:49 UTC - 0 likes

    @TruDan97: Go

    I suggest you make a custom plugin for that(like add variable to RealMotd) because these are just 2 variables and I'd have to make a huge interface around that, so it only is added if you have vault and stuff like that...

  • Avatar of TruDan97 TruDan97 Jan 26, 2014 at 11:36 UTC - 0 likes

    Can you add some variables to get a prefix/suffix via Vault?

    Like %permsuffix% %permprefix% etc?

  • Avatar of tomsik68 tomsik68 Jan 11, 2014 at 18:17 UTC - 0 likes

    @MilesDad: Go

    Yeah, that's a debug message... There's no option to turn that off in 0.9.2b. I recommend you switch back to stable version if you want to get rid of that... :/

  • Avatar of MilesDad MilesDad Jan 11, 2014 at 18:11 UTC - 0 likes

    The auto-generated config works fine, but I'm getting an incredible torrent of INFO messages on the console each time MOTD runs:

    11.01 11:32:31 [Server] INFO Replacing '&light_purpleWhat' for '\'a7dWhat'\ 11.01 11:32:31 [Server] INFO Looking up replacement '&light_purpleWhat'\ 11.01 11:32:31 [Server] INFO Replacing '&yellowA' for '\'a7eA'\ 11.01 11:32:31 [Server] INFO Looking up replacement '&yellowA'\ 11.01 11:32:31 [Server] INFO Replacing '&aquaTell' for '\'a7bTell'\ 11.01 11:32:31 [Server] INFO Looking up replacement '&aquaTell'\

    Is there a config option to turn off verbose logging?

  • Avatar of tomsik68 tomsik68 Jan 11, 2014 at 18:02 UTC - 0 likes

    @MilesDad: Go

    Try adding this to your config file:

    decorators:
      - color_names
      - rainbow
    

Facts

Date created
Sep 23, 2011
Categories
Last update
Feb 09, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
RealMotd
Downloads
10,844
Recent files

Authors