13
0

Adapt to commonDB
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-09-24 20:35:59 +02:00
Ursprung 3d5dc2e07e
Commit 5d2b646367
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -41,7 +41,7 @@ public class CustomMapCommand extends SWCommand {
@Register @Register
@SneakyThrows @SneakyThrows
public void render(@Validator Player p, File file) { public void render(@Validator Player p, File file) {
if (SteamwarUser.get(p).getUserGroup() != UserGroup.Developer) { if (SteamwarUser.get(p.getUniqueId()).getUserGroup() != UserGroup.Developer) {
return; return;
} }
if (!file.exists()) { if (!file.exists()) {
@ -54,7 +54,7 @@ public class CustomMapCommand extends SWCommand {
@ClassValidator(value = Player.class, local = true) @ClassValidator(value = Player.class, local = true)
public TypeValidator<Player> getGuardChecker() { public TypeValidator<Player> getGuardChecker() {
return (commandSender, player, messageSender) -> { return (commandSender, player, messageSender) -> {
return SteamwarUser.get(player).getUserGroup() == UserGroup.Developer; return SteamwarUser.get(player.getUniqueId()).getUserGroup() == UserGroup.Developer;
}; };
} }

Datei anzeigen

@ -84,7 +84,7 @@ public class CommandPortal implements PortalHandler {
if(ModifyCommand.modifying(player)) if(ModifyCommand.modifying(player))
player.sendMessage("/" + cmd); player.sendMessage("/" + cmd);
NetworkSender.send(new ExecuteCommandPacket(SteamwarUser.get(player).getId(), cmd.toString())); NetworkSender.send(new ExecuteCommandPacket(SteamwarUser.get(player.getUniqueId()).getId(), cmd.toString()));
} }
@Override @Override