Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (args[0].equalsIgnoreCase("bazagil")) {
- if (claned(p))
- {
- if (getConfig().getString("Klany." + getClan(p) + ".Base.World") != null)
- {
- if (!this.zaproszenia.containsKey(p))
- {
- this.teleporty.put(p, Boolean.valueOf(true));
- final Plugin plugin = this;
- p.sendMessage(this.prefix + "Teleportacja... Nie ruszaj sie !.");
- this.taskId = getServer().getScheduler().runTaskLater(this, new Runnable(){
- public void run()
- {
- if (Main.this.zaproszenia.containsKey(p))
- {
- double x = plugin.getConfig().getDouble("Klany." + Main.this.getClan(p) + ".Base.X");
- double y = plugin.getConfig().getDouble("Klany." + Main.this.getClan(p) + ".Base.Y");
- double z = plugin.getConfig().getDouble("Klany." + Main.this.getClan(p) + ".Base.Z");
- float yaw = plugin.getConfig().getInt("Klany." + Main.this.getClan(p) + ".Base.Yaw");
- float pitch = plugin.getConfig().getInt("Klany." + Main.this.getClan(p) + ".Base.Pitch");
- World world = Bukkit.getWorld(plugin.getConfig().getString("Klany." + Main.this.getClan(p) + ".Base.World"));
- Location loc = new Location(world, x, y, z, yaw, pitch);
- p.teleport(loc);
- p.sendMessage(Main.this.prefix + "Teleportacja udana");
- plugin.getServer().getScheduler().cancelTask(Main.this.taskId);
- }
- }
- }, 60L).getTaskId();
- }
- else
- {
- p.sendMessage(this.prefix + "Juz sie teleportujesz spokojnie.");
- }
- }
- else {
- p.sendMessage(this.prefix + "Ten klan nie ma ustawionej gildijnej bazy !.");
- }
- }
- else {
- p.sendMessage(this.prefix + "Nie jestes w klanie.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment