Essentials/EssentialsSpawn/src/main/java/com/earth2me/essentials/spawn/IEssentialsSpawn.java
Josh Roy 9a23f806fe
Refactor Project to Gradle (#3720)
Gradle is better than Maven, don't @ me. okay but actually it's [faster](https://www.youtube.com/watch?v=atuFSv2bLa8&feature=youtu.be&t=77), compiles and tests in parallel more efficiently, and more epic stuff).
2020-11-25 20:24:24 +00:00

26 lines
795 B
Java

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
*/
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
*/
Location getSpawn(String group);
}