[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

    Works fine for me.
    Why not change internal port 8107 to external port 80? Seems the simplest way.
    http://gearcraft.dlinkddns.com:8107/
    Atm, that's what people have to use to get to your site

    (p.s. my plugin is working absolutely fine, you just haven't forwarded your ports ideally)

    That'll be $5 :p
     
  3. Offline

    Xlaits

    My ISP blocks Port 80 so I can't use it for webservers/gameservers.

    Plus, I still can't connect to my own website (not using local host).
     
  4. Offline

    codename_B

    But other people can... why is it so important YOU connect to it?

    P.S. it looks like you're running without a BukkitHTTPD.jpg - you don't want to do this as it will spew errors at you.
     
  5. Offline

    Xlaits

    Well, if other people can, I might as well leave it alone. But I've found that my sister's pc, on the SAME router as myself, cannot access it, nor my Minecraft server...
     
  6. Offline

    codename_B

    She should probably use the internal ip of your computer on the router network to connect.
     
  7. Offline

    Xlaits

    She does, and gets some odd JavaExeption error, and has her minecraft close on her...
     
  8. Offline

    codename_B

    I'm sorry that I can't be more help in your situation, but there's nothing more I can do for you.
    Have you considered renting a server? My server runs from http://pigsaddle.com 's servers and it's super reliable with absolutely zero lag.
     
  9. Offline

    Xlaits

    With what money? I haven't a job, and no matter how hard I try, I can't get one.
    I'd rather buy one, and save money, anyway...
     
  10. Offline

    codename_B

    BUY a server and SAVE money? XD

    Where are you gonna get like 5k dollars? lol, it's far far far cheaper to rent one these days, especially if you're only gonna be using it for a year or two.
     
  11. Offline

    Zelif

    @Xlaits Just checking that even using localhost you have to enter the port ie. localhost:8107
    Also with the internal ip as well(your sisters computer) ei. 192.168.0.10:8107 Make sure you haven't changed the normal server port as CodeB has asked to Add a different port setting.


    Also I don't know about others but I have never been able to connect to a local machine using an external IP or web address.


    Codename_B great plugin, once I get some spare time I will be looking at playing with the banners. I don't understand people asking for php when they can run a normal website with it and either use this as a landing page or just use that as the MC webhost. Will look at donating once I get my next paycheck ;D

    EDIT: Oh and most ISP's block port 80 by default just ring them or send them an email to see if they are kind enough to enable it. (Lie and say you host a business sometimes gets you it easier :D)
     
    Xlaits likes this.
  12. Offline

    codename_B

    Great post Zelif, thanks for the comments :) VERRYYY helpful advice indeed about the lying to your ISP ;) hey, running a minecraft server is kind of a small business :p
     
    Xlaits likes this.
  13. Offline

    Xlaits

    Thanks for that, Zelif. I'll look into it. I have Comcast, which is extremly Nazi about their port 80, only enabling it if you have their $180/mo. Buisiness Class internet services. And, as I stated, I'm jobless (hoping to get one today, putting in my apps. Wish me luck.), and therefore have no money to pay for my own internet.

    Yeah, and renting one costs money over time, when you can get server parts cheap online at places like beezid and eBay.

    (And in case you're all wondering tl;dq = Too Long; Didn't Quote.)
     
  14. Offline

    codename_B

    My server is public because I'm poor too, I let the users who play on it pay for it with donations, and it's managed to keep itself going month by month so far.
     
  15. Offline

    wolf3five9

    how do i change the port and put my dns name in so the team can see there stats online if they want to you show how be none of is there
     
  16. Offline

    codename_B

    Read the whole post, it explains it all.
     
  17. Offline

    wolf3five9

    ok i download the plugin and was going to change the ip and the port # but can not find it anywhere to change. the name is wolf3five9
     
  18. Offline

    codename_B

    You need to add the lines yourself to server.properties like it says in the post.
     
  19. Offline

    wolf3five9

    ok in the server.properties that where i got f up dam i am stuid
     
  20. Offline

    Mighty Mackinac

    Apparently. Because not being able to read or spell are good indicators of ignorance and stupidity. If you want help without feeling like a dumbass, take the time to read all previous posts, and learn to use words to communicate clearly. It goes a long way in making plugin authors feel like their time isn't being wasted. They have far better things to do, rather than answer questions that have already been addressed.
     
  21. Offline

    scar_

    thx dude
    this is real cool to play arond with.
    been working on this for 3 days now.
    not finished yet but take a look.
    http://vda.servebeer.com:8107/
     
  22. Offline

    codename_B

    Thanks, if you like that, you should check out our latest plugin :)
     
  23. Offline

    jjtcomkid

    I am so far running this plugin without any problems, but I would like to remove plugins from the list that the banner shows (CraftBukkitUpToDate for example). Is that possible?
     
  24. Offline

    codename_B

    Add this line to server.properties
    server-dns=my.ip.com
    It's all there in the original post mate :)
    Also no, there is currently no way to remove plugins from there. It's all random.
     
  25. Offline

    dep2011

    please can you update your main mirror link as its only v0.0.3 and it's bugged with the latest bukkit build via 818.
     
  26. Offline

    codename_B

    What is the exact error you are having, the main mirror has been updated.
     
  27. Offline

    dep2011

    main mirror is still plugin version 0.0.3, well atleast it says so in game and the error i had has magically fixed itself :/
     
  28. Offline

    Parlez

    help?
    2011-06-05 15:14:57
    [SEVERE] Exception in thread "Thread-10" 2011-06-05 15:14:57
    [SEVERE] java.lang.StringIndexOutOfBoundsException: String index out of range: 5 2011-06-05 15:14:57
    [SEVERE] at java.lang.String.charAt(Unknown Source) 2011-06-05 15:14:57
    [SEVERE] at visit.ube.pigsaddle.com.ImageCreator.getRGB(ImageCreator.java:15) 2011-06-05 15:14:57
    [SEVERE] at visit.ube.pigsaddle.com.ImageCreator.main(ImageCreator.java:39) 2011-06-05 15:14:57
    [SEVERE] at visit.ube.pigsaddle.com.BukkitHTTPDThread.run(BukkitHTTPDThread.java:108) 2011-06-05 15:14:57
    [SEVERE] at java.lang.Thread.run(Unknown Source)\
    running craftbukkit 820 and minecraft server 1.6.6, as well as bananamaprender.
    whats happening? i really have no idea.
     
  29. Offline

    codename_B

    You didn't follow the instructions and setup the correct folders did you?

    Oh no you did not, the error is on your side. Place a BukkitHTTPD.jpg into your plugins/BukkitHTTPD folder like it says in the OP.
     
  30. Offline

    rymate1234

    How to get php scripts in bukkithttpd!
    1. Get some freee hosting with php and MySQL (x10hosting is good)
    2. setup the pghp scripts on the free hosting
    3. Set this html as your home page
    HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
      <meta content="text/html; charset=ISO-8859-1"
    http-equiv="content-type">
      <title>My Cool page title</title>
    </head>
    <body>
    <iframe src="http://www.example.com" frameborder="0"
    height="1000" width="100%"></iframe>
    </body>
    </html>
    replace www.example.com with your free hosts domain name
    4. Enjoy!
     
  31. Offline

    codename_B

    Nice workaround!
     

Share This Page