[INACTIVE][GEN/INFO] customMOTD v2.2.3 - Rank-specific MOTD [Permissions] [1240]

Discussion in 'Inactive/Unsupported Plugins' started by Boreeas, Aug 13, 2011.

  1. customMOTD - Yet Another MOTD Plugin

    Current Version: 2.2.3
    Recommended Build: 1240

    <font color="rgb(255, 0, 0)">Switched to DevBukkit, please update your bookmarks: DevBukkit</font>
    <font color="rgb(255, 0, 0)">You can manage everything from there: Bug Reports, Feature Requests, Downloads
    </font>

    What this does:
    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:

    * %(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
    * %rank% - The rank of the player
    * %mode% - Player mode (creative or survival) <font color="rgb(255, 0, 0)">new!</font>
    * %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.


    FAQ

    Show Spoiler
    * I get the following error:
    Code:
             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;
             
    Please make sure that you are using TheYetis permissions plugin, it is the only one supported for now.


    * Will there ever be support for other permission systems?

    Yes, when I figure out how to get the groups with other plugins





    Download:

    Show Spoiler
    RB 1240
    * <Edit by Moderator: Redacted mediafire url>
    * Dropbox

    RB 1185
    * <Edit by Moderator: Redacted mediafire url>
    * Dropbox

    RB 1060
    * <Edit by Moderator: Redacted mediafire url>
    * Dropbox

    RB 1000

    * <Edit by Moderator: Redacted mediafire url>
    * Dropbox




    Changelog:

    Show Spoiler
    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
    * Fixed bug where file would be wiped when forcing a reload

    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:
    Create a ticket , write a post in here or contact me on IRC: irc://irc.esper.net:6667/arcticraft
     
    Last edited by a moderator: Nov 12, 2016
    Orcem12 likes this.
  2. Offline

    Kreychek

    Just installed this today and it looks like the %name% etc codes aren't parsed properly in news.txt.

    My news.txt:
    Code:
    %5%.. .::. .:..  Sigil Minecraft SMP  ..::.  .:. .. .
    
    %15%Welcome back, %name% [%rank%]
    
    %4%Ops: %admin%
    %15%Users currently in world: %10%%online%
    %15%Server time: %time%
    This shows up as that exact text, except the color codes are gone and the text is properly colored.

    Also, the motd isn't saving when i edit the properties file nor when I type it in-game. When I do a set of the motd in-game, it only stays in effect until a reload, at which point the file and the motds in-game are both wiped.
     
  3. Fixed the variable-error, but I have one more question to the save-file-error: If you manually edit the file and save it, does it still get wiped at server reload/restart?
    Could you post your motd properties? Also, try to shut down the server, edit the properties file, save and then restart.
     
  4. Offline

    Kreychek

    @Boreeas

    Opened the properties file after starting the server, edited it, did a reload and it got wiped.

    My motd.properties is empty so not much to post :)

    If I do a "/motd set Admins %news%" I will see:

    Code:
    #MOTD file
    #Fri Sep 09 15:38:15 EDT 2011
    Admins=%news%
    
    The uncommented line is the same as what I type when I try to edit it manually.

    Editing the file when the server is offline has the same effect - gets wiped at start.
     
  5. Offline

    Roelith

    I'm actually having the exact same problem as Kreychek.

    Running 1060 with your newest plugin installed. I have tried disabling all interfering parts of essentials, saving in and out of game (server down and up), reloading, stopping, etc. It seems to wipe it every time without fail. That aside however.... It works GREAT when I don't have to reload! haha. I tried changing my ranks and logging out and the messages were exactly as I wanted them. No console errors.

    Unfortunately... I don't know how I could post anything that might help you see what's causing my problem....
     
  6. @Kreychek
    @Roelith
    This last update might or might not have fixed the problem, please tell me either way
     
  7. Offline

    Kreychek

    @Boreeas
    HDD that the MC server was on got fried, probably won't be reinstalling Bukkit until 1.8 is supported, as my users wanted to try out the new features, so expect a delay in my reporting any finds regarding your fix.

    I'll reply when things are updated.
     
  8. Offline

    GayJuice

    does this auto run the motd command when people login to the server?
     
  9. Aaaand we are to date with RB 1240
     
  10. Inactive due not being able to port it to any other permissions system, and TheYeti's system no longer being updated anymore. Sorry to everyone who used it.
     

Share This Page