Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Location redSpawn;
- Location blueSpawn;
- public void loadRedSpawn(Player player) {
- String world = cfg.getString("DTF.RedSpawn.world");
- double x = cfg.getDouble("DTF.RedSpawn.x");
- double y = cfg.getDouble("DTF.RedSpawn.y");
- double z = cfg.getDouble("DTF.RedSpawn.z");
- World w = Bukkit.getWorld(world);
- redSpawn = new Location(w, x, y, z);
- player.teleport(redSpawn);
- }
- public void loadBlueSpawn(Player player) {
- String world = cfg.getString("DTF.BlueSpawn.world");
- double x = cfg.getDouble("DTF.BlueSpawn.x");
- double y = cfg.getDouble("DTF.BlueSpawn.y");
- double z = cfg.getDouble("DTF.BlueSpawn.z");
- World w = Bukkit.getWorld(world);
- blueSpawn = new Location(w, x, y, z);
- player.teleport(blueSpawn);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement