Link to the Minecraft Land Generator Main Forum I am the current coder for Minecraft Land Generator. MLG currently DOES NOT work with Bukkit. (And i want to fix that) What MLG does is load the server, read the output, and when it says "[INFO] Done", it sends the text "stop" to it. then it will move the spawn point, and repeat. the problem with bukkit is that sending the "stop" text doesnt work. Code: if (line.contains("[INFO] Done")) {[/S] [S] System.out.println("Stopping server.");[/S] [S] byte[] stop = {'s', 't', 'o', 'p', '\r', '\n'};[/S] [S] OutputStream outputStream = process.getOutputStream();[/S] [S] outputStream.write(stop);[/S] [S] outputStream.flush();[/S] [S]} this is the current code that i have. but bukkit doesn't accept my OutputStream. (nothing happens) You can check out all my code on github here: https://github.com/Morlok8k/MinecraftLandGenerator any ideas? i think the fact that when bukkit normally runs it has a ">" on each line when it expects input is some how messing it up. There have been updates since this original post. Bukkit works now. Thanks for your input![/CODE][/S]
Did you disable jline? You will need to disable jline if you want to be able to send bytes to bukkit's standard input. Add this flag as a java argument: -Djline.terminal=jline.UnsupportedTerminal
Yes, it's the solution. With MinecraftLandGenerator 1.30 + Craftbukkit 677 + Biome 3.0 RC4 My MinecraftLandGenerator.conf : Code: java=java -Xmx1024M -Xms1024M -Djline.terminal=jline.UnsupportedTerminal -cp BiomeBukkit.jar;craftbukkit.jar org.bukkit.craftbukkit.Main serverpath=.
This is just what i am looking for, so just being nosy and asking 'hows the progress?' That is a great idea by restarting the server with different spawn points to generate land. I hope you finish the port
Just to update this forum, multiple versions of this program have been released. Currently on 1.5.0. Yes, it works with Bukkit (but has issues on Windows XP 32-bit, all other operating systems work fine). Link