Fixed #679 (Null locale)

This commit is contained in:
Rsl1122 2018-08-10 09:20:35 +03:00
parent b96efc7f92
commit 76040c1177
3 changed files with 4 additions and 4 deletions

View File

@ -65,8 +65,8 @@ public class Plan extends BukkitPlugin implements PlanPlugin {
try {
Benchmark.start("Enable");
system = new BukkitSystem(this);
system.enable();
locale = system.getLocaleSystem().getLocale();
system.enable();
ImporterManager.registerImporter(new OfflinePlayerImporter());

View File

@ -41,8 +41,8 @@ public class PlanBungee extends BungeePlugin implements PlanPlugin {
super.onEnable();
try {
system = new BungeeSystem(this);
system.enable();
locale = system.getLocaleSystem().getLocale();
system.enable();
new BStatsBungee(this).registerMetrics();

View File

@ -53,10 +53,10 @@ public class PlanSponge extends SpongePlugin implements PlanPlugin {
@Override
public void onEnable() {
super.onEnable();
system = new SpongeSystem(this);
try {
system.enable();
system = new SpongeSystem(this);
locale = system.getLocaleSystem().getLocale();
system.enable();
new BStatsSponge().registerMetrics();