add reset command + exists method for data source

This commit is contained in:
unurled 2024-02-29 15:29:56 +01:00
parent 9f33889604
commit 7cc9395cbc
Signed by: unurled
GPG key ID: FDBC9CBE1F82423F
6 changed files with 172 additions and 2 deletions

View file

@ -2,6 +2,7 @@ package me.unurled.sacredrealms.sr.commands;
import me.unurled.sacredrealms.sr.SR;
import me.unurled.sacredrealms.sr.commands.admin.AttributeCommand;
import me.unurled.sacredrealms.sr.commands.player.ResetAdventureCommand;
import me.unurled.sacredrealms.sr.managers.Manager;
public class CommandManager extends Manager {
@ -11,5 +12,9 @@ public class CommandManager extends Manager {
public void load() {
super.load();
SR.getInstance().getCommand("attributes").setExecutor(new AttributeCommand());
SR.getInstance().getCommand("attributes").setTabCompleter(new AttributeCommand());
SR.getInstance().getCommand("resetadventure").setExecutor(new ResetAdventureCommand());
SR.getInstance().getCommand("resetadventure").setTabCompleter(new ResetAdventureCommand());
}
}