From 2ee590d85cbec87f58430dc18576b283044035e6 Mon Sep 17 00:00:00 2001 From: Dabo Ross Date: Thu, 24 Oct 2013 04:40:58 -0700 Subject: Add IEssentialsSpawn class for API for Essentials Spawn with two methods, getSpawn(String) and setSpawn(String, Location). Implement IEssentialsSpawn in EssentialsSpawn. --- .../essentials/spawn/IEssentialsSpawn.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 EssentialsSpawn/src/com/earth2me/essentials/spawn/IEssentialsSpawn.java (limited to 'EssentialsSpawn/src/com/earth2me/essentials/spawn/IEssentialsSpawn.java') diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/IEssentialsSpawn.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/IEssentialsSpawn.java new file mode 100644 index 000000000..a7c43bcb0 --- /dev/null +++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/IEssentialsSpawn.java @@ -0,0 +1,27 @@ +package com.earth2me.essentials.spawn; + +import org.bukkit.Location; +import org.bukkit.plugin.Plugin; + + +public interface IEssentialsSpawn extends Plugin +{ + + /** + * Sets the spawn for a given group to a given location. + * + * @param loc The location to set the spawn to + * @param group The group to set the spawn of, or 'default' for the default spawn + * @throws IllegalArgumentException If group is null + */ + public void setSpawn(Location loc, String group); + + /** + * Gets the spawn location for a given group. + * + * @param group The group to get the spawn of, or 'default' for the default spawn + * @return The spawn location set for the given group + * @throws IllegalArgumentException If group is null + */ + public Location getSpawn(String group); +} -- cgit v1.2.3