1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Don't show bossbar for block timer if disabled

This commit is contained in:
Zrips 2017-05-12 14:56:35 +03:00
parent 9635ade759
commit 6f0a06c0ed
2 changed files with 6 additions and 5 deletions

View File

@ -186,9 +186,10 @@ public class BlockProtectionManager {
return false;
}
int sec = Math.round((((BlockTime + time * 1000) - currentTime)) / 1000);
Jobs.getActionBar().send(player, Jobs.getLanguage().getMessage("message.blocktimer", "[time]", sec));
if (Jobs.getGCManager().BossBarShowOnEachAction) {
int sec = Math.round((((BlockTime + time * 1000) - currentTime)) / 1000);
Jobs.getActionBar().send(player, Jobs.getLanguage().getMessage("message.blocktimer", "[time]", sec));
}
return true;
}

View File

@ -370,9 +370,9 @@ Jobs:
value: true
# Permission granted when reaching level 10
level: 10
# Permissions granted when perticular conditions are meet
# Permissions granted when particular conditions are meet
conditions:
# Condition mane, irelevent, you can write anything in here
# Condition name, irrelevant, you can write anything in here
first:
requires:
# j marks that player should have particular jobs level and higher