SHARE
TWEET

Untitled

a guest Jan 28th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       public static void setSpawn(Location loc, int number) {
  2.           LocationFileSettings.set("Spawns." + number + ".World", loc.getWorld().getName());
  3.             LocationFileSettings.set("Spawns." + number + ".X", (new StringBuilder(String.valueOf(loc.getX()))).toString());
  4.             LocationFileSettings.set("Spawns." + number + ".Y", (new StringBuilder(String.valueOf(loc.getY()))).toString());
  5.             LocationFileSettings.set("Spawns." + number + ".Z", (new StringBuilder(String.valueOf(loc.getZ()))).toString());
  6.             LocationFileSettings.set("Spawns." + number + ".Yaw", (new StringBuilder(String.valueOf(loc.getYaw()))).toString());
  7.             LocationFileSettings.set("Spawns." + number + ".Pitch", (new StringBuilder(String.valueOf(loc.getPitch()))).toString());
  8.            
  9.             saveConfig();
  10.       }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top