Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ly-nxs committed Mar 2, 2024
1 parent d9b69aa commit 7fb2701
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/com/lynx/skyblocktp/commands/tpcommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,24 @@ public boolean onCommand(CommandSender sender, Command command, String s, String
sender.sendMessage("Island is finished... teleporting");
player.teleport(location);
sender.sendMessage("Teleported!");
Location respawn = new Location(player.getWorld(), x,y+2,z);
player.setRespawnLocation(location);
player.getInventory().addItem(new ItemStack(Material.LAVA_BUCKET, 1));
player.getInventory().addItem(new ItemStack(Material.ICE, 1));
player.getInventory().addItem(new ItemStack(Material.BONE_MEAL, 16));
int h = (int)(Math.random()*3)+1;
if(h == 3){
x += 128;
z += 128;
x += 256;
z += 256;
y = 64;
} else if (h == 2) {
x += 128;
z -= 128;
x += 256;
z -= 256;
y = 32;
} else{
x -= 64;
z -= 64;
x -= 128;
z -= 128;
y = 128;
}
config.usedPlayer(player);
}
Expand Down

0 comments on commit 7fb2701

Please sign in to comment.