Add fixed commands to the register
This commit is contained in:
parent
8b013b7baa
commit
563b991800
1 changed files with 21 additions and 2 deletions
|
@ -1,6 +1,15 @@
|
||||||
package dev.zontreck.essentials.commands;
|
package dev.zontreck.essentials.commands;
|
||||||
|
|
||||||
import dev.zontreck.otemod.commands.homes.DelHomeCommand;
|
import dev.zontreck.essentials.commands.homes.DelHomeCommand;
|
||||||
|
import dev.zontreck.essentials.commands.homes.HomeCommand;
|
||||||
|
import dev.zontreck.essentials.commands.homes.HomesCommand;
|
||||||
|
import dev.zontreck.essentials.commands.homes.SetHomeCommand;
|
||||||
|
import dev.zontreck.essentials.commands.teleport.RTPCommand;
|
||||||
|
import dev.zontreck.essentials.commands.teleport.TPACommand;
|
||||||
|
import dev.zontreck.essentials.commands.teleport.TPAHereCommand;
|
||||||
|
import dev.zontreck.essentials.commands.teleport.TPAcceptCommand;
|
||||||
|
import dev.zontreck.essentials.commands.teleport.TPCancelCommand;
|
||||||
|
import dev.zontreck.essentials.commands.teleport.TPDenyCommand;
|
||||||
import net.minecraftforge.event.RegisterCommandsEvent;
|
import net.minecraftforge.event.RegisterCommandsEvent;
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
|
||||||
|
@ -8,6 +17,16 @@ public class CommandRegister {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onCommandRegister(final RegisterCommandsEvent ev)
|
public void onCommandRegister(final RegisterCommandsEvent ev)
|
||||||
{
|
{
|
||||||
DelHomeCommand.register(ev);
|
DelHomeCommand.register(ev.getDispatcher());
|
||||||
|
HomeCommand.register(ev.getDispatcher());
|
||||||
|
HomesCommand.register(ev.getDispatcher());
|
||||||
|
SetHomeCommand.register(ev.getDispatcher());
|
||||||
|
|
||||||
|
RTPCommand.register(ev.getDispatcher());
|
||||||
|
TPAcceptCommand.register(ev.getDispatcher());
|
||||||
|
TPAHereCommand.register(ev.getDispatcher());
|
||||||
|
TPACommand.register(ev.getDispatcher());
|
||||||
|
TPCancelCommand.register(ev.getDispatcher());
|
||||||
|
TPDenyCommand.register(ev.getDispatcher());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue