mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Progress towards LP hard depend
This commit is contained in:
1 parent
d2ed3d42eb
commit
ee084c1221
14 files changed
+54
-183
No files matched your search
@@ -20,6 +20,33 @@ public abstract class WrappedCarbonPlayer implements CarbonPlayer {
|
||||
|
||||
public abstract CarbonPlayerCommon carbonPlayerCommon();
|
||||
|
||||
@Override
|
||||
public boolean awareOf(final CarbonPlayer other) {
|
||||
if (other.vanished()) {
|
||||
return this.hasPermission("carbon.seevanished");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(String permission) {
|
||||
// TODO: LuckPerms
|
||||
return this.carbonPlayerCommon().hasPermission(permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String primaryGroup() {
|
||||
// TODO: LuckPerms
|
||||
return this.carbonPlayerCommon().primaryGroup();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> groups() {
|
||||
// TODO: LuckPerms
|
||||
return this.carbonPlayerCommon().groups();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String username() {
|
||||
return this.carbonPlayerCommon().username();
|
||||
@@ -81,26 +108,10 @@ public abstract class WrappedCarbonPlayer implements CarbonPlayer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void selectedChannel(ChatChannel chatChannel) {
|
||||
public void selectedChannel(@Nullable ChatChannel chatChannel) {
|
||||
this.carbonPlayerCommon().selectedChannel(chatChannel);
|
||||
}
|
||||
|
||||
// TODO: move to Permissible class or one similarly named?
|
||||
@Override
|
||||
public boolean hasPermission(String permission) {
|
||||
return this.carbonPlayerCommon().hasPermission(permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String primaryGroup() {
|
||||
return this.carbonPlayerCommon().primaryGroup();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> groups() {
|
||||
return this.carbonPlayerCommon().groups();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MuteEntry> muteEntries() {
|
||||
return this.carbonPlayerCommon().muteEntries();
|
||||
|
||||
Reference in new issue
Block a user