Advertisement
DSHunterMC

Untitled

Sep 30th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if(sender instanceof Player && cmd.getName().equalsIgnoreCase("setwarp")) {
  2. if(getConfig().)
  3. if(p.hasPermission("hhf.setwarp.cmd"))
  4. getConfig().set("spawn.world", p.getLocation().getWorld());
  5. getConfig().set("spawn.x", p.getLocation().getX());
  6. getConfig().set("spawn.y", p.getLocation().getY());
  7. getConfig().set("spawn.z", p.getLocation().getZ());
  8. getConfig().set("spawn.pitch", p.getLocation().getPitch());
  9. getConfig().set("spawn.yaw", p.getLocation().getYaw());
  10. saveConfig();
  11. p.sendMessage(ChatColor.GREEN + "Warp has been created!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement