mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-27 20:56:05 +01:00
Finished deletion cooldown
This commit is contained in:
parent
0ebce83d77
commit
11c24c750f
@ -58,18 +58,18 @@ public class DeleteCommand extends SubCommand {
|
|||||||
|
|
||||||
if (cooldown.getTime() < 60) {
|
if (cooldown.getTime() < 60) {
|
||||||
messageManager.sendMessage(player,
|
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()
|
.replace("%time", cooldown.getTime() + " " + config.getFileConfiguration()
|
||||||
.getString("Island.Deletion.Selector.Cooldown.Word.Second")));
|
.getString("Island.Deletion.Cooldown.Word.Second")));
|
||||||
} else {
|
} else {
|
||||||
long[] durationTime = NumberUtil.getDuration(cooldown.getTime());
|
long[] durationTime = NumberUtil.getDuration(cooldown.getTime());
|
||||||
messageManager.sendMessage(player,
|
messageManager.sendMessage(player,
|
||||||
config.getFileConfiguration().getString("Island.Deletion.Selector.Cooldown.Message")
|
config.getFileConfiguration().getString("Island.Deletion.Cooldown.Message")
|
||||||
.replace("%time", durationTime[2] + " "
|
.replace("%time", durationTime[2] + " "
|
||||||
+ config.getFileConfiguration()
|
+ config.getFileConfiguration()
|
||||||
.getString("Island.Deletion.Selector.Cooldown.Word.Minute")
|
.getString("Island.Deletion.Cooldown.Word.Minute")
|
||||||
+ " " + durationTime[3] + " " + config.getFileConfiguration()
|
+ " " + 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);
|
soundManager.playSound(player, CompatibleSound.ENTITY_VILLAGER_NO.getSound(), 1.0F, 1.0F);
|
||||||
|
@ -3464,6 +3464,12 @@ Island:
|
|||||||
Message: '&bSkyBlock &8| &cError&8: &eThat Structure does not exist.'
|
Message: '&bSkyBlock &8| &cError&8: &eThat Structure does not exist.'
|
||||||
File:
|
File:
|
||||||
Message: '&bSkyBlock &8| &cError&8: &eThat file does not exist in the Structures directory.'
|
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:
|
Creator:
|
||||||
Selector:
|
Selector:
|
||||||
Created:
|
Created:
|
||||||
|
Loading…
Reference in New Issue
Block a user