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:
parent
9635ade759
commit
6f0a06c0ed
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user