1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-11 11:51:54 +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; return false;
} }
if (Jobs.getGCManager().BossBarShowOnEachAction) {
int sec = Math.round((((BlockTime + time * 1000) - currentTime)) / 1000); int sec = Math.round((((BlockTime + time * 1000) - currentTime)) / 1000);
Jobs.getActionBar().send(player, Jobs.getLanguage().getMessage("message.blocktimer", "[time]", sec)); Jobs.getActionBar().send(player, Jobs.getLanguage().getMessage("message.blocktimer", "[time]", sec));
}
return true; return true;
} }

View File

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