Hello, my fly command is not working. Not sure why it is not working. I am setting the player.getAbilities().mayfly to true. It even prints out that is is true!
@Override
public void command() {
command = Commands.literal("fly").executes(
(commandContext) -> {return fly(commandContext);}
);
}
private int fly(CommandContext<CommandSourceStack> commandContext) throws CommandSyntaxException {
Player player = commandContext.getSource().getPlayerOrException();
player