Don't invisibly update faction prefixes when they're disabled
This commit is contained in:
parent
3af4c9a616
commit
4b6ccc7967
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user