Skip to content

Commit

Permalink
Remove gamerule command.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Dec 1, 2023
1 parent 08c7a20 commit 0dd853a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 241 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import me.lokka30.microlib.messaging.MultiMessage;
import me.lokka30.phantomworlds.PhantomWorlds;
import me.lokka30.phantomworlds.commands.phantomworlds.subcommands.CreateSubcommand;
import me.lokka30.phantomworlds.commands.phantomworlds.subcommands.GameruleSubcommand;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
Expand All @@ -23,7 +22,6 @@
public class PhantomWorldsCommand implements TabExecutor {

final CreateSubcommand createSubcommand = new CreateSubcommand();
final GameruleSubcommand gameruleSubcommand = new GameruleSubcommand();
/**
* @since v2.0.0
*/
Expand All @@ -47,9 +45,6 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd,
case "create":
createSubcommand.parseCommand(sender, cmd, label, args);
break;
case "gamerule":
gameruleSubcommand.parseCommand(sender, cmd, label, args);
break;
default:
(new MultiMessage(
PhantomWorlds.instance().messages.getConfig()
Expand Down Expand Up @@ -101,8 +96,6 @@ public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Comman
switch(args[0].toLowerCase(Locale.ROOT)) {
case "create":
return createSubcommand.parseTabCompletion(sender, cmd, label, args);
case "gamerule":
return gameruleSubcommand.parseTabCompletion(sender, cmd, label, args);
default:
return Collections.emptyList();
}
Expand Down

This file was deleted.

0 comments on commit 0dd853a

Please sign in to comment.