customMOTD

Current Version: 2.3.3
Recommended Build: 1317

About


What is this?
Yes, this is yet another MOTD-Plugin. What makes it different from all the other plugins? Every rank can now have a different MOTD, and you can replace some words in the motd file with variables as described further down. For this to work, you need Permission 3.1.6 by TheYeti.

Features:

  • A different MOTD for every rank
  • Variables
  • Set the MOTD ingame

Variables, Commands and Examples


Variables:

  • %(Number between 0 - 15)% - The color according to the Bukkit color codes
  • %online% - A comma separated list of online players
  • %admin% - A comma separated list of online admins/ops
  • %name% - The name of the player
  • %mode% - The player mode (Survival or creative)
  • %rank% - The rank of the player
  • %time% - Server local time
  • %news% - Text read from a news.txt file
  • %n% - Newline

The news file supports all the variables, too, though you don't need to put in the %n% newline seperators in anymore - Simply pressing "enter" is enough

Commands:

  • /motd - Displays MOTD
  • /motd set [Rank] [Message] - Sets the MOTD for the specified rank - motd.admin.set
  • /motd set Default [Message] - Sets the default MOTD - if it does not find the group in the properties file, it should return this MOTD instead

Remember, you can also edit the properties file yourself. The syntax for that is [Group] = [Message]. Save it and you are done.

Examples:

News file:

Some random
%1%multiline
news here, %name%


Ingame:

/motd set Admin %4%Welcome, %name%. Servertime is %time% and the following users are online right now: %6%%n% %online% %n%%8% News: %n% %news%

(Note that this might be too long to type ingame)
Will produce the following output if Derp logs in as an admin:

Welcome, Derp. Servertime is 13:00 and the following users are online right now:
Derp, Herpaderp123, TehUberHerp
News:
Some random
multiline
news here, Derp

In the motd.properties file

Default = Welcome, %name%. Your rank is %rank%.%n%Online admins: %admin% %n%Online players: %online% %n% %news%

Will produce the following output is anyone who isn't an admin logs on:

Welcome, DerpGam3r. Your rank is TheGame.
Online admins: Derp
Online players: Derp,DerpGam3r, Herpaderp123, TehUberHerp
Some random
multiline
news here, DerpGam3r


FAQ


Q: I get the following error:

 Could not pass event PLAYER_JOIN to MOTD
 java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getPrimaryGroup(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 ...

A: Please make sure that you are using TheYetis permissions plugin, it is the only one supported for now.

Q: Will there ever be support for other permission systems?
A: Yes, when I figure out how to get the groups with other plugins.

Misc


Changelog:
Version 2.3.3:

  • Updated to RB 1317
  • Updated to latest Permissions version

Version 2.2.3:

  • Updated to RB 1240

Version 2.1.3:

  • Updated to RB 1185
  • Added %mode% - displays if player uses creative or survival mode

Version 1.1.2:

  • Fixed exception when no admin was online
  • Changed a mistake in the versioning
  • Other fixes

Version 1.1.1:

  • Updated to RB 1060

Version 1.0.1:

  • Fixed bug that would throw an exception when not enough arguments were passed for /motd set
  • Should give a warning if it does not detect a permissions plugin. There might be some problems with an outdated version, though
  • Set default MOTD with /motd set Default [Message]

Version 1.0.0

  • Initial release

Contact and Bug Reports:
Create a ticket here, write a post in the forum thread or contact me on IRC: irc://irc.esper.net:6667/arcticraft

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

  • 5 comments
  • Avatar of zifaun zifaun Sep 01, 2013 at 05:09 UTC - 0 likes

    craftbukkit-1.6.2-R0.1

    01:06:40 [SEVERE] Could not load 'plugins\MOTD.jar' in folder 'plugins'
    org.bukkit.plugin.UnknownDependencyException: Permissions
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:195)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja
    va:239)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.reload(CraftServer.java:60
    7)
            at org.bukkit.Bukkit.reload(Bukkit.java:275)
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    23)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19
    1)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServe
    r.java:523)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchServerCommand(Craf
    tServer.java:512)
            at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:
    262)
            at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2
    27)
            at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4
    86)
            at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java
    :419)
            at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5
    82)
    
  • Avatar of whebzy whebzy Mar 24, 2012 at 12:31 UTC - 0 likes

    update plz

  • Avatar of S3thc0n S3thc0n Mar 13, 2012 at 15:26 UTC - 0 likes

    Still working?

  • Avatar of np98765 np98765 Oct 24, 2011 at 23:23 UTC - 0 likes

    Correction to my last comment:

    The motd.properties wipes itself every time the server reloads/restarts...

  • Avatar of np98765 np98765 Oct 22, 2011 at 18:38 UTC - 0 likes

    Quick question...

    The MOTD I set in the properties file won't show up... I believe that is because it is clashing with the Essentials MOTD.  Any way you can make a seperate permissions node?  Maybe motd.motd ?

  • 5 comments

Facts

Date created
Sep 06, 2011
Categories
Last update
Oct 12, 2011
Development stage
Release
Language
  • enUS
License
CreativeCommons (Attribution-NonCommercial-ShareAlike 3.0)
Curse link
customMOTD
Downloads
4,955
Recent files

Authors