Skip to content

Commit

Permalink
match export with import method
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Jul 2, 2024
1 parent fdd2a7b commit 1bb1b2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void register() {
.executes(this::wand))
.then(Commands.literal("export")
.requires(stack -> stack.getSender() instanceof Player)
.executes(this::export))
.executes(this::exportSettings))
.then(Commands.literal("import")
.requires(stack -> stack.getSender() instanceof Player)
.executes(this::importSettings))
Expand All @@ -65,7 +65,7 @@ public void register() {
event.registrar().register(command, List.of("gp"))));
}

private int export(CommandContext<CommandSourceStack> context) {
private int exportSettings(CommandContext<CommandSourceStack> context) {
var player = (Player) context.getSource().getSender();

var mainHand = player.getInventory().getItemInMainHand();
Expand Down

0 comments on commit 1bb1b2a

Please sign in to comment.