-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlugin.java
More file actions
51 lines (41 loc) · 1.65 KB
/
Plugin.java
File metadata and controls
51 lines (41 loc) · 1.65 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
package no.runsafe.entitycontrol;
import no.runsafe.entitycontrol.entityTeleporting.MountedHorseTeleporter;
import no.runsafe.entitycontrol.pets.CompanionHandler;
import no.runsafe.entitycontrol.pets.commands.CreateEgg;
import no.runsafe.entitycontrol.pets.commands.SpawnCompanion;
import no.runsafe.entitycontrol.shulker.AzurenShulker;
import no.runsafe.entitycontrol.slime.SlimeAnywhere;
import no.runsafe.entitycontrol.witherBoss.WitherOverwrite;
import no.runsafe.framework.RunsafeConfigurablePlugin;
import no.runsafe.framework.api.command.Command;
import no.runsafe.framework.api.log.IDebug;
import no.runsafe.framework.features.Commands;
import no.runsafe.framework.features.Database;
import no.runsafe.framework.features.Events;
public class Plugin extends RunsafeConfigurablePlugin
{
public static IDebug Debugger;
@Override
protected void pluginSetup()
{
Debugger = getComponent(IDebug.class);
addComponent(Commands.class);
addComponent(Events.class);
addComponent(Database.class);
this.addComponent(Config.class);
this.addComponent(EntityPortalCreation.class);
this.addComponent(EntityDeath.class);
addComponent(MountedHorseTeleporter.class);
addComponent(HorseSugar.class);
// Companions
addComponent(CompanionHandler.class);
Command companionCommand = new Command("companion", "Companion related commands", null);
addComponent(companionCommand);
companionCommand.addSubCommand(getInstance(SpawnCompanion.class));
companionCommand.addSubCommand(getInstance(CreateEgg.class));
addComponent(AzurenShulker.class);
addComponent(SlimeAnywhere.class);
addComponent(WitherOverwrite.class);
addComponent(SpawnBlocker.class);
}
}