[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

    Hi, I've taken the download link offline while I upload v0.0.4, check back in about 5 minutes

    EDIT: online

    The source is included in the .jar if you want to mess around with image placemant/size etc.
    There's no need to show the online status of the server, as the link to the image will be a dead link if the server is offline!

    @Moyhe, I didn't even realise anyone used it :p
     
  3. Offline

    Mohye

    Thank you!
     
  4. Offline

    codename_B

    Feel free to let me know what you do with it, I'm always interested :)
     
  5. Offline

    dark1256

    It is working :D

    edit: the imagine is not working on this website???
    edit2: ah it was blocked by the firewall...
     
  6. Offline

    codename_B

    Yay! :D You know you can turn an image into a link too in your signature? Just highlight the image then click the little "make link" button thingy.

    Anyway looks great :D

    Your server has to be online for it to work.

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

    Champion0912

    Hi!

    I am sorry to say it, but i don't understand a shit of how to do this! I got the Plugin and entered it on my computer... But didn't uderstand what i should write in the prop. file. currently i writed this:

    http-daemon-port: 80
    server-name=ManiaMine
    server-dns=83.222.249.214 (also tryed 83.222.249.214.com s in the post)
    text-color=FFFFFF

    I can't enter the webpage from m other computer (that is on another network ten the Server host computer)


    Btw: good night from Norway (02:02am) XD
     
  8. Offline

    codename_B

    Show me what the server says when its starting up?
     
  9. Offline

    Champion0912

    Here is my whole server... Maybe you can find out whats wrong.

    <Edit by Moderator: Redacted mediafire url>

    Btw. Here is what the server says on startup:

    <Edit by Moderator: Redacted mediafire url>

    Thank you SO much for your help :)
     
    Last edited by a moderator: Dec 14, 2016
  10. Offline

    codename_B

    What operating system? I've explained that port 80 ONLY works if you're running as root/system administrator on Windows/Linux otherwise you need to set up an iptables rule to forward port 8107 internally to 80 externally.

    I'm not going to look at all your files as it just looks like you're running it wrong, as the iptables rule is the preferred way to do things (go read my OP in detail)
     
    Last edited by a moderator: Dec 14, 2016
  11. Offline

    Champion0912


    I am currently usin a vps, A centos 1.6 Linux.

    i am admin on the computer.

    do i have to use an other port?
    An what do other computers have to type in to the browser to enter th website?

    btw. i am new here... what does op mean?
     
  12. Offline

    codename_B

    OP=original post.
    Are you running as root on the VPS? If you want me to set it up for you, I can do that for a small fee, but I'd really rather you go and read about iptables yourself.
    http://forums.bukkit.org/threads/ad...-now-with-more-themable-signatures-803.17201/
    If you run as port 8107 then people can connect via the IP of the vps on port :8107.
    If you run as port 80 then people can connect via the IP of the vps on port :80.
    IPs do not have .com in them, so why you added that is a little beyond me but nevermind.
     
  13. Offline

    Champion0912


    THANK YOU FOR THE HELP!

    I am going to try some more to figure it out now...

    And yes i am running as root on the vps.

    Again thx!

    I will contact if i need more help!

    :D



    I am happy to say that i made it! :D

    I Finnaly built the web site and entered it!

    Thx a lot

    :D

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

    codename_B

    Awesome! Link?
     
  15. Offline

    Champion0912

  16. Offline

    codename_B

  17. Offline

    Xlaits

    If someone could possibly help me set this up, I'd appreciate it.
    PM me, and I'll contact you back with my MSN or STEAM account...
     
  18. Offline

    Mighty Mackinac

    Alright loving the banner creation, but I do have a question as to how you changed the font?
     
  19. Offline

    codename_B

    No idea, its the system font of the box I'm on. I'm working on custom TTF inclusion atm.
     
  20. Offline

    Mighty Mackinac

    That is awesome! Just thought of another idea, if you would be so kind. In addition to stats and your mod of MineQuery, could also add support for a plugins list? a couple of my members have been asking for one.
     
  21. Offline

    codename_B

    A plugins list? Like just something you can query with javascript and print on a webpage?

    EDIT: have you tried having them type /plugins
     
  22. Offline

    Mighty Mackinac

    Exactly what I was thinking. Some of the guys would like that command. But others want it on a site so they can go look it all the info. I have a bunch of different things running that shows almost every aspect of the server, and this would help complete the collection.
     
  23. Offline

    codename_B

    Btw, /plugins is already a command, and the plugin list is already included as part of MinequeryPlus - do you really need it again?
     
  24. Offline

    Mighty Mackinac

    Oh well shoot. Never mind then. I just need to figure out the plugin part of minequeryplus then.
     
  25. Offline

    Xlaits

    And, I go ignored. -waves arms frantically- HELP!?

    I did all the installation steps (Trying to phase out hamachi, as well) and still can't get the website to show, nor minecraft to connect to the server program.
     
  26. Offline

    codename_B

    Can you connect on localhost?
     
  27. Offline

    Xlaits

    No, not even on local host can I connect... though I'll try again, just to make sure...

    -EDIT-

    I CAN connect on localhost.
     
  28. Offline

    codename_B

    Have you forwarded your ports?
     
  29. Offline

    Xlaits

    Yes I have. I'll even pull a picture for you, if you'd like...
     

    Attached Files:

  30. Offline

    codename_B

    What is your external IP?
     
  31. Offline

    Xlaits

    68.54.192.62

    Or, you could use gearcraft.dlinkddns.com
     

Share This Page