-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathCommandsManager.java
More file actions
69 lines (64 loc) · 2.59 KB
/
CommandsManager.java
File metadata and controls
69 lines (64 loc) · 2.59 KB
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
package fr.openmc.core;
import fr.openmc.api.cooldown.CooldownInterceptor;
import fr.openmc.core.commands.admin.freeze.FreezeCommand;
import fr.openmc.core.commands.debug.ChronometerCommand;
import fr.openmc.core.commands.debug.CooldownCommand;
import fr.openmc.core.commands.fun.Diceroll;
import fr.openmc.core.commands.fun.Playtime;
import fr.openmc.core.commands.utils.*;
import fr.openmc.core.features.adminshop.AdminShopCommand;
import fr.openmc.core.features.animations.DebugAnimationCommand;
import fr.openmc.core.features.credits.CreditsCommand;
import fr.openmc.core.features.cube.CubeCommands;
import fr.openmc.core.features.events.commands.EventCommand;
import fr.openmc.core.features.events.contents.halloween.commands.HalloweenCommands;
import fr.openmc.core.features.friend.FriendCommand;
import fr.openmc.core.features.mailboxes.MailboxCommand;
import fr.openmc.core.features.mainmenu.commands.MainMenuCommand;
import fr.openmc.core.features.privatemessage.command.PrivateMessageCommand;
import fr.openmc.core.features.privatemessage.command.SocialSpyCommand;
import fr.openmc.core.features.quests.command.QuestCommand;
import fr.openmc.core.features.settings.command.SettingsCommand;
import fr.openmc.core.features.updates.UpdateCommand;
import lombok.Getter;
import revxrsal.commands.Lamp;
import revxrsal.commands.bukkit.BukkitLamp;
public class CommandsManager {
@Getter
static Lamp handler;
public static void init() {
handler = BukkitLamp.builder(OMCPlugin.getInstance())
.commandCondition(new CooldownInterceptor())
.build();
registerCommands();
}
private static void registerCommands() {
handler.register(
new Socials(),
new Spawn(),
new UpdateCommand(),
new RTPCommands(),
new SetSpawn(),
new Playtime(),
new Diceroll(),
new CooldownCommand(),
new ChronometerCommand(),
new FreezeCommand(),
new MailboxCommand(),
new FriendCommand(),
new QuestCommand(),
new Restart(),
new AdminShopCommand(),
new MainMenuCommand(),
new PrivateMessageCommand(),
new SocialSpyCommand(),
new SettingsCommand(),
new Cooldowns(),
new CreditsCommand(),
new CubeCommands(),
new HalloweenCommands(),
new DebugAnimationCommand(),
new EventCommand()
);
}
}