WebServer
The WebServer plugin allows your Minecraft server to become a website very easily. Built on the same technology Dynmap is powered by, this plugin brings a Jetty HTTP server right into your Bukkit one. What does that actually mean? It means that your server is now a fully customizable website. You can create and modify HTML files accessible from any browser in the world!
How do I access my new website?
For starters, the website will use your server's IP address. However, that's not the only thing you'll be putting into your browser. To connect to any IP you have to travel through a port. You specify that port immediately after the IP, so if I wanted to connect to the IP 127.0.0.1 (a.k.a. localhost) and I wanted to connect over port 21, the complete address would be 127.0.0.1:21. If I did not include the :21, a default value would be use. This varies depending on the service you use. Minecraft servers by default use port 25565. HTTP uses port 80 by default. For some security reason you can't open port 80 with this plugin, so you'll have to choose another one (obviously not what your MC server is running on). So to connect you would put IP:port in your browser. Make sure you port forward the port you're using, too!
What file does my website point to?
The first thing you need to know is that every file I mention here will be auto generated if they're not present. The folder your website points to is called the resource base. By default, it's in ./plugins/WebServer/web/. The period before it is important because without it the resource base would point to C:/plugins/WebServer/web/. When your first access your website, it will redirect you to the index file, which is by default called index.html and is in the resource base, so it's in ./plugins/WebServer/web/index.html. If the user tries to access a page that isn't there, a 404.png will appear instead. You can change the default png by putting a different one in the resource base, by default ./plugins/WebServer/web/404.png.
How do I configure it?
Upon first use, a config file will be generated at /plugins/WebServer/config.yml. In it, you can change what port the web server operates on, where the resource base is, and what the default index file is. The default configuration file is shown below:
port: 8080
resource base: ./plugins/WebServer/web/
index: index.htmlport: 25566
resource base: ./my website/
index: index.txtIf you have any additional questions, feel free to comment, PM me, or email me at jsncoding@gmail.com.
-
View User Profile
-
Send Message
Posted Sep 6, 2013I love it... Make this plugin going, and Make other ones too!
-
View User Profile
-
Send Message
Posted Jun 30, 2013Love It!
Though very simple look, it did help complete a fix to a problem I had from moving from one host to another.
Originally, I had my ScreenShot plugin save the pictures to the folder of the webserver that my host provided for free. That way players could see the screenshots that are taken ingame at any time.
When we moved hosts, the new host had the webserver on a completely different machine. They don't have a way to sync a directory from my MC server to the webserver, which caused the problem of being unable to host the images.
With this, it worked just like I needed, minus the fact that the MC server has to be up and running at all times for players to see what it hosts.
Thanks again!
-
View User Profile
-
Send Message
Posted Jun 21, 2013@stevenmlittle123
You can replace the 404.png with whatever you want. Other than that... not really. I'm planning on having a 404.html/php that you'll be able to work with.
-
View User Profile
-
Send Message
Posted Jun 21, 2013@Minecraft1415926
Public Domain doesn't necessarily mean open source. And anyway the current state of the source code is somewhat flux and I've been experimenting with many new configurations.
-
View User Profile
-
Send Message
Posted Jun 21, 2013Is there a way we can make a custom 404 to work with this plugin? I have try some different ways and none have worked.
-
View User Profile
-
Send Message
Posted Jun 20, 2013Where is the source code for this plugin? It's license is the Public Domain.
-
View User Profile
-
Send Message
Posted May 18, 2013@tankerkiller125
Really? Is the library a web app or does it take a PHP string/file and return/print an output?
-
View User Profile
-
Send Message
Posted May 18, 2013Hey its me I lost your e-mail address but I might have a PHP library you can use here very soon as well as a webpage with some PHP in it. Just be warned though its not the greatest PHP library I've done!
-
View User Profile
-
Send Message
Posted Apr 6, 2013damn! Want this PHP for 1.5! Think itl work great with CoreProtectWebInterface!
-
View User Profile
-
Send Message
Posted Mar 19, 2013No PHP? Well, that is definitely a slight bust. Hope you learn it fast :D. I love the idea for this.
-
View User Profile
-
Send Message
Posted Feb 20, 2013May I please have the PHP version because I would like to make a full blown website using thsi plugin but I can't make a user registration with this In fact I can't even embed the PHP file into the html using the embed thing
-
View User Profile
-
Send Message
Posted Feb 14, 2013PHP has turned out to be a bit more difficult than I anticipated. I'm still working hard on it though and will release as soon as I can ensure everything works.
-
View User Profile
-
Send Message
Posted Feb 8, 2013Hello, I got this plugin working test it out at play.survivalminers.com
-
View User Profile
-
Send Message
Posted Feb 4, 2013PHP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
View User Profile
-
Send Message
Posted Jan 8, 2013@Jsn_man
I would like a cpoy of the php ver. :) Really good work with your plugin. Please release the php ver.
-
View User Profile
-
Send Message
Posted Dec 30, 2012@forresthopkinsa
I had a working setup with PHP, but the index file didn't work and the whole thing required a lot of libraries. If you still want it, just tell me and I'll remake the version and upload it.
-
View User Profile
-
Send Message
Posted Dec 30, 2012Please!!! PHP!!! Please!!! Aaaahh!! I beg of you, php!! :'D
-
View User Profile
-
Send Message
Posted Dec 29, 2012Love the default 404.png! I got it on port 80 by running the server as root, but that's not really an option for a big server.
-
View User Profile
-
Send Message
Posted Nov 18, 2012PHP support would be awesome, thanks for this ingenious plugin!
-
View User Profile
-
Send Message
Posted Nov 8, 2012@Jsn_man
thank you.