mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
minor refactor
This commit is contained in:
parent
b65247cbb0
commit
d38404927b
@ -79,7 +79,7 @@ import java.util.List;
|
|||||||
public class mcMMO extends JavaPlugin {
|
public class mcMMO extends JavaPlugin {
|
||||||
/* Managers & Services */
|
/* Managers & Services */
|
||||||
private static PlatformManager platformManager;
|
private static PlatformManager platformManager;
|
||||||
private static ChunkManager placeStore;
|
private static ChunkManager chunkManager;
|
||||||
private static RepairableManager repairableManager;
|
private static RepairableManager repairableManager;
|
||||||
private static SalvageableManager salvageableManager;
|
private static SalvageableManager salvageableManager;
|
||||||
private static ModManager modManager;
|
private static ModManager modManager;
|
||||||
@ -268,7 +268,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
scheduleTasks();
|
scheduleTasks();
|
||||||
CommandRegistrationManager.registerCommands();
|
CommandRegistrationManager.registerCommands();
|
||||||
|
|
||||||
placeStore = ChunkManagerFactory.getChunkManager(); // Get our ChunkletManager
|
chunkManager = ChunkManagerFactory.getChunkManager(); // Get our ChunkletManager
|
||||||
|
|
||||||
if (generalConfig.getPTPCommandWorldPermissions()) {
|
if (generalConfig.getPTPCommandWorldPermissions()) {
|
||||||
Permissions.generateWorldTeleportPermissions();
|
Permissions.generateWorldTeleportPermissions();
|
||||||
@ -381,7 +381,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
ScoreboardManager.teardownAll();
|
ScoreboardManager.teardownAll();
|
||||||
|
|
||||||
formulaManager.saveFormula();
|
formulaManager.saveFormula();
|
||||||
placeStore.closeAll();
|
chunkManager.closeAll();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -449,7 +449,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
* @return the {@link UserBlockTracker}
|
* @return the {@link UserBlockTracker}
|
||||||
*/
|
*/
|
||||||
public static UserBlockTracker getUserBlockTracker() {
|
public static UserBlockTracker getUserBlockTracker() {
|
||||||
return placeStore;
|
return chunkManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -457,7 +457,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
* @return the chunk manager
|
* @return the chunk manager
|
||||||
*/
|
*/
|
||||||
public static ChunkManager getChunkManager() {
|
public static ChunkManager getChunkManager() {
|
||||||
return placeStore;
|
return chunkManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -467,7 +467,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
*/
|
*/
|
||||||
@Deprecated(since = "2.2.013", forRemoval = true)
|
@Deprecated(since = "2.2.013", forRemoval = true)
|
||||||
public static ChunkManager getPlaceStore() {
|
public static ChunkManager getPlaceStore() {
|
||||||
return placeStore;
|
return chunkManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RepairableManager getRepairableManager() {
|
public static RepairableManager getRepairableManager() {
|
||||||
|
Loading…
Reference in New Issue
Block a user