mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-02 16:59:42 +01:00
Fixed #679 (Null locale)
This commit is contained in:
parent
b96efc7f92
commit
76040c1177
@ -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());
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user