mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-19 06:41:42 +01:00
Initialize the messageProvider only once, not on every onEnable()
This commit is contained in:
parent
3531bd6432
commit
303bbc317b
@ -51,7 +51,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Messag
|
||||
public static boolean PrefixChat;
|
||||
public static Map<String, String> teleportQueue = new HashMap<String, String>();
|
||||
private AnchorManager anchorManager = new AnchorManager(this);
|
||||
private MessageProvider messageProvider;
|
||||
private MessageProvider messageProvider = new SimpleMessageProvider(this);
|
||||
|
||||
/**
|
||||
* This method is used to find out who is teleporting a player.
|
||||
@ -165,9 +165,6 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core, Messag
|
||||
}
|
||||
this.banker = new AllPay(this, tag + " ");
|
||||
|
||||
// Initialize the MessageProvider
|
||||
messageProvider = new SimpleMessageProvider(this);
|
||||
|
||||
// Output a little snippet to show it's enabled.
|
||||
this.log(Level.INFO, "- Version " + this.getDescription().getVersion() + " (API v" + Protocol + ") Enabled - By " + getAuthors());
|
||||
// Load the defaultWorldGenerators
|
||||
|
Loading…
Reference in New Issue
Block a user