Merge remote-tracking branch 'origin/master'
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Commit
76f1563fda
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren