forked from majorprobes/MobRacers.1.8.8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCore.java
72 lines (59 loc) · 1.84 KB
/
Core.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package me.winterguardian.core;
import me.winterguardian.core.bungee.BungeeMessager;
import me.winterguardian.core.entity.custom.CustomEntityManager;
import me.winterguardian.core.entity.custom.CustomEntityType;
import me.winterguardian.core.gameplay.GameplayManager;
import me.winterguardian.core.playerstats.UserDatasManager;
import me.winterguardian.core.shop.Shop;
import me.winterguardian.core.world.Wand;
import org.bukkit.plugin.Plugin;
public class Core
{
//components
private static UserDatasManager userDatasManager = new UserDatasManager();
private static BungeeMessager bungeeMessager = new BungeeMessager();
private static GameplayManager gameplayManager = new GameplayManager();
private static CustomEntityManager customEntityManager = new CustomEntityManager();
private static Shop shop = new Shop();
private static Wand wand = new Wand();
@Deprecated
@SuppressWarnings("deprecation")
public static void enableAsyncCommands(Plugin plugin)
{
}
public static void disable(Plugin plugin)
{
getUserDatasManager().disable(plugin);
getBungeeMessager().disable(plugin);
getGameplayManager().disable(plugin);
getCustomEntityManager().disable(plugin);
getWand().disable(plugin);
}
@Deprecated
@SuppressWarnings("deprecation")
public static void enableCustomEntities()
{
CustomEntityType.registerEntities();
}
public static UserDatasManager getUserDatasManager()
{
return userDatasManager;
}
public static BungeeMessager getBungeeMessager()
{
return bungeeMessager;
}
public static GameplayManager getGameplayManager()
{
return gameplayManager;
}
public static CustomEntityManager getCustomEntityManager() { return customEntityManager; }
public static Shop getShop()
{
return shop;
}
public static Wand getWand()
{
return wand;
}
}