Don't invisibly update faction prefixes when they're disabled

This commit is contained in:
eueln 2014-11-17 01:22:12 -06:00
parent 3af4c9a616
commit 4b6ccc7967
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,11 @@ public class FTeamWrapper {
return;
}
if (!P.p.getConfig().getBoolean("scoreboard.default-prefixes", false)) {
return;
}
if (updating.add(faction)) {
Bukkit.getScheduler().runTask(P.p, new Runnable() {
@Override
@ -42,6 +47,10 @@ public class FTeamWrapper {
return;
}
if (!P.p.getConfig().getBoolean("scoreboard.default-prefixes", false)) {
return;
}
if (updating.contains(faction)) {
// Faction will be updated soon.
return;