geforkt von SteamWar/BungeeCore
Merge branch 'master' into ModDetection1.13+
Dieser Commit ist enthalten in:
Commit
271afd5f48
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
lib
|
||||
.idea
|
||||
target
|
||||
dependency-reduced-pom.xml
|
@ -40,7 +40,15 @@ public class VerifyCommand extends BasicCommand {
|
||||
Message.send("VERIFY_USAGE", sender);
|
||||
return;
|
||||
}
|
||||
byte[] bytes = Base64.getDecoder().decode(strings[0]);
|
||||
|
||||
byte[] bytes;
|
||||
try {
|
||||
bytes = Base64.getDecoder().decode(strings[0]);
|
||||
} catch (IllegalArgumentException e) {
|
||||
Message.send("VERIFY_INVALID", sender);
|
||||
return;
|
||||
}
|
||||
|
||||
if(bytes.length != 16) {
|
||||
Message.send("VERIFY_INVALID", sender);
|
||||
return;
|
||||
|
@ -224,10 +224,12 @@ public class SteamwarUser {
|
||||
final URL url = new URL(API_URL + playerName);
|
||||
String uuid = jsonParser.parse(new Scanner(url.openConnection().getInputStream()).nextLine()).getAsJsonObject().get("id").getAsString();
|
||||
return UUID.fromString(uuid.replaceFirst("(\\w{8})(\\w{4})(\\w{4})(\\w{4})(\\w{12})", "$1-$2-$3-$4-$5"));
|
||||
} catch (NoSuchElementException | IOException e) {
|
||||
} catch (NoSuchElementException e) {
|
||||
// ignore, player does not exist
|
||||
} catch (IOException e) {
|
||||
BungeeCore.get().getLogger().log(Level.SEVERE, "Could not get offline player UUID " + playerName, e);
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setTeam(int team) {
|
||||
|
@ -537,7 +537,7 @@ SERVER_WORLD_ERROR=§cDas Erstellen der Welt ist fehlgeschlagen.
|
||||
|
||||
|
||||
#WhoisCommand
|
||||
WHOIS_USAGE=§c/whois [Spieler/ID] {-a}
|
||||
WHOIS_USAGE=§c/whois [Spieler/ID] \{-a\}
|
||||
WHOIS_USERNAME=§7Username§8: §e{0}
|
||||
WHOIS_UUID=§7UUID§8: §e{0}
|
||||
WHOIS_UUID_HOVER=§eUUID Kopieren
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren