Dieser Commit ist enthalten in:
Ursprung
6192fd98c7
Commit
c6a68fa2a1
@ -1 +1 @@
|
||||
Subproject commit b183ce0b2dadc9143d8eb9c5f1aeba2a8ea78d32
|
||||
Subproject commit b1328695a1a30c062d066ff564a9112fde668b3e
|
@ -58,14 +58,17 @@ public class SWCommand extends AbstractSWCommand<CommandSender> {
|
||||
protected SWCommand(String command, String permission, String... aliases) {
|
||||
super(CommandSender.class, command, aliases);
|
||||
this.permission = permission;
|
||||
create = true;
|
||||
createAndSafeCommand(command, aliases);
|
||||
unregister();
|
||||
register();
|
||||
}
|
||||
|
||||
private boolean create = false;
|
||||
|
||||
@Override
|
||||
protected void createAndSafeCommand(String command, String[] aliases) {
|
||||
if (permission == null) return;
|
||||
if (!create) return;
|
||||
this.command = new TabCompletableCommand(command, permission, aliases) {
|
||||
@Override
|
||||
public void execute(CommandSender commandSender, String[] strings) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren