This commit is contained in:
Paldiu 2022-03-11 17:57:06 -06:00
parent 78cc2dd1a3
commit d3d8c2fd7a
14 changed files with 9 additions and 3 deletions

3
.gitignore vendored
View File

@ -28,3 +28,6 @@ gradle.properties
build/* build/*
.gradle/* .gradle/*
.idea/* .idea/*
.gradle/7.2/executionHistory/executionHistory.bin
*.bin
*.lock

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
import java.util.List; import java.util.List;
public final class DummyCommand extends Command implements PluginIdentifiableCommand { final class DummyCommand extends Command implements PluginIdentifiableCommand {
private final CommandBase base; private final CommandBase base;
private final Plugin plugin; private final Plugin plugin;

View File

@ -10,7 +10,6 @@ public interface ICommand extends CommandExecutor, TabCompleter {
* *
* @param sender The user who sent the command. (Provided by Paper) * @param sender The user who sent the command. (Provided by Paper)
* @param args The additional arguments to the command, if applicable (Provided by Paper) * @param args The additional arguments to the command, if applicable (Provided by Paper)
* @param allowConsole Whether the command should be allowed anywhere, or only in game.
*/ */
void execute(CommandSender sender, String[] args); void execute(CommandSender sender, String[] args);
} }

View File

@ -16,7 +16,11 @@ public final class ExampleCommand extends CommandBase {
@Override @Override
public void execute(CommandSender sender, String[] args) { public void execute(CommandSender sender, String[] args) {
if (subCommand("info", sender, getPermission() + ".info", args, () -> sender.sendMessage(msg("SimplexCL was created by SimplexDevelopment!", BasicColors.GOLD)))) { if (subCommand("info",
sender,
getPermission() + ".info",
args,
() -> sender.sendMessage(msg("SimplexCL was created by SimplexDevelopment!", BasicColors.GOLD)))) {
return; return;
} }