diff --git a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDeletePublic.java b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDeletePublic.java index 3aa8012..fc2be66 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDeletePublic.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandDeletePublic.java @@ -1,17 +1,24 @@ package net.knarcraft.bookswithoutborders.command; import org.bukkit.command.Command; -import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; +import org.bukkit.command.TabExecutor; + +import java.util.List; /** * Command executor for the "delete public" command */ -public class CommandDeletePublic extends CommandDelete implements CommandExecutor { +public class CommandDeletePublic extends CommandDelete implements TabExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { return deleteBook(sender, args, true); } + @Override + public List onTabComplete(CommandSender sender, Command command, String alias, String[] args) { + return doTabCompletion(sender, args, true); + } + }