Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. for (int i = 0; i < 9; ++i) {
  2. player.setVelocity(player.getLocation().getDirection().multiply(0).setY(1.1));
  3. player.getInventory().setItem(i, new ItemManager(Material.COAL).setDisplayName("§8» §3VentyMC.net §8«").build());
  4. }
  5. Bukkit.getScheduler().scheduleAsyncDelayedTask((Plugin)LobbySystem.getInstance(), (Runnable)new Runnable() {
  6. @Override
  7. public void run() {
  8. player.getInventory().clear();
  9. player.sendTitle("§8» §3VentyMC.net §8«", "§3" + player.getDisplayName());
  10. player.playSound(player.getLocation(), Sound.IRONGOLEM_DEATH, 10.0f, 10.0f);
  11. player.playSound(player.getLocation(), Sound.LEVEL_UP, 10.0f, 10.0f);
  12. new PlayerItemsManager().getPlayerJoinItems(player);
  13. player.teleport(LocationManager.getLocation("spawn"));
  14. }
  15. }, 33L);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement