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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user