From 84f7c6c8d22f9902e3095d0f6e8ac680572e02de Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Tue, 21 Dec 2010 16:52:15 +0000 Subject: [PATCH] Initial structure --- src/org/bukkit/craftbukkit/CraftServer.java | 25 +++++++++++++++++++++ src/org/bukkit/craftbukkit/Main.java | 16 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/org/bukkit/craftbukkit/CraftServer.java create mode 100644 src/org/bukkit/craftbukkit/Main.java diff --git a/src/org/bukkit/craftbukkit/CraftServer.java b/src/org/bukkit/craftbukkit/CraftServer.java new file mode 100644 index 0000000000..68680601f1 --- /dev/null +++ b/src/org/bukkit/craftbukkit/CraftServer.java @@ -0,0 +1,25 @@ + +package org.bukkit.craftbukkit; + +import org.bukkit.Server; +import net.minecraft.server.MinecraftServer; + +public class CraftServer implements Server { + private final String name = "CraftBucket"; + private String version; + MinecraftServer server; + + protected CraftServer(MinecraftServer instance, String ver) { + server = instance; + version = ver; + } + + public String getName() { + return name; + } + + public String getVersion() { + return version; + } + +} diff --git a/src/org/bukkit/craftbukkit/Main.java b/src/org/bukkit/craftbukkit/Main.java new file mode 100644 index 0000000000..d2543b5e19 --- /dev/null +++ b/src/org/bukkit/craftbukkit/Main.java @@ -0,0 +1,16 @@ + +package org.bukkit.craftbukkit; + +import net.minecraft.server.MinecraftServer; + +public class Main { + public static void main(String[] args) { + // Todo: Installation script + + try { + MinecraftServer.main(args); + } catch (Throwable t) { + t.printStackTrace(); + } + } +}