[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

    kahlilnc

    I would like a tutorial please.
     
  3. Offline

    codename_B

    There is a modded version of MCStats bundled with it now.

    I'm releasing v0.3 soon, it has a web template you can modify yourself included in the .zip
    Would that be any help to you?
     
  4. Offline

    kahlilnc

    I'm pretty sure it will. Thank you.
     
  5. Offline

    codename_B

    Here you go, this was done by a friend of mine to bundle with v0.0.3 but you can have this on its own
    http://www.megaupload.com/?d=BSG7CN2M
     
  6. Offline

    iSushi

    First found an error, but it was my mistake. Great work! Works for me on Mac OS X 10.6.7 ~
     
    codename_B likes this.
  7. Offline

    codename_B

    Glad you like it :D
     
    iSushi likes this.
  8. Offline

    hi00ih

    So if i wanted to have multiple pages, how would i set that up?
     
  9. Offline

    crafta

    So been running 7 days so far.. running great, no issues, no error messages ..
    Ideas:
    1.Custom 404 Error Page - could come in handy
    2.Server Side Includes - sorry i repeated myself, but i love these things when making menus in html, easy change one txt file and have all pages update with info.. great for things that are on EVERY page
    3. Minimal Logging - IP's accessing, time, filename

    Again, amazing work .. none of these features are needed, just ease of use.
     
  10. Offline

    codename_B

    If you want to compile your own version, with logging, all that you need to do is uncomment the logging code in NanoHTTPD.java

    I removed it because I found it spammy and annoying.
     
  11. Offline

    JackTDawson

    I would think that a 404 page would be awesome in that plugin though.. :)
     
  12. Offline

    codename_B

    There is a 404 page, its just hard-coded into the plugin to increase performance.
     
  13. Offline

    JayFight

    okay i have to say that i love the idea of this and would love to use it...but i'm a n00b on a lot of this stuff and have no idea what to do

    so i have a site already and i can't figure out how to link this to it, could you please maybe give me a simple break down?

    btw idk much about html coding or anything, i tried to look at the code of both my site and your default index page but i couldn't see what i would need to use to make it work
     
  14. Offline

    codename_B

    If you have a site already, do you have an index.html for that site?
     
  15. Offline

    JayFight

    it isn't listed as index.html it just has the webadrees and a # symbol after it

    like this http://jayfightmns.org/#/

    like i said i'm very n00bish at this stuff i used the webhosts sitebuilder to make it and i still havn't even figured out how to get mcstats on there, even though in their thread they said something about uploading it to an ftp which i don't know how to use that either
     
  16. Offline

    codename_B

    Hey,

    Have you tried just putting this plugin in and navigating to yourserverip:8107? That's a website all in itself.
    It is served from /plugins/BukkitHTTPD
     
  17. Offline

    JayFight

    okay i can get there with just the ip:8107 now all i need is to get it to work as my main site so that people only type in JayFightmns.org to enter my server right?
     
  18. Offline

    codename_B

    You'll need to redirect that domain to the ip of your server and setup the port of BukkitHTTPD to be port:80
    Then that will work :)
     
  19. Offline

    JayFight

    okay idk how to either of those things

    btw i'm sorry if i'm being a bit difficult with this and i thank you for all the help you've given me
     
  20. Offline

    codename_B

    If you need me to set it up for you, I do server setups for a few $$, or you can come on the bukkit IRC and I'll do it for free by guiding you.
     
  21. Offline

    JayFight

    well i figured out how to redirect the domain now i just to set the port to 80
     
  22. Offline

    bahihenher

    I have a domain name registered, and i have your plugin running and i can connect to it with my external ip and my hamachi IP, but i dont know how to change it to my domain name? (aliencraft.org)
     
  23. Offline

    codename_B

    Read the whole of my plugin post - I suggest several ways to go about this.
    I don't know why I even need to say this... NO HAMACHI - LEARN TO PORT FORWARD
     
  24. Offline

    JamestheLeet

    What forum are you using for your website?
     
  25. Offline

    bahihenher

    i use hamachi because Rogers throttles my output on port 25565 so i cant do shit...
     
  26. Offline

    JamestheLeet

    You can change the port your minecraft server operates on, you know.
     
  27. Offline

    codename_B

    Could run your server on a different port, it beats using hamachi. There are loads of different ports to choose from!
    I'm using myBB. Why?
    If you're wondering how I'm using a PHP based script, the answer will become clear when you ping ubempire.com then ping forum.ubempire.com - they're different ips. One is a php webserver, the other is the ip of my bukkit server.

    :O
     
  28. Offline

    bahihenher

    if i change my port, rogers just finds out a day later and its a real hassle.

    ill be changing to a business ip soon, but until then i need hamachi

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

    codename_B

    Who is this rogers? They sound devious.
    That's fine, just don't expect to be able to serve a website from hamachi and have us people on the normal internet be able to access it.
     
  30. Offline

    bahihenher

    well i have a hamachi ip, and a normal ip, like i can use both.. but how do i link my domain name to my IP.

    and yes 80 and 8107 is forwarded to both my hamachi and normal IP
     
  31. Offline

    JamestheLeet

    Ah, I thought that you had somewhere added php support.
     

Share This Page