[GEN] MOTDAdvanced v1.2 - More MOTD Functionality [740]

Discussion in 'Inactive/Unsupported Plugins' started by Ziddia, Mar 16, 2011.

  1. Offline

    Ziddia

    MOTD Advanced: More MOTD Compatibility
    Version: v1

    This plugin is used to give each rank a different MOTD, using Permissions by TheYeti. Currently, it has hooks in permissions and can default back to op.txt if there is no permissions, and its messages for each rank can be edited in the messages file, generated after 1 run of the server with it enabled. It currently runs best on Permissions 2.5.5, the most recent version of Permissions. Special credit for this plugin goes to MadMonkeyCo and the Herocraft Coding Team.
    Features:
    • A seperate MOTD for each rank
    • Permissions compatibility
    Download MOTDAdvanced Plugin:

    http://dl.dropbox.com/u/18856017/MOTDAdvanced.zip - V1.2
    Older Version:
    http://dl.dropbox.com/u/18856017/MOTDAdvanced(Old).jar - V1.0

    Source Code:
    https://github.com/Ziddia/MOTDAdvanced
    (Yay for getting rid of pastebin :p)
    Changelog:
    Version 1.2
    • Updated for 617, now includes a default messages.yml file in the MOTDAdvanced folder
    Version 1.0
    • Now complete, except for bugfixes/updates
    Version 0.5
    • Hooks into Permissions for more MOTD fun!
    Version 0.2
    • The plugin now works properly (oops)
    Version 0.1
    • First release, added basic MOTD capabilities
    Don't hesitate to tell me any and all bugs for the plugin!

    Fixed :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  2. Offline

    waralot

    nice your tring i saw your athere posts

    your name doesent say plugin developer?!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  3. Offline

    Ziddia

    Fixed download- and should there be my name in it?
     
  4. Offline

    Reil

    People don't get that until a mod comes by, sees the plugin, approves the plugin, and gives them the Plugin dev title. :3
     
  5. Offline

    Ziddia

    I understand what he means now
     
  6. Offline

    Kainzo

    We're adopting Ziddia into the Herocraft coding team :) I hope he makes everyone proud
     
  7. Offline

    Ziddia

    Thanks Kainzo, and I appreciate the help

    Nearly finished!

    Now finished it with permissions compatability and a config file!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  8. Offline

    MadMonkeyCo

  9. Offline

    Ziddia

    For anyone who is interested, I will be attempting to revive BlockTruansmute next!
     
  10. Offline

    MacVaultDweller

    Config file didn't generate just an empty folder.
    please post an example so that I can create it myself.
     
  11. Offline

    Ziddia

    Just copy and paste this file into your folder: http://dl.dropbox.com/u/18856017/messages.yml

    OHMYGOD IM IN PLUGIN RELEASES! :D

    Lol! It took half an hour for this to be buried! Lol!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  12. Offline

    MacVaultDweller

  13. Offline

    Ziddia

    I didn't even know it had that extension

    Maybe something stuffed up in the dropbox?

    I swear to you, I had no idea that it had that though. I'll fix it now.

    It comes out as a yml to me...

    What OS are you using? I've only tested it on Windows 7, I don't know what would have happened there...

    And, I'm not entirely sure that the config file is working, I'll ask MadMonkey how to use it again, I must have done something wrong (He helped me set up the config file)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  14. Offline

    MacVaultDweller

    OSX Snow Leopard
     
  15. Offline

    MadMonkeyCo

    It comes out as a .yml, unless he changed it. I know why the code doesn't work on Linux and I fixed that problem in all my other codes. I'll contact Ziddia and tell him how to fix it.
     
  16. Offline

    Ziddia

    Thanks

    OK, fixed it up. To configure it to give your group "admins" a special MOTD, you would have it like this:

    admins=(Your message here)

    Fixed, I think.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  17. Offline

    danneh

    could i have a default template for the config? mine wont generate, probably because my server is servercrafts
     
  18. Offline

    Ziddia

    okay, give me a sec

    This should do it:
    http://dl.dropbox.com/u/18856017/messages.yml

    Just add on each line the name of your group=your MOTD

    EG- Admins=You are an admin!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  19. Offline

    MacVaultDweller

    Thanks I will test later
    Keep up the great work.
     
  20. Offline

    Ziddia

    Thanks, I am making a spells plugin as we speak :D
     
  21. Offline

    MacVaultDweller

    How many lines of text for each moto are available
    Is it a /motd command call
    Example of permissions entry would be nice
    Thanks

    Fixed working well good job : )

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  22. Offline

    Ziddia

    Thanks, take a look at my sig for my other plugins, im also making a spells plugin right now for Herocraft :D

    Stay tuned :D
     
  23. Offline

    Tim Yong

    Greetings, and thanks for sharing this!
    1. Does this plugin allow usage of the hexadecimal-based color codes?
    2. What is the character limit per message - can there be multiple lines?
    3. Where is the messages.yml file to be placed - should I make a folder named MOTDAdvanced in plugins?
    I love how simple the messages.yml syntax is. :D

    Code:
    admins=(Your message here)
     
  24. Offline

    Ziddia

    Ok, answer time.

    1. I plan this for a future version (if I get around to making one) but it would require hooks into iChat or herochat which I can't do right now.
    2. I'm pretty sure it should be able to be larger than a line, correct me if I'm wrong
    3. It should generate folder and file on first run. If not, tell me and I'll add the file and folder to the main download.

    Thanks for the interest!
    Ziddia
     
  25. Offline

    Shinfo

    All your properties file generates is
    Maybe you should put some instructions...
     
  26. Offline

    MacVaultDweller

    21:32:43 [INFO] MOTDAdvanced version 1.0 is enabled!
    21:32:43 [SEVERE] Nag author: '<NoAuthorGiven>' of 'MOTDAdvanced' about the following: onPluginEnable has been replaced with a new signature, (PluginEnableEvent)


    You should fix this.

    Thanks for the work.
     
  27. Offline

    Willobe

    um not sure what went wrong, have it installed and no msg in
    Code:
    [SEVERE] Could not pass event PLAYER_JOIN to MOTDAdvanced
    java.lang.NullPointerException
        at ca.ziddia.motd.MOTDAdvancedPlayerListener.onPlayerJoin(MOTDAdvancedPlayerListener.java:11)
        at org.bukkit.event.player.PlayerListener.onPlayerJoin(PlayerListener.java:20)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:169)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
        at net.minecraft.server.Packet1Login.a(SourceFile:46)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  28. Offline

    XinwxHleak

    Yeah, what am I supposed to do with
    "#Minecraft Properties File
    #Thu Mar 17 16:36:19 EDT 2011"
    ?!?
     
  29. Offline

    MJRamon

    617 version please?
     
  30. Offline

    Ziddia

    Will be doing this now. Updating ASAP

    Fix is now available for 617, it comes with a default messages.yml for you to read over. It works perfectly btw.

    How it works is, under the stuff which has hashes before it, you put your ranks and messages like this:

    You don't need the quotation marks around your message, but I believe that the ranks are case sensitive.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016

Share This Page