when i try to use the exmaple that the paper docs give it gives me an error that
C:\Users\Cabbage\IdeaProjects\untitled1\src\main\java\com\cabbage\testplugin\coolcommand.java:9: error: <identifier> expected
advancedCommandRoot.then(killall);
^
C:\Users\Cabbage\IdeaProjects\untitled1\src\main\java\com\cabbage\testplugin\coolcommand.java:9: error: <identifier> expected
advancedCommandRoot.then(killall);
and also that advancedCommandRoot is not used
^
package com.cabbage.testplugin;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import io.papermc.paper.command.brigadier.CommandSourceStack;
import io.papermc.paper.command.brigadier.Commands;
public class coolcommand {
LiteralArgumentBuilder<CommandSourceStack> advancedCommandRoot = Commands.literal("advanced");
advancedCommandRoot.then(killall);
advancedCommandRoot.then(eat);
}
C:\Users\Cabbage\IdeaProjects\untitled1\src\main\java\com\cabbage\testplugin\coolcommand.java:9: error: <identifier> expected
advancedCommandRoot.then(killall);
^
C:\Users\Cabbage\IdeaProjects\untitled1\src\main\java\com\cabbage\testplugin\coolcommand.java:9: error: <identifier> expected
advancedCommandRoot.then(killall);
and also that advancedCommandRoot is not used
^
package com.cabbage.testplugin;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import io.papermc.paper.command.brigadier.CommandSourceStack;
import io.papermc.paper.command.brigadier.Commands;
public class coolcommand {
LiteralArgumentBuilder<CommandSourceStack> advancedCommandRoot = Commands.literal("advanced");
advancedCommandRoot.then(killall);
advancedCommandRoot.then(eat);
}