mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
pm is lazy too.
This commit is contained in:
parent
c9e3ea005b
commit
0606f16a11
@ -148,16 +148,16 @@ public class mcMMO extends JavaPlugin {
|
|||||||
Users.loadUsers();
|
Users.loadUsers();
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginManager pm = getServer().getPluginManager();
|
PluginManager pluginManager = getServer().getPluginManager();
|
||||||
|
|
||||||
//Register events
|
//Register events
|
||||||
pm.registerEvents(playerListener, this);
|
pluginManager.registerEvents(playerListener, this);
|
||||||
pm.registerEvents(blockListener, this);
|
pluginManager.registerEvents(blockListener, this);
|
||||||
pm.registerEvents(entityListener, this);
|
pluginManager.registerEvents(entityListener, this);
|
||||||
pm.registerEvents(worldListener, this);
|
pluginManager.registerEvents(worldListener, this);
|
||||||
|
|
||||||
if (configInstance.getHardcoreEnabled()) {
|
if (configInstance.getHardcoreEnabled()) {
|
||||||
pm.registerEvents(hardcoreListener, this);
|
pluginManager.registerEvents(hardcoreListener, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginDescriptionFile pdfFile = getDescription();
|
PluginDescriptionFile pdfFile = getDescription();
|
||||||
@ -198,7 +198,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
|
|
||||||
Graph graph = metrics.createGraph("Percentage of servers using timings");
|
Graph graph = metrics.createGraph("Percentage of servers using timings");
|
||||||
|
|
||||||
if (pm.useTimings()) {
|
if (pluginManager.useTimings()) {
|
||||||
graph.addPlotter(new Metrics.Plotter("Enabled") {
|
graph.addPlotter(new Metrics.Plotter("Enabled") {
|
||||||
@Override
|
@Override
|
||||||
public int getValue() {
|
public int getValue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user