Initialize the messageProvider only once, not on every onEnable()

This commit is contained in:
main() 2011-12-02 14:32:35 +01:00
parent 3531bd6432
commit 303bbc317b

View File

@ -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