Removed warning on biome command

This commit is contained in:
Fabrizio La Rosa 2020-07-03 15:08:53 +02:00
parent 9a3b800f5f
commit e332b8aea9
2 changed files with 1 additions and 12 deletions

View File

@ -46,13 +46,6 @@ public class SetBiomeCommand extends SubCommand {
Config config = fileManager.getConfig(new File(skyblock.getDataFolder(), "language.yml"));
FileConfiguration configLoad = config.getFileConfiguration();
if(ServerVersion.isServerVersionAtLeast(ServerVersion.V1_16)){
messageManager.sendMessage(sender, "&bSkyBlock &8| &6Warning&8: &eThis feature is not supported on this Minecraft version yet. Use at your own risk.");
if(sender instanceof Player) {
soundManager.playSound(sender, CompatibleSound.BLOCK_ANVIL_LAND.getSound(), 1.0F, 1.0F);
}
}
if (args.length == 2) {
String biomeName = args[1].toUpperCase().trim();

View File

@ -31,11 +31,7 @@ public class BiomeCommand extends SubCommand {
FileConfiguration configLoad = config.getFileConfiguration();
Island island = islandManager.getIsland(player);
if(ServerVersion.isServerVersionAtLeast(ServerVersion.V1_16)){
messageManager.sendMessage(player, "&bSkyBlock &8| &6Warning&8: &eThis feature is not supported on this Minecraft version yet. Use at your own risk.");
soundManager.playSound(player, CompatibleSound.BLOCK_ANVIL_LAND.getSound(), 1.0F, 1.0F);
}
if (island == null) {
messageManager.sendMessage(player, configLoad.getString("Command.Island.Biome.Owner.Message"));
soundManager.playSound(player, CompatibleSound.BLOCK_ANVIL_LAND.getSound(), 1.0F, 1.0F);