Merge pull request 'Adapt to commonDB' (#25) from commonDB into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #25 Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
fa882942f2
@ -41,7 +41,7 @@ public class CustomMapCommand extends SWCommand {
|
||||
@Register
|
||||
@SneakyThrows
|
||||
public void render(@Validator Player p, File file) {
|
||||
if (SteamwarUser.get(p).getUserGroup() != UserGroup.Developer) {
|
||||
if (SteamwarUser.get(p.getUniqueId()).getUserGroup() != UserGroup.Developer) {
|
||||
return;
|
||||
}
|
||||
if (!file.exists()) {
|
||||
@ -54,7 +54,7 @@ public class CustomMapCommand extends SWCommand {
|
||||
@ClassValidator(value = Player.class, local = true)
|
||||
public TypeValidator<Player> getGuardChecker() {
|
||||
return (commandSender, player, messageSender) -> {
|
||||
return SteamwarUser.get(player).getUserGroup() == UserGroup.Developer;
|
||||
return SteamwarUser.get(player.getUniqueId()).getUserGroup() == UserGroup.Developer;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ public class CommandPortal implements PortalHandler {
|
||||
|
||||
if(ModifyCommand.modifying(player))
|
||||
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
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren