private void setBiome(CommandSender sender, IslandInfo islandInfo, String biome) { if (uSkyBlock.getInstance().setBiome(islandInfo.getIslandLocation(), biome)) { islandInfo.setBiome(biome); sender.sendMessage( tr("\u00a7eChanged biome of {0}s island to {1}.", islandInfo.getLeader(), biome)); } else { islandInfo.setBiome("OCEAN"); sender.sendMessage( tr("\u00a7eChanged biome of {0}s island to OCEAN.", islandInfo.getLeader())); } sender.sendMessage(tr("\u00a7aYou may need to go to spawn, or relog, to see the changes.")); }
private void setBiome( CommandSender sender, PlayerInfo playerInfo, IslandInfo islandInfo, String biome) { if (playerInfo == null || !playerInfo.getHasIsland()) { sender.sendMessage(tr("\u00a74That player has no island.")); return; } if (uSkyBlock.getInstance().setBiome(playerInfo.getIslandLocation(), biome)) { islandInfo.setBiome(biome); sender.sendMessage( tr("\u00a7e{0} has had their biome changed to {1}.", playerInfo.getPlayerName(), biome)); } else { islandInfo.setBiome("OCEAN"); sender.sendMessage( tr("\u00a7e{0} has had their biome changed to OCEAN.", playerInfo.getPlayerName())); } sender.sendMessage(tr("\u00a7aYou may need to go to spawn, or relog, to see the changes.")); }