command adjustments

This commit is contained in:
batchprogrammer314
2021-07-21 17:18:36 -05:00
parent 9b9f1d70a3
commit aa12ea0e71
5 changed files with 79 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ import net.nuggetmc.ai.command.CommandHandler;
import net.nuggetmc.ai.command.CommandInstance;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.command.CommandSender;
public class MainCommand extends CommandInstance {
@@ -33,7 +33,11 @@ public class MainCommand extends CommandInstance {
@Command(
desc = "The TerminatorPlus main command."
)
public void root(@Sender Player sender) {
public void root(@Sender CommandSender sender) {
if (rootInfo == null) {
rootInfoSetup();
}
sender.spigot().sendMessage(rootInfo);
}