mirror of
https://github.com/SimplexDevelopment/SimplexCL.git
synced 2025-07-03 23:26:40 +00:00
Update
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user