Does this seem like a good rough design for a minecraft server wrapper program?


Wilson Mar
25/12/2015 9:47 am
HOME ยป Programming Languages

I am doing some research on how to write a Minecraft server wrapper program. Right now I run a minecraft server with the minecraft_server.jar file from Minecraft.net. When I want to execute complex commands I usually draft them in a text editor and copy and paste them into my Mac's terminal where the server is running. This more tedious than I would like it to be, so I have decided to see if it would be feasible to write a program that will run the server and read to the server commands that I have composed in a file. I think this is basically like enabling me to make scripts for my server.

Here is an illustration of the basic idea. I would communicate with the server wrapper program, and the server wrapper program would communicate with the server sending it my commands and also running scripts of commands for me.

communication
schematic

Here is a sketch of the GUI I would like to build. It would show the normal server output which currently is fed to the console window running the server. It also has a field for allowing me to run commands as usual. Next there is a selectable list of scripts, a button that prompts the user for a script, and a button that will run the selected script.

GUI layout

There may be programs out there on the internet that already do this type of thing, but I am interested in writing this to practice my programming/Java skills. Some classes that I think I will be using are Runtime, ProcessBuilder, JFrame, other Swing stuff, and others.

Write now I have three classes:

  • MinecraftServerWrapper,
  • ServerOutputThread, and
  • ServerInputThread.

MinecraftServerWrapper is the main class which uses ProcessBuilder to execute minecraft_server.jar, then it creates a ServerOutputThread instance and a ServerInputThread instance which take in the process and access its input and output streams to read from System.in and write to the server's input stream and take the server's output stream and writes it to System.out. My next step is to send that output to a GUI and be able to use the GUI to send the input to the server.

Question: I am primarily concerned about how much this kind of application can handle, i.e., how long of scripts could it handle at once. Does this approach seem reasonable, or does it seem like I might be missing something conceptually?


Related to : Does this seem like a good rough design for a minecraft server wrapper program?
Does this seem like a good rough design for a minecraft server wrapper program?
25/12/2015 9:47 am by Wilson Mar in Programming Languages

I am doing some research on how to write a Minecraft server wrapper program. Right now I run a minecraft server with the minecraft_server.jar file from Minecraft.net. When I want to execute complex commands I usually draft them in a text editor and copy and paste them into my Mac's terminal where


win32 window wrapper framework design - is this approach good or what ?
by Barry in Programming Languages
I am designing a framework that is C++, and tries to wrap the Win32 window functions and all there is to them. Sort of MFC CWnd alternative. The goals are to make it equally easy to program, and smaller and faster at run-time, and using STL and templates where appropriate.
For this a chose the
Proccesor good for Minecraft server hosting?
by monkee in Programming Languages
Proccesor good for Minecraft server hosting?
 
Well, is this proccsor good for hosting multipl minecraft server
Xeon i7 W3520
Thanks

Going about programming a minecraft server status checking program
by David in Programming Languages

I'm wanting to make a program which allows for me to check the status of Minecraft servers whether they're online, offline or full. How would I go about doing so? I'm thinking PHP server side, Python client side and SQL as server?


I need some major advice on what needs to be done to a


Host Minecraft Server @ WooServers! Grab a Minecraft Dedicated Server Now! :
by Rob Northen in Programming Languages

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>&
Host Minecraft Server with WooServers! Grab a Minecraft Server for the Best Price!
by drnickriviera in Programming Languages
Host Minecraft Server with WooServers! Grab a Minecraft Server for the Best Price!
 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>&g
Host Minecraft Server with WooServers! Grab a Minecraft Server for the Best Price! :
by Indiana in Programming Languages
Host Minecraft Server with WooServers! Grab a Minecraft Server for the Best Price!
 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>&g
Host Minecraft Server @ WooServers! Grab a Minecraft Dedicated Server Now!
by Igal in Programming Languages

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>&
How to Set Up a Simple No-Stress Minecraft Server with Minecraft Realms
24/12/2015 7:55 am by FallenHero in Programming Languages

There are a lot of ways to go about hosting a Minecraft game but it’s tough to beat the simplicity of buying a server directly from Mojang, the


How good Design a program
by mhedberg in Programming Languages
Hi
This is my first post on this forum,before anything, thanks to all for contributing on this forum.
I am newbie in C programming.Before starting to write a program I want to know more about "How good design a program".
May you give me some hints and basic references about
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .