Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  2. String x = plugin.getConfig().getString("spawn.x");
  3. String y = plugin.getConfig().getString("spawn.y");
  4. String z = plugin.getConfig().getString("spawn.z");
  5.  
  6. Player p = (Player) sender;
  7.  
  8.  
  9.  
  10. p.teleport(new Location(Bukkit.getWorld("world"), x, y, z));
  11. return true;
  12.  
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement