Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 15:20:35 +01:00
Relax GameProfileRequestEvent#setGameProfile to allow faking even in online-mode
Dieser Commit ist enthalten in:
Ursprung
d0cbcf65e9
Commit
24c9fc0ef1
@ -60,13 +60,11 @@ public final class GameProfileRequestEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the game profile to use for this connection. It is invalid to use this method on an
|
||||
* online-mode connection.
|
||||
* Sets the game profile to use for this connection.
|
||||
*
|
||||
* @param gameProfile the profile for this connection, {@code null} uses the original profile
|
||||
*/
|
||||
public void setGameProfile(@Nullable GameProfile gameProfile) {
|
||||
Preconditions.checkState(!onlineMode, "Profiles can not be faked in online mode!");
|
||||
this.gameProfile = gameProfile;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren