[INACTIVE][ADMN/WEB] BukkitHTTPD 0.0.4 - now with more themable signatures [1000]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, May 13, 2011.

  1. Offline

    codename_B

    BukkitHTTPD 0.0.4
    For simple HTML based sites, on the same ip as your server. With stats. And signatures.

    [​IMG]
    Now with automatic banner creation! This is an actual banner from my actual server!



    History:
    • So for quite a while now, I've been annoyed at the lack of a "default html" page in bukkit - I want something that I can just set my DNS to and not have to install NGINX or apache, I just want to install my minecraft server and let it run. Well this is just that! No extra programs to install, no extra config files to edit. Just place your html in the right place and it does the rest. Now you can finally have a landing page on the same ip as your server, run by your server! Example: my server
    Usage:
    • Download BukkitHTTP.jar and install in /plugins
    • Run the server once, then stop it.
    • Change the default index.html in /plugins/BukkitHTTPD/index.html to whatever you wish your small html based site to be.
    • Start the server again, once it's started navigate to localhost:8107 (or whatever port you have configured) on the machine the server is hosted on. This should display your index.html
    • There is several configurable options which you must add to server.properties.
    Code:
    http-daemon-port: 8107
    server-name=Localhost Test Server
    server-dns=localhost
    text-color=000000
    • If you want your server to listen on port 80 (ie the standard web port you will need to set it to something like this)
    Code:
    http-daemon-port: 80
    server-name=MyAwesomeMinecraftServer
    server-dns=my.ip.com
    text-color=FFFFFF
    Screenshot:
    [​IMG]


    Current Themes:
    • These are all the themes that I have created/have been created for you by players.
    [​IMG]
    Simple dirt theme. Just replace BukkitHTTPD.jpg with this.
    [​IMG]
    Simple sand theme. Just replace BukkitHTTPD.jpg with this.
    [​IMG]
    Elegance theme by @eastonch with no branding. Just replace BukkitHTTPD.jpg with this.
    [​IMG]
    Simple minecraft theme. Just replace BukkitHTTPD.jpg with this.
    [​IMG]
    Flow theme. Just replace BukkitHTTPD.jpg with this.

    Download:
    • Version 0.0.4 zip bundled with player stats and signature generator Megaupload Mirror
    • Version 0.0.4 zip bundled with player stats and signature generator Main Mirror
    Source
    Thanks:
    • Thanks to spacemaniac and pluckerpluck on #bukkitdev for their help with debugging the exception code.
    • Thanks to the original authors of NanoHTTPD, from which this plugin is based.
    A bit more about:
    • The default port number had to be above 1024 incase users were not running bukkit as root on their system, similar to my hosting setup. If you get a socket error of some kind after trying a port below 1024, this is probably because you're not running as root on a *nix system - windows users should be fine. In which case, you should just direct your users to :8107, talk to your host about running as root, or get a minecraft server from someone who offers extensive NAT configuration such as PigSaddleHost ie. my server listens and serves on port :8107, but you all connect to it on port :80 in your browsers. Fantastic! You can also do this yourself with iptables.
    • I'm also working on modding a version of MCStats to work plug and play with this - providing you with player stats on your webhost!
    • There is now a signature generator bundled with BukkitHTTPD! You can mod this with any image you like, just swap out BukkitHTTPD.jpg for any image of the same dimensions, it will work right away. This will be at yourip/image.png
    • If you have any questions about the stats plugin please ask on their thread. I have bundled a modified version of it with this plugin for ease of use, it will work straight out the box.
    NanoHTTPD License:

    Copyright © 2001,2005-2011 Jarno Elonen <[email protected]> and Copyright © 2010 Konstantinos Togias <[email protected]>
    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    Changelog:
    • 14/05/2011 - v0.0.1: wrote source code and released plugin on bukkit.org after extensive testing and going live with it on my server.
    • 15/05/2011 - v0.0.2: changed default html page and bundled a stats plugin.
    • 25/05/2011 - v0.0.3: bundled themable banner creation.
    • 25/05/2011 - v0.0.4: added configurable color for the text. Changed output to .png
     
    Blechbuexse, JWhy, dark1256 and 3 others like this.
  2. Offline

    codename_B

    Same as server port forwarding, just make sure you're running it right. Have you configured the correct port in server.properties, can you access it via localhost? etc etc
     
  3. Offline

    JamestheLeet

    Localhost is working, I'm going to change the port in the .properties file.
    I'll tell you if it works.
    It works!
    Yay!
     
  4. Offline

    codename_B

    Link? :D Beer money? ;)
     
  5. Offline

    JamestheLeet

    http://68.51.12.134:8107/
    It's still a WIP, but I think it looks good for now.
    Awesome plugin, bro.
     
  6. Offline

    codename_B

    You might wanna consider resizing your image slightly :p apart from that it's great to see someone using this! Why not change your port to something more standard like 80? :)
     
  7. How do you add Player Stats like you did , its pretty awesome , and I suck with HTML i'm pretty new to it but thats what I tried ^^ : http://minecraftquebec.no-ip.org:8107/

    EDIT : Found it using ur Codes from your website .

    10000 Thanks for that awesome Plugin that gives me experience with HTML
     
  8. Offline

    codename_B

    I'm very glad it could help someone else :) Thanks for the feedback, and thanks for the link! I always like to see what people are doing with my plugin.
     
  9. Offline

    crafta

    thank you for all your work codename_B. This has given me something to do on this lazy sunday lol.
    I can't get u any beer money at the moment, but will leave the donate link just incase one of my visitors can. :)
    LINK: http://www.crafterplus.info
     
  10. Offline

    codename_B

    Thanks mate :D that's hugely appreciated. I like your site, but I wouldn't trust my graphics card if all that tnt went off at once ;)
     
  11. Offline

    Mighty Mackinac

  12. Offline

    codename_B

    I'm just not a fan of sites on ips other than what the server is on :p
     
  13. Offline

    Mighty Mackinac

    Yeah i know what you mean. This is temporary until I can get more people playing and/or get donations for upgrades. once that happens, then it'll be on my computer with my address.
     
  14. Offline

    Pxl_Buzzard

    Mighty Mackinac likes this.
  15. Offline

    hi00ih

    Wow. I love you. No homo lol.
     
  16. Offline

    Mighty Mackinac

    I think I saw someone talking about PHP and MySQL, not sure, but if you could add support, your plugin would work beautifully with THIS. It would add a lot of functionality that I could really use.
     
  17. Offline

    codename_B

    Hi, due to the way I'm going to be bundling other plugins with this that's not going to work so well.

    Also @ people asking for PHP support, it's just not going to happen. It should be possible to do an admin "view log" page that's password protected however.

    Version 0.0.3 is under development!

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

    Ben91

    W00t ! It's awesome man !!!! When support for PHP ? :p

    Cheers.

    ++
     
  19. Offline

    codename_B

     
  20. Offline

    Mighty Mackinac

    Sweet! Whats going in it?
     
  21. Offline

    codename_B

    Web viewable server.log atm - password protected. There's not really that much "security" that it can give though, so I'm going to make it read only, as in it only reads your server.log.

    That's all working so it's just a matter of thinking if there's anything practical that could also be put into that page like CPU usage, RAM usage etc.

    Here's a sneak preview.

    [​IMG]
     
  22. Offline

    Mighty Mackinac

    Ok cool! Yeah I like the idea of the read only console. Any other ideas you might have?
     
  23. Offline

    codename_B

    Nah, not for 0.0.3 - I want to keep the releases small and modular.
     
  24. Offline

    rymate1234

    I have a question about the console. Does it auto update?
     
  25. Offline

    codename_B

    Of course it does! You can configure how often you want it to update too (minimum is once every second)

    Ok, development on 0.0.3 has been cancelled due to security issues unresolvable in this situation.

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

    Mighty Mackinac

    Well shoot. Oh well, i would rather have security over convenience...
     
  27. Offline

    codename_B

    Yeah, on the plus side, new look for my server page/example page. What do you think?
     
  28. Offline

    DemonCraft

    So this is basically a web client for your MC server?
     
  29. Offline

    rymate1234

    Well, i have an idea for 0.0.3

    Being able to control the web server using commands.

    E.g. /webserver stop would stop it
     
  30. Offline

    codename_B

    A web SERVER, yes.

    That's what I was working on but due to the nature of this project (ie. plain html) there was no secure way to do it, so it won't be happening.
    I'm currently working on a kind of "in-game" messageboard, that allows people to leave feedback on your server viewable from online, but again I've got to think about how subject to abuse that is. Never trust the client, etc.
     
  31. Offline

    DemonCraft

    Cool, I'll definitely be using this in the near future when it has more bugs worked out and more features.
    I really like this, thanks for making it! ;)
     

Share This Page