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

View File

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