Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon3eK committed Aug 21, 2023
1 parent d51db06 commit 8ca7ffb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions src/main/java/xyz/szymon3ek/betterhomes/BetterHomes.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public void createHome(int home, Player player) {
player.sendMessage("§a§l✓ §aUstawiono home! §a§l✓\n" + "§7X: §e" + Math.round(player.getLocation().getX() * 100.0) / 100.0 +" §7Y: §e" + Math.round(player.getLocation().getY() * 100.0) / 100.0 + " §7Z: §e " + Math.round(player.getLocation().getZ() * 100.0) / 100.0);
player.sendTitle("§a§l✓ §aUstawiono home! §a§l✓", "§7X: §e" + Math.round(player.getLocation().getX() * 100.0) / 100.0 +" §7Y: §e" + Math.round(player.getLocation().getY() * 100.0) / 100.0 + " §7Z: §e " + Math.round(player.getLocation().getZ() * 100.0) / 100.0, 1, 60, 1);
player.playSound(player.getLocation(), "minecraft:entity.player.levelup", 1, 1);
closeEQ(player);

player.closeInventory();


}
Expand All @@ -186,8 +186,8 @@ public void deleteHome(int home, Player player) {
player.sendMessage("§c§l✗ §cUsunieto home! §c§l✗ \n" + "§7X: §e" + x +" §7Y: §e" + y + " §7Z: §e " + z);
player.sendTitle("§c§l✗ §cUsunieto home! §c§l✗", "§7Pomyslnie usunales home!", 1, 60, 1);
player.playSound(player.getLocation(), "minecraft:block.lava.extinguish", 1, 1);
closeEQ(player);

player.closeInventory();

}

Expand All @@ -211,13 +211,20 @@ public void teleportHome(int home, Player player) {

player.teleport(new org.bukkit.Location(Bukkit.getWorld(world), x, y, z, yaw, pitch));
player.playSound(player.getLocation(), "minecraft:entity.enderman.teleport", 1, 1);
player.sendTitle("", "§aZostales przeteleportowany!", 1, teleporttime * 20, 1);
player.sendTitle("", "§aZostales przeteleportowany!", 1, 60, 1);
closeEQ(player);

}

public void closeEQ(Player player) {
player.closeInventory();
player.updateInventory();
}





}


Expand Down
Binary file modified target/classes/xyz/szymon3ek/betterhomes/BetterHomes.class
Binary file not shown.

0 comments on commit 8ca7ffb

Please sign in to comment.