mirror of
https://github.com/SimplexDevelopment/SimplexCL.git
synced 2024-11-14 06:23:33 +00:00
Update
This commit is contained in:
parent
78cc2dd1a3
commit
d3d8c2fd7a
3
.gitignore
vendored
3
.gitignore
vendored
@ -28,3 +28,6 @@ gradle.properties
|
||||
build/*
|
||||
.gradle/*
|
||||
.idea/*
|
||||
.gradle/7.2/executionHistory/executionHistory.bin
|
||||
*.bin
|
||||
*.lock
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
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 Plugin plugin;
|
||||
|
||||
|
@ -10,7 +10,6 @@ public interface ICommand extends CommandExecutor, TabCompleter {
|
||||
*
|
||||
* @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 allowConsole Whether the command should be allowed anywhere, or only in game.
|
||||
*/
|
||||
void execute(CommandSender sender, String[] args);
|
||||
}
|
||||
|
@ -16,7 +16,11 @@ public final class ExampleCommand extends CommandBase {
|
||||
|
||||
@Override
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user