[INFO] SpoutMOTD v1.5 - A fully customisable popup MOTD [1185]

Discussion in 'Inactive/Unsupported Plugins' started by jonas_747, Sep 25, 2011.

  1. Offline

    jonas_747

    Abandoned!

    SpoutMOTD - A popup MOTD for servers!
    Introducing Images in 1.4!
    If the config dosent generate, Here is the config for you!
    Older versions: v1.4.4 v1.4.3 v1.31 v1.2 v1.1

    This plugin allows you to have popup MOTD screen, with text on. You WILL need the spoutcraft client to see this!
    Show Spoiler

    [​IMG]

    [​IMG]

    Usage guide:
    People that want to see this need SPOUTCRAFT!
    It will automaticly popup when you log in or when you press "h" (or teh button the server admin configured it to)
    That easy!

    Commands and Permissions
    Currently everyone can view the MOTD, but will make that permission based too
    This plugin is using the standbard bukkit permission system

    /smotd - Opens the MOTD Permission: spoutmotd.smotd
    /smotdreload - Reloads the config Permission: spoutmotd.reload

    Config Guide:
    Show Spoiler

    The Config thats generated looks like this:​
    Code:
    Texts:
        text1:
            text: This is a demo text
            color:
                red: 1
                blue: 1
                green: 1
            posy: 100
            posx: 100
            size: 2
    text1 - text1 is the name of that text, 2 texts cant have the same name
    text - This is the text that will be displayed
    Color red, blue, green - This is the color of the tex, in RGB format, maximum number for the is 255, if you go past that the color will just be black
    posy - Y position of the text
    posx - X position of the text
    size - The size of the text, you cannot make decimals at the moment. You can in 1.2!
    like this: 1.13 is one size.
    Multiple texts:

    you can add more texts easily, just simply do like this:
    Code:
        text1:
            text: This is text 1
            color:
                red: 1
                blue: 1
                green: 1
            posy: 100
            posx: 100
            size: 2
        text2:
            text: this is text 2, both of us will be displayed!
            color:
                red: 1
                blue: 1
                green: 1
            posy: 100
            posx: 100
            size: 2
    Just remember that 2 texts cant have the same name, then only one text will be displayed :)
    i have no idea what the maximum number is but i guess you could go over 1000's of texts if you want.


    Images:
    introduced in 1.4 is images!
    Image formats: png or jpg only!
    Image height cant be bigger than 239! If it is, your image wont be displayed :(
    its very simple how to add them just add this to your config:
    Code:
    Images:
        Image1:
            url: http://forums.bukkit.org/data/avatars/l/3/3659.jpg?1316978098
            posx: 100
            posy: 10
    Heres a example with a text that wont be displayed:
    Code:
    Texts:
        text1:
            text: ignorethisword
            color:
                red: 100
                blue: 1
                green: 1
            posy: 150
            posx: 150
            size: 1.5
    Images:
        Image1:
            url: http://forums.bukkit.org/data/avatars/l/3/3659.jpg?1316978098
            posx: 100
            posy: 10
    Very easy!
    You can also add as many images as you wish :)

    General config settings:
    Hotkey - This is the hotkey to open the MOTD Simply put in KEY_yourpreferedkeyhere list over possible keys: here
    Closebuttontext - This is the text that is on the close button
    hometab - Does nothing, ignore this
    hotkey_is_enabled - true or false, you want the hotkey to be enabled or not?
    only_display_on_first_time_joined - Only display the popup on player join if the player has never joined the server before.

    Variables:
    Introduced to 1.2 is variables, please come with more suggestions to variables!
    • ignorethisword - This will not be displayed!
    • %date% - Server date
    • %realservertime% - Server realtime
    • %player% - the name of the player that sees the MOTD
    • %IP% - ip adress of the player that is seeing the MOTD
    • %world% - The world the player is on
    • %level% - The player's experience level
    • %xptonextlvl% - displays the xperience points to next level, (i think it does that atleast)
    • %totalxp% - Displays the total experience points
    • %foodlevel% - Your current food level
    • %playertime% - The players realtime(or total playtime, need to doublecheck)
    • %playercount% - Displays the amount of users online!

    Todo List:

    • Redo the size setting
    • Add images Resize image fucntion
    • Layers
    • Add configurable buttons? - will kinda be in with the tab release!
    • different tabs - my task after 1.5!
    • "links"
    • Various variables, like player, time, IP address etc... MORE variables!
    • Add "ignorethismessage" as a variable to be ignored, (you cant start with %, so adding that wich wont be displayed solves the problem)
    Known issues:


    • none, for now...
    Changelog:

    Version 1.5
    • Made the "close" button text configurable
    • Added a reload command
    • Added a command for opening the MOTD
    • Added a option for only opening the MOTD the first time a player joins teh server
    • Added a option to enable or disable the hotkey
    Version 1.4.4

    • Rewrote many parts of the code
    • Fixed the only one player can read the MOTD at a time bug
    Version 1.4.3


    • removed a debug message i forgot :p
    Version 1.4.2


    • Made the hotkey fro the MOTD configurable
    • Hotkey does nothign while in inventory, chat etc...
    Show Spoiler


    Version 1.4.1

    • Fixed a bug where people disconnecting from the server while in the MOTD would crash the plugin.
    • Also theres a trail of my started tab development in the config, deos nothign yet :)
    Version 1.4


    • You can now add images!
    • Players clicking close will no longer close the MOTD for others!
    Version 1.31

    • Fixed players pressing "h" will open the MOTD for the person last joined
    Version 1.3


    • Added hotkey "H" to open the MOTD
    • Added the following variables:
    • ignorethisword
    • %foodlevel%
    • %playertime%
    • %playercount%
    Version 1.2

    • Added the folowing variables:
    • %date%
    • %realservertime%
    • %player%
    • %IP%
    • %world%
    • %level%
    • %xptonextlvl%
    • %totalxp%
    • Redid the size, you can now have decimals in the size setting of your text!
    Version 1.1


    • Fixed Nullpointerexception that was caused by players without spoutcraft client
    Version 1.0



    • Initial release
     
    WimFris, olimoli123 and efstajas like this.
  2. Offline

    gameswereus

    Sounds really cool.
     
    jonas_747 likes this.
  3. Offline

    jonas_747

    Thanks!

    Added a screenshot!
     
  4. Offline

    ThrillMan16

    Nice dude. I've been looking for something like this.
     
  5. Offline

    jonas_747

    Thanks! :D
     
  6. Offline

    ThrillMan16

    Hey no problem! But this really is revolutionary, It's amazing the creativity i see here.

    by the way you can make it so that the download link says download or download jar or something.

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

    jonas_747

    Yeah i know, but i like having the whole link shown :p
     
  8. Offline

    ThrillMan16

    oh ok then
     
  9. Offline

    quantostretcher

    This is fucking awesome. Dude. You are a GENIUS WITH CODE!!! I simply cant believe it. i want to grope you i lvoe this so much. I'm sending this to all my friends, thanks soooo much!!!!!! dude, i love you!! i would be willing to PAY for this. this is nothing but awesome. thanks. :)
     
  10. Offline

    gameswereus

    This is really going to improve my server, much better then filling the chat instantly.
     
  11. Evidently its a good idea :confused:
    Nice job ;)
     
  12. Offline

    jonas_747

    Thanks! :D

    Small update, fixed a Nullpointerexcpetion!

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

    Matt Gill

    Great idea. Needs some prettying up though. I'm sure once Spout 1.1 comes out there will be more GUI options though.
     
  14. Offline

    jonas_747

    What do you maen by "prettying up"? Just want some feedback :p
     
  15. Offline

    Mercury

    At last someone dit it!!
     
  16. Offline

    Orcem12

    @jonas_747

    Yay someone coming into plugin development with an excellent plugin! You sir deserve the right to be called Plugin Dev. ;) Btw Excellent plugin.
     
  17. Offline

    Mercury

  18. Offline

    Matt Gill

    This is basically what I mean by "prettying up". I think it would be a good idea for these tabs to be different things. Maybe all customizable. Main one would be MOTD then I would like help, commands, then probably my website info on the last one. Something like that would be really cool.
     
  19. Offline

    Mercury

    Yeah it would be amazing if user could bring up menu and look up for custom recipes (image).
     
  20. Offline

    jonas_747

    Thats what i hope for it to be! im new to spout so i dont know if i can make that background yet. but the tabs i can probably add .
    Gonna work fro tags like %player% and such today, and redo the size.
    Thanks for the kind words by the way :)
     
  21. Offline

    Matt Gill

    I've followed Spout since it came out. I know they planned on expanding the GUI API in 1.1. I'm sure there will be more options then. They even were working on getting an in game web browser.
     
  22. Offline

    iffa

    Look out for spoiler tags spazzing out, you've got 2 :p
     
  23. Offline

    jonas_747

    Yeah i saw that, im excited too!
    I dont know why, i added single
    Code:
    [spoiler] and [/spoiler]
    and it just made 2:eek:

    New version!
    Version 1.2

    • Added the folowing variables:
    • %date%
    • %realservertime%
    • %player%
    • %IP%
    • %world%
    • %level%
    • %xptonextlvl%
    • %totalxp%
    • Redid the size, you can now have decimals in the size setting of your text!

    Yay, it sin the pluign release forum :D

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

    quantostretcher

    Hey, add pictures
     
  25. Offline

    kroko1992

    i do not generate a config file for me... do you know why?
     
    Samg381 likes this.
  26. Offline

    Lextao

    This is perfect, gonna test it when iConomy gets fixed.

    Love.
     
  27. Can you upload the source ?
     
  28. Offline

    jonas_747

    i'll do it after i get home from school, :)
    Let me upload the standbard config for you...
    Here you go :)


    Theres around 50 downloads on it. Please give me some feedback on what i could add/change, and new variables you want me to add, does anyone want %money% for iconomy?

    New Version!
    Version 1.3

    • Added hotkey "H" to open the MOTD
    • Added the following variables:
    • ignorethisword
    • %foodlevel%
    • %playertime%
    • %playercount%


    Quick fix - v1.31
    • Players pressing "h" will no longer open the motd for the last player who joined

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

    pudd1nG

    @jonas_747 Would it be possible to draw an image? Either from URL or from within the plugins folder? We currently have the Splash Screen plugin which displays an image only, but would really like to use your plugin and its extended features (variables!).
     
  30. Offline

    jonas_747

    Working on it now!

    1.4 is here!
    • You can now add images!
    • Players clicking close will no longer close the MOTD for others!

    1.4.1 here with a smal fix:
    • Fixes a bug where players taht disconnects from the server while having the MOTD open will crash the plugin.

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

Share This Page