mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Change nickname command structure
This commit is contained in:
10 files changed
+197
-100
No files matched your search
@@ -42,6 +42,11 @@ public interface PaperCommander extends Commander, ForwardingAudience.Single {
|
||||
return this.commandSender;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(final String permission) {
|
||||
return this.commandSender.hasPermission(permission);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -51,4 +51,9 @@ public record PaperPlayerCommander(
|
||||
return requireNonNull(this.server.userManager().carbonPlayer(this.player.getUniqueId()).join().player(), "No CarbonPlayer for logged in Player!");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(final String permission) {
|
||||
return this.player.hasPermission(permission);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user