mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +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
@@ -2,10 +2,8 @@ package net.draycia.carbon.velocity.users;
|
||||
|
||||
import com.velocitypowered.api.proxy.Player;
|
||||
import com.velocitypowered.api.proxy.ProxyServer;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Optional;
|
||||
import net.draycia.carbon.api.users.CarbonPlayer;
|
||||
import net.draycia.carbon.api.util.InventorySlot;
|
||||
import net.draycia.carbon.common.users.CarbonPlayerCommon;
|
||||
import net.draycia.carbon.common.users.WrappedCarbonPlayer;
|
||||
@@ -33,26 +31,11 @@ public final class CarbonPlayerVelocity extends WrappedCarbonPlayer implements F
|
||||
return this.player().map(value -> (Audience) value).orElse(Audience.empty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String primaryGroup() {
|
||||
return "default"; // TODO: implement
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> groups() {
|
||||
return List.of("default"); // TODO: implement
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean vanished() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean awareOf(final CarbonPlayer other) {
|
||||
return true;
|
||||
}
|
||||
|
||||
private Optional<Player> player() {
|
||||
return this.server.getPlayer(this.uuid());
|
||||
}
|
||||
@@ -72,11 +55,6 @@ public final class CarbonPlayerVelocity extends WrappedCarbonPlayer implements F
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(final String permission) {
|
||||
return this.player().map(value -> value.hasPermission(permission)).orElse(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean online() {
|
||||
return this.player().isPresent();
|
||||
|
||||
Reference in new issue
Block a user