Inactive [ADMN/GEN/TP/INFO]motd 1.2 - Greeting, Teleport Request, Time Vote, IP, WhoList [2126] superPerms

Discussion in 'Inactive/Unsupported Plugins' started by zweizeichen, Mar 13, 2011.

  1. Offline

    zweizeichen

    [​IMG]
    Latest Version: v1.2 (Bukkit 1.2.4)
    Please use BukkitDev for bug reporting and support!

    Overview

    motd is a lightweight MOTD and basic command plugin for your minecraft server.
    There are lots of 'basic commands' plugins around here, but most of them have lots of features you will never need - or they do not allow you to deactivate them easily. They often cause lag and make configuring your server a pain in the *** because there is no documentation.

    With motd I made a simple, yet powerful plugin for creating advanced, custom colored and formatted MOTDs, who lists and rules. If you do not have the time to always be around on your server, rtp and vtime can help you. Even if you decide to install permissions on your server, motd is ready for that change.



    Here's a small overview of what you can do with motd:


    Customizable MOTD (text and color)
    You can enable/disable each command by editing a config file

    Commands
    • who
    • rtp [playername / yes]
    • vtime [dawn / day / evening / night]
    • ip
    • motd
    • rules
    The plugin provides several features for your minecraft server. The first one you will notice, is whenever a player joins the game he will be greeted and shown other online players.


    To bring up the online players list again type:
    /who

    To bring up the MOTD again type:
    /motd

    To bring up the rules type:

    /rules


    Votes

    The plugin is generally designed for servers where an admin is not online all the time. Therefore I have implemented the following two commands:

    /vtime
    vtime is a time vote system. Everyone can start a vote to change the time. You can vote for dawn, day, evening and night. To vote for a time change just use the argument yes. If not at least half of the online players voted yes within 60 seconds, the vote expires.

    /rtp
    rtp creates a teleport request to another player. The other player has to type in /rtp yes to teleport the player. There can only be one request to one player at a time.

    Utility

    /ip
    ip shows the ip of the player using the command.

    Please read the manual for further information on using and configuring motd.

    Permissions Nodes

    • motd.ip.use
    • motd.who.use
    • motd.rtp.yes
    • motd.rtp.request
    • motd.vtime.use
    • motd.rules.use
    • motd.motd.use
    • motd.edit
    • motd.reload
    • note that motd.rtp.request includes motd.rtp.yes
    Changelog

    Version 1.1.1
    • FIXED: /vtime now displays the correct name of the world
    • FIXED: some Permissions related stuff in /motd
    Version 1.1
    • REWROTE: Entire command, permission and config handling
    • ADDED: Permission's prefixes to <who>
    • ADDED: Modular command system
    • ADDED: Internal task management for vtime
    • IMPROVED: Multiworld support in vtime
    • FIXED: Some problems with names in /rtp and /vtime
    • CHANGED: Node motd.rtp.use is now split into
      • motd.rtp.yes
      • motd.rtp.request
      • Important: request includes yes
    • Some minor changes I cannot remember (spelling...)
    Older Changelogs (open)

    Version 1.0

    • ADDED: Permissions support
      • Nodes
        • motd.ip.use
        • motd.who.use
        • motd.rtp.use
        • motd.vtime.use
        • motd.rules.use
        • motd.motd.use
        • motd.edit
        • motd.reload
    • ADDED: /rules command
    • ADDED: changeable /who text
    • ADDED: /motd reload command
    • ADDED: /motd edit %property% %value% command
    • ADDED: config now migrates itself from 0.5.3 to 1.0
    • ADDED: build 733 compatibility
    • MOVED: Motd/motd.yml to motd/motd.yml
    • CHANGED: some minor changes in the config. They should be self-explaining
    • Please read the manual first if you have questions
    Version 0.5.3



    • The plugin is compatible with 609 / 1.4 now
    • CHANGED: /who command and <who> now displays the calling player too, for consistency with <numplayers>
    • ADDED: <ae>, <ue> and <oe> for the umlaute ä, ü and ö
    • MOVED: The config is now located in plugins/Motd
    • CHANGED: Default motd to match the change in <who>
    Version 0.5.2



    • ADDED: <numplayers> and <maxplayers> placeholders in MOTD
    • CHANGED: placeholders are now written in <brackets> for better readability
        • '%red' changes to '<red>' for example
    • CHANGED: %p is <playername> now
    • CHANGED: %w is <who> now
    • UPDATED: config to version 2
    Version 0.5.1



    • ADDED: /motd command to bring up the motd again
    • ADDED: some kind of config file version management
    Version 0.5



    • FIXED: Handling of offline players in /rtp
    • UPDATED: Internal teleport function for future versions of craftbukkit
    • ADDED: Use %n for a new line in the MOTD
    • IMPROVED: Internal color handling
    Version 0.1b



    • ADDED: colors for the MOTD are now available. Please see the manual for further instructions on using them.
    Version 0.1a



    • FIXED: /who no longer shows "nobody!" as other player
    • ADDED: motd.yml (will be created at first launch)
    • ADDED: Changeable MOTD (use %p for playername and %w for the player online list)
    • ADDED: use true or false in the motd.yml to enable or disable the different commands
    Version 0.1



    • release




    Planned Features
    • different MOTDs for different groups
    • multiple MOTDs
    • broadcast messages
    • more placeholders
    • pm command
    • localization
    Have fun and good luck,



    zweizeichen
     
    EarlyLegend and Pinkpixels like this.
  2. Offline

    JW97

    Problem sorted. I added the node to the wrong group :)
     
  3. Offline

    dkeulen

    Im not sure if i could make this up out of your planned features.
    But would it be possible to change the text you see when casting a vote?
    so i could for example translate the english to a different language?
    This would be really nifty ;)

    + i see this plugin overwrites other /motd and /rules command like from essentials
    witch i use. any change on makeing something so that your plugin wont override others?
    because i actually only need the time vote part of this plugin :rolleyes:
     
  4. Offline

    jonassm

    The download link is broken.
     
  5. Offline

    zweizeichen

    Try the mirror.
     
  6. Offline

    tok3ninja

    Can you mirror your Manual as well?
     
  7. Offline

    zweizeichen

    The manual is mirrored now. The site should be online again soon (DNS issues).
    @dkeulen: What can Essentials do what my plugin can't do? I will put localization on my to-do list.
     
  8. Offline

    emcitement

    I only use this for the greeting and wholist.

    Does the job just fine. Great plugin.
     
  9. Offline

    Leemur

    great PLUGIN! I like it!
    but please add the option to teleport without request. something like /wtp player. And a node motd.wtp.use
    Please, I need that. thank you.
     
  10. Offline

    dtla1730

    This's awesome. Simple, useful and trouble free. Moar plugins from you plzkthxbye.
     
  11. Offline

    chicagosandman

    Problem.
    It seems as though craftbukkit cannot pass a join event to motd, thus disabling a message on login. But I'm no expert, so heres the code:

    Code:
    2011-06-29 18:36:16 [INFO] [g] chicagosandman has joined the channel
    2011-06-29 18:36:16 [SEVERE] Could not pass event PLAYER_JOIN to motd
    java.lang.NullPointerException
        at org.zweizeichen.Motd.Motd.showMotd(Motd.java:605)
        at org.zweizeichen.Motd.MotdPlayerListener.onPlayerJoin(MotdPlayerListener.java:25)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:126)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Also, whenever I try to do /motd, my server has an internal error:

    Code:
    2011-06-29 18:36:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'motd' in plugin motd v1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at org.zweizeichen.Motd.Motd.showMotd(Motd.java:605)
        at org.zweizeichen.Motd.Motd.onCommand(Motd.java:357)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Can anyone help me with this? Thanks in advance.
     
  12. Offline

    zweizeichen

    Try to use the beta release of motd and the latest recommended build of bukkit.
     
  13. Offline

    FawltyTowers

    Thanks for the great plugin! I'm new to the Bukkit world, but will this work with the new build for 1.7.2?
     
  14. Offline

    zweizeichen

  15. I'm getting some errors with my color codes in the simple motd, but I'm no expert so it's probably a simple error:

    http://postimage.org/image/1e8212o6c/

    Sorry it's a link, was too long to put in the reply ; (
     
  16. Offline

    zweizeichen

    The apostrophe in
    Code:
    rules: 'Don't steal people's ...'
    is wrong. It is a special character used by the config file reader to mark the beginning and the end of a string. If you use apostrophes in your text, then you have to use double quotation marks in your config like
    Code:
    rules: "Don't steal people's ..."
     
  17. Offline

    ugotnukd

    can you put up the color codes please[diamond]
     
  18. Offline

    zweizeichen

  19. Offline

    bassfader

    Could you please make the /vtime command Multi-World compatible? Currently the time gets changed in the world of the last player who accepted the vote, but I think it should be changed in the world of the player who started the vote.

    Any possibility for fixing this?

    EDIT:
    Also would it be possible to fix this behaviour when having PlayerNames with multiple colors?
    playerlist.png

    As you can seen I've configured it so that it should display all names in dark blue, my plugin (SimpleAFK) add's an red [AFK] Tag behind the username. But for the Chat to be displayed correctly I needed to reset the ChatColor to White after the username, thus all Player's names following the first AFK one are displayed in white instead of dark blue.


    EDIT2: I guess just stripping the Color of the DisplayName would be the best soloution for that, could you implement this?
     
  20. Offline

    zweizeichen

    I did not know about the multiworld-bug before. Thank you for reporting! :)

    The color is important for the servers which are using Permissions. If you do not wish to have colored nicknames, then disable Permissions support. If you wish to have every player colored blue, then set the group's prefix of all players to &1/or &9.

    Motd colors everything after the suffix white, so the comma between the names is not colored like the suffix of the first of the two names. In your example the comma would have been colored red if that feature would not exist. Maybe it's more easy to understand if I post the source of the who-list-generator:

    PHP:
    for (Player player getServer().getOnlinePlayers()) {
                   
    // stuff that's not important for the color

                    // Compose String

                    
    onlineuserList += getPrefix(player) + player.getDisplayName() + getSuffix(player) + ChatColor.WHITE ", ";

                }

    So it is neither SimpleAFK's nor motd's fault that the color is messed up. It's just a feature to prevent wrong-colored names.
     
  21. Offline

    bassfader

    Yeah I know, I had to reset the color to white to after adding the suffix too for the Chat to be displayed correctly when using my Plugin.

    And I do wan't colored names, but wouldn't it be possible to just strip the Colors of the names for the Online Players list (I mean I guess colored names are not really needed in the Online list - at least I won't need them xD Its very ok for me if the Players names are just colored in the Chat, not in Lists of players, doesn't matter which plugin lists the players).

    Couldn't you just change the code for the Online player to something like this (or at least make it an option to enable in the Config file)?
    PHP:
    for (Player player getServer().getOnlinePlayers()) {
                   
    // stuff that's not important for the color

                    // Compose String

                    
    onlineuserList += ChatColor.stripColor(getPrefix(player) + player.getDisplayName() + getSuffix(player)) + ", ";

                }

    This should make a config like this work as expected:
    PHP:
    who'<green>Spieler Online (<numplayers>/<maxplayers>) <blue><who>'

    Otherwise the coloring of these Strings is pretty much pointless :(

    (BTW: I mentioned my Plugin as reference since I only noticed it when using it. All Players from the List are colored blue as expected until my plugin "messes up" the DisplayName ^^ You're plugin never turned the Display names of the players white for me... But maybe thats because I am using v1.0 not the new Beta of your plugin)
     
  22. Offline

    zweizeichen

    No, the coloring is not pointless, since there are servers where Permissions are not running. There your idea would work perfectly. Try to set permissions_enabled to false. You will lose the prefixes as well as the suffixes but all the names will be blue now.
    The idea behind the colored names in the who-list is, that you can use them to easily determine the group of each player. This is designed to work together with iChat, where you can set chat-only-prefixes.
    To avoid having an output in the who list like this:
    [ADMIN] player1, [MOD] player2, [PLAYER] player3, [PLAYER] player4, [MOD] player5, [ADMIN] player6, [PLAYER] player7, [PLAYER] player8

    You have to only have a color in the prefix in Permissions.
    Then you set your iChat message-format to:
    message-format: '+prefix[+group] +name +suffix&f: +message'

    Now you have the names in the who-list colored according to the group the player is in and you have nicely colored and prefixed chat. That's the way this feature is meant. screenshot.png

    EDIT: Try to use the beta build.
     
  23. Offline

    bassfader

    Okay now I got it... we should have just spoken german I guess I'd get it much faster then xD But well I guess thats not so good for this forums ^^

    You're right didn't think about that case... Sorry to bother you for that :oops:
    I guess I have to rework my iChat and Permissions config (currently I am the only Admin on my Server so I didn't color the players names like you did on yours, but I'm going to implent this ASAP! Very nice idea)

    Thanks for clearing this up! "Vielen Dank soweit, und sorry nochmal dass ich so ein holzkopp war, da hätte ich auch selbst drauf kommen können... xD"
     
  24. Offline

    zweizeichen

    Yeah no problem. I am not an admin on that server btw.
     
  25. Offline

    thehutch

    Het excellent plugin only got today but looks awesome however i came upon this error. Hope this helps a bug

    Code:
    20:17:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rtp'
     in plugin motd v1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at org.zweizeichen.Motd.Motd.requestTeleport(Motd.java:394)
            at org.zweizeichen.Motd.Motd.onCommand(Motd.java:287)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  26. Offline

    zweizeichen

    Try the beta. Or:
     
  27. Offline

    thehutch

    I don't have essentials but i'll try out the beta thank you. also any chance of a give command i chose this over commandbook and i need a give command but otherwise ill just use a give plugin
     
  28. Offline

    zweizeichen

    Thank you for using my plugin. :)
    Motd is not really meant to be a plugin for give commands / admin stuff.
    I think there are quite a few good give plugins out there you can use - if you are not able to find a good standalone solution, please let me know.
     
  29. Offline

    thehutch

    I have a request for this plugin:

    Would it be possible to add a vote for weather?
    because if im not on and it rains people hate it and they want to change it to sunny again.

    Thank you

    found another error for you this came after someone just quit

    Code:
    16:43:03 [SEVERE] Could not pass event PLAYER_QUIT to motd
    java.util.ConcurrentModificationException
            at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
            at java.util.HashMap$EntryIterator.next(Unknown Source)
            at java.util.HashMap$EntryIterator.next(Unknown Source)
            at org.zweizeichen.Motd.MotdPlayerListener.onPlayerQuit(MotdPlayerListen
    er.java:44)
            at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.ja
    va:251)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:321)
            at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConf
    igurationManager.java:146)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    here is another error :(

    EDIT: this error has occured a few times now. sometimes the tp actually works and sometimes i need to type /tp here [playername] instead.

    Code:
    20:26:16 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rtp'
     in plugin motd v1.1_BETA2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at org.zweizeichen.Motd.Motd.requestTeleport(Motd.java:406)
            at org.zweizeichen.Motd.Motd.onCommand(Motd.java:294)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  30. Offline

    zweizeichen

    I will look into these bugs when I have time. Stay tuned!
     
  31. Offline

    zippolino

    Hey,

    your Plugin is awesome! Works great on my Server!

    But now, after installing the "Jobs"-Plugin http://forums.bukkit.org/threads/ec...t-953-iconomy-5-boseconomy-permissions.23429/ the /rtp command doesn´t work correct.

    There you can have name tags. You can see them in the Chat like :

    (Apprentice Farmer Zippolino): Hey!
    (Master Woodcutter Zippolino): Test!

    I always get an error if someone tries to teleport.
    Without those name tags teleporting is no problem.

    I hope it´s my fault and you can help me.

    Thx!
    Zippolino
     

Share This Page