Skip to content

Instantly share code, notes, and snippets.

@leonardosnt
Last active August 29, 2015 14:27
Show Gist options
  • Save leonardosnt/d97911daab5f266b50ed to your computer and use it in GitHub Desktop.
Save leonardosnt/d97911daab5f266b50ed to your computer and use it in GitHub Desktop.
package teste;
import org.bukkit.Bukkit;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.bukkit.BukkitUtil;
import com.sk89q.worldedit.util.Location;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.protection.flags.DefaultFlag;
import com.sk89q.worldguard.protection.flags.InvalidFlagFormat;
import com.sk89q.worldguard.protection.flags.LocationFlag;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
public class Teste
{
public static void main(String[] args) throws InvalidFlagFormat
{
ProtectedRegion region = null;
region.setFlag(DefaultFlag.TELE_LOC, new com.sk89q.worldedit.Location(BukkitUtil.getLocalWorld(Bukkit.getServer().getWorld("nome do mundo")), new Vector(x, y, z)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment