PrevailPots/PrevailBunkers/out/com/prevailpots/bunkers/utils/RegionUtils.java
disclearing ebe5b6c5ad er
2019-01-21 21:53:08 +00:00

18 lines
703 B
Java

package com.prevailpots.bunkers.utils;
import com.prevailpots.bunkers.config.*;
import com.prevailpots.bunkers.game.*;
import com.sk89q.worldedit.bukkit.selections.*;
import org.bukkit.*;
public class RegionUtils
{
public static CuboidSelection getSelectionFromRegion(final World w, final Team team) {
final Location p1 = new Location(w, ConfigurationService.getRegions(team)[0].getX(), 0.0, ConfigurationService.getRegions(team)[0].getZ());
final Location p2 = new Location(w, ConfigurationService.getRegions(team)[1].getX(), 255.0, ConfigurationService.getRegions(team)[1].getZ());
final CuboidSelection sel = new CuboidSelection(w, p1, p2);
return sel;
}
}