Abstract Data storage method for future implementations. Thanks to Ryan from Reactive MC
Also included: -Heavily optimized loading process -Optimizations for various commands.
This commit is contained in:
@@ -68,7 +68,7 @@ public class CmdDisband extends FCommand {
|
||||
}
|
||||
|
||||
// Inform all players
|
||||
for (FPlayer fplayer : FPlayers.i.getOnline()) {
|
||||
for (FPlayer fplayer : FPlayers.getInstance().getOnlinePlayers()) {
|
||||
String who = senderIsConsole ? "A server admin" : fme.describeTo(fplayer);
|
||||
if (fplayer.getFaction() == faction) {
|
||||
fplayer.msg("<h>%s<i> disbanded your faction.", who);
|
||||
@@ -92,6 +92,6 @@ public class CmdDisband extends FCommand {
|
||||
}
|
||||
}
|
||||
|
||||
faction.detach();
|
||||
Factions.getInstance().removeFaction(faction.getId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user