Finished deletion cooldown

This commit is contained in:
Fabrizio La Rosa 2020-06-15 15:41:13 +02:00
parent 0ebce83d77
commit 11c24c750f
2 changed files with 11 additions and 5 deletions

View File

@ -58,18 +58,18 @@ public class DeleteCommand extends SubCommand {
if (cooldown.getTime() < 60) {
messageManager.sendMessage(player,
config.getFileConfiguration().getString("Island.Deletion.Selector.Cooldown.Message") // TODO Add language.yml values
config.getFileConfiguration().getString("Island.Deletion.Cooldown.Message") // TODO Add language.yml values
.replace("%time", cooldown.getTime() + " " + config.getFileConfiguration()
.getString("Island.Deletion.Selector.Cooldown.Word.Second")));
.getString("Island.Deletion.Cooldown.Word.Second")));
} else {
long[] durationTime = NumberUtil.getDuration(cooldown.getTime());
messageManager.sendMessage(player,
config.getFileConfiguration().getString("Island.Deletion.Selector.Cooldown.Message")
config.getFileConfiguration().getString("Island.Deletion.Cooldown.Message")
.replace("%time", durationTime[2] + " "
+ config.getFileConfiguration()
.getString("Island.Deletion.Selector.Cooldown.Word.Minute")
.getString("Island.Deletion.Cooldown.Word.Minute")
+ " " + durationTime[3] + " " + config.getFileConfiguration()
.getString("Island.Deletion.Selector.Cooldown.Word.Second")));
.getString("Island.Deletion.Cooldown.Word.Second")));
}
soundManager.playSound(player, CompatibleSound.ENTITY_VILLAGER_NO.getSound(), 1.0F, 1.0F);

View File

@ -3464,6 +3464,12 @@ Island:
Message: '&bSkyBlock &8| &cError&8: &eThat Structure does not exist.'
File:
Message: '&bSkyBlock &8| &cError&8: &eThat file does not exist in the Structures directory.'
Deletion:
Cooldown:
Word:
Minute: minute(s)
Second: second(s)
Message: '&bSkyBlock &8| &cError&8: &eYou must wait &c&o%time &ebefore creating an Island.'
Creator:
Selector:
Created: