diff options
Diffstat (limited to 'Essentials/test/com/earth2me/essentials/testserver')
4 files changed, 336 insertions, 0 deletions
diff --git a/Essentials/test/com/earth2me/essentials/testserver/Player.java b/Essentials/test/com/earth2me/essentials/testserver/Player.java new file mode 100644 index 000000000..6e18abb88 --- /dev/null +++ b/Essentials/test/com/earth2me/essentials/testserver/Player.java @@ -0,0 +1,152 @@ +package com.earth2me.essentials.testserver; + +import net.ess3.api.IUser; +import net.ess3.api.server.*; + +public class Player implements Player { + + @Override + public IUser getUser() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public String getName() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public String getDisplayName() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean isOnline() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setBanned(boolean bool) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void kickPlayer(String reason) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public World getWorld() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Location getLocation() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Location getEyeLocation() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setFireTicks(int value) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setFoodLevel(int value) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setSaturation(float value) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public int getHealth() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setHealth(int value) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void updateInventory() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public ItemStack getItemInHand() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Location getBedSpawnLocation() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean hasPlayedBefore() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public IInventory getInventory() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean isPlayer() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void sendMessage(String message) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean isOp() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean hasPermission(Permission bukkitPermission) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void sendMessage(String[] string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + +} diff --git a/Essentials/test/com/earth2me/essentials/testserver/Plugin.java b/Essentials/test/com/earth2me/essentials/testserver/Plugin.java new file mode 100644 index 000000000..cb5334da5 --- /dev/null +++ b/Essentials/test/com/earth2me/essentials/testserver/Plugin.java @@ -0,0 +1,69 @@ +package com.earth2me.essentials.testserver; + +import net.ess3.api.server.IPlugin; +import java.io.File; +import java.io.InputStream; + +public class Plugin implements IPlugin { + + @Override + public int scheduleAsyncDelayedTask(Runnable run) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public int scheduleSyncDelayedTask(Runnable run) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public int scheduleSyncDelayedTask(Runnable run, long delay) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public int scheduleSyncRepeatingTask(Runnable run, long delay, long period) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public File getRootFolder() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public File getDataFolder() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void cancelTask(int taskId) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public String getVersion() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Class getClassByName(String name) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public InputStream getResource(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + +} diff --git a/Essentials/test/com/earth2me/essentials/testserver/Server.java b/Essentials/test/com/earth2me/essentials/testserver/Server.java new file mode 100644 index 000000000..eb9a74bdb --- /dev/null +++ b/Essentials/test/com/earth2me/essentials/testserver/Server.java @@ -0,0 +1,89 @@ +package com.earth2me.essentials.testserver; + +import net.ess3.api.server.CommandSender; +import net.ess3.api.server.Player; +import net.ess3.api.server.IServer; +import net.ess3.api.server.World; +import java.util.Collection; +import java.util.Collections; +import java.util.List; + +public class Server implements IServer { + + public Server() + { + } + + + + @Override + public List<World> getWorlds() + { + return Collections.<World>singletonList(new World()); + } + + @Override + public World getWorld(final String name) + { + final World world = getWorlds().get(0); + if (name.equals(world.getName())) { + return world; + } else { + return null; + } + } + + public void addPlayer(final String name) + { + + } + + @Override + public int broadcastMessage(String message) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Collection<Player> getOnlinePlayers() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public CommandSender getConsoleSender() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void dispatchCommand(CommandSender sender, String command) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void banIP(String ip) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public <T> T getServiceProvider(Class<T> clazz) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public String getVersion() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void unbanIP(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + +} diff --git a/Essentials/test/com/earth2me/essentials/testserver/World.java b/Essentials/test/com/earth2me/essentials/testserver/World.java new file mode 100644 index 000000000..d1994c479 --- /dev/null +++ b/Essentials/test/com/earth2me/essentials/testserver/World.java @@ -0,0 +1,26 @@ +package com.earth2me.essentials.testserver; + +import net.ess3.api.server.Location; +import org.bukkit.TreeType; + +public class World implements World { + + @Override + public String getName() + { + return "TestWorld"; + } + + @Override + public boolean generateTree(Location safeLocation, TreeType tree) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public int getHighestBlockYAt(int topX, int topZ) + { + throw new UnsupportedOperationException("Not supported yet."); + } + +} |