summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com/earth2me/essentials/spawn/IEssentialsSpawn.java
blob: a7c43bcb01494be7103d5faa503fce11c8ffb9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}