summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java23
1 files changed, 22 insertions, 1 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java
index 4e61bdac9..a22615550 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawn.java
@@ -5,6 +5,7 @@ import net.ess3.api.IEssentials;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
+import org.bukkit.Location;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.event.Event;
@@ -17,7 +18,7 @@ import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
-public class EssentialsSpawn extends JavaPlugin
+public class EssentialsSpawn extends JavaPlugin implements IEssentialsSpawn
{
private static final Logger LOGGER = Bukkit.getLogger();
private transient IEssentials ess;
@@ -70,4 +71,24 @@ public class EssentialsSpawn extends JavaPlugin
{
return ess.onCommandEssentials(sender, command, commandLabel, args, EssentialsSpawn.class.getClassLoader(), "com.earth2me.essentials.spawn.Command", "essentials.", spawns);
}
+
+ @Override
+ public void setSpawn(Location loc, String group)
+ {
+ if (group == null)
+ {
+ throw new IllegalArgumentException("Null group");
+ }
+ spawns.setSpawn(loc, group);
+ }
+
+ @Override
+ public Location getSpawn(String group)
+ {
+ if (group == null)
+ {
+ throw new IllegalArgumentException("Null group");
+ }
+ return spawns.getSpawn(group);
+ }
}