Advertisement
Pablo380YT

Untitled

Apr 29th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. ConfigManager cm = new ConfigManager(plugin, p);
  2. FileConfiguration f = cm.getConfig();
  3. Location loc = p.getLocation();
  4. Location loc1 = p.getLocation();
  5. Location loc2 = p.getLocation();
  6.  
  7. if(spawns.getName().equals("§3Multi§6Spawns")) {
  8. if(clicked.getType() == Material.GRASS) {
  9. if(f.equals("spawn".contains("Spawn"))) {
  10. e.setCancelled(true);
  11. p.closeInventory();
  12. p.teleport(loc);
  13. p.sendMessage("Teletransportando");
  14. } else {
  15. if(f.equals("spawn".contains("Barco"))) {
  16. e.setCancelled(true);
  17. p.closeInventory();
  18. p.teleport(loc1);
  19. p.sendMessage("Teletransportando");
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement