mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-06-26 06:35:10 +02:00
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).
26 lines
795 B
Java
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);
|
|
}
|