use of com.skelril.skree.service.RespawnService in project Skree by Skelril.
the class ZoneMasterOrb method saveLocation.
private void saveLocation(Player player) {
RespawnService respawnService = Sponge.getServiceManager().provideUnchecked(RespawnService.class);
respawnService.push(player, player.getLocation());
}
use of com.skelril.skree.service.RespawnService in project Skree by Skelril.
the class LegacyZoneBase method remove.
@Override
public Clause<Player, ZoneStatus> remove(Player player) {
RespawnService respawnService = Sponge.getServiceManager().provideUnchecked(RespawnService.class);
Location<World> newLocation = respawnService.pop(player).orElse(respawnService.getDefault(player));
player.setLocation(newLocation);
return new Clause<>(player, ZoneStatus.REMOVED);
}
use of com.skelril.skree.service.RespawnService in project Skree by Skelril.
the class ZoneTransitionalOrb method saveLocation.
private void saveLocation(Player player, Location<World> location) {
RespawnService respawnService = Sponge.getServiceManager().provideUnchecked(RespawnService.class);
respawnService.push(player, location);
}
Aggregations