-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.20.40 * 1.20.40-R1 Protocol Release (#1401) * Made BlockWood use the same WoodType Block state as the other blocks (OLD_LOG_TYPE was deprecated) * Fixed BlockRedstoneRepeater Direction * Fixed block_mappings for log axis * Removed doubled log2 section * Updated Release Version to 1.20.30-r2 * release +u * Updated Release Version to 1.20.30-r2 (#1399) * Made BlockWood use the same WoodType Block state as the other blocks (OLD_LOG_TYPE was deprecated) * Fixed BlockRedstoneRepeater Direction * Fixed block_mappings for log axis * Removed doubled log2 section * Updated Release Version to 1.20.30-r2 * release +u * Fixed UPDATE blocks causing a lot of issues in World generation * Fixed Facing Direction property error on BlockAmethystBud * Realized that BLOCK_FACE is required instead of FACING_DIRECTION * Fixed AmethystBud Block FACING_DIRECTION property (#1400) * Made BlockWood use the same WoodType Block state as the other blocks (OLD_LOG_TYPE was deprecated) * Fixed BlockRedstoneRepeater Direction * Fixed block_mappings for log axis * Removed doubled log2 section * Updated Release Version to 1.20.30-r2 * release +u * Fixed UPDATE blocks causing a lot of issues in World generation * Fixed Facing Direction property error on BlockAmethystBud * Realized that BLOCK_FACE is required instead of FACING_DIRECTION * release +u * Updated Block Direction states from Chest, EnderChest and StoneCutter to CARDINAL_DIRECTION TODO: Update Hashes in creativeitems.json * Retention DisconnectPacket_v618 --------- Co-authored-by: Verox001 <verox@cimeyclust.com>
- Loading branch information
Showing
17 changed files
with
226 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
src/main/java/cn/nukkit/network/protocol/types/DisconnectFailReason.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
package cn.nukkit.network.protocol.types; | ||
|
||
public enum DisconnectFailReason { | ||
UNKNOWN, | ||
CANT_CONNECT_NO_INTERNET, | ||
NO_PERMISSIONS, | ||
UNRECOVERABLE_ERROR, | ||
THIRD_PARTY_BLOCKED, | ||
THIRD_PARTY_NO_INTERNET, | ||
THIRD_PARTY_BAD_IP, | ||
THIRD_PARTY_NO_SERVER_OR_SERVER_LOCKED, | ||
VERSION_MISMATCH, | ||
SKIN_ISSUE, | ||
INVITE_SESSION_NOT_FOUND, | ||
EDU_LEVEL_SETTINGS_MISSING, | ||
LOCAL_SERVER_NOT_FOUND, | ||
LEGACY_DISCONNECT, | ||
USER_LEAVE_GAME_ATTEMPTED, | ||
PLATFORM_LOCKED_SKINS_ERROR, | ||
REALMS_WORLD_UNASSIGNED, | ||
REALMS_SERVER_CANT_CONNECT, | ||
REALMS_SERVER_HIDDEN, | ||
REALMS_SERVER_DISABLED_BETA, | ||
REALMS_SERVER_DISABLED, | ||
CROSS_PLATFORM_DISALLOWED, | ||
CANT_CONNECT, | ||
SESSION_NOT_FOUND, | ||
CLIENT_SETTINGS_INCOMPATIBLE_WITH_SERVER, | ||
SERVER_FULL, | ||
INVALID_PLATFORM_SKIN, | ||
EDITION_VERSION_MISMATCH, | ||
EDITION_MISMATCH, | ||
LEVEL_NEWER_THAN_EXE_VERSION, | ||
NO_FAIL_OCCURRED, | ||
BANNED_SKIN, | ||
TIMEOUT, | ||
SERVER_NOT_FOUND, | ||
OUTDATED_SERVER, | ||
OUTDATED_CLIENT, | ||
NO_PREMIUM_PLATFORM, | ||
MULTIPLAYER_DISABLED, | ||
NO_WIFI, | ||
WORLD_CORRUPTION, | ||
NO_REASON, | ||
DISCONNECTED, | ||
INVALID_PLAYER, | ||
LOGGED_IN_OTHER_LOCATION, | ||
SERVER_ID_CONFLICT, | ||
NOT_ALLOWED, | ||
NOT_AUTHENTICATED, | ||
INVALID_TENANT, | ||
UNKNOWN_PACKET, | ||
UNEXPECTED_PACKET, | ||
INVALID_COMMAND_REQUEST_PACKET, | ||
HOST_SUSPENDED, | ||
LOGIN_PACKET_NO_REQUEST, | ||
LOGIN_PACKET_NO_CERT, | ||
MISSING_CLIENT, | ||
KICKED, | ||
KICKED_FOR_EXPLOIT, | ||
KICKED_FOR_IDLE, | ||
RESOURCE_PACK_PROBLEM, | ||
INCOMPATIBLE_PACK, | ||
OUT_OF_STORAGE, | ||
INVALID_LEVEL, | ||
DISCONNECT_PACKET_DEPRECATED, | ||
BLOCK_MISMATCH, | ||
INVALID_HEIGHTS, | ||
INVALID_WIDTHS, | ||
CONNECTION_LOST, | ||
ZOMBIE_CONNECTION, | ||
SHUTDOWN, | ||
REASON_NOT_SET, | ||
LOADING_STATE_TIMEOUT, | ||
RESOURCE_PACK_LOADING_FAILED, | ||
SEARCHING_FOR_SESSION_LOADING_SCREEN_FAILED, | ||
CONN_PROTOCOL_VERSION, | ||
SUBSYSTEM_STATUS_ERROR, | ||
EMPTY_AUTH_FROM_DISCOVERY, | ||
EMPTY_URL_FROM_DISCOVERY, | ||
EXPIRED_AUTH_FROM_DISCOVERY, | ||
UNKNOWN_SIGNAL_SERVICE_SIGN_IN_FAILURE, | ||
XBL_JOIN_LOBBY_FAILURE, | ||
UNSPECIFIED_CLIENT_INSTANCE_DISCONNECTION, | ||
CONN_SESSION_NOT_FOUND, | ||
CONN_CREATE_PEER_CONNECTION, | ||
CONN_ICE, | ||
CONN_CONNECT_REQUEST, | ||
CONN_CONNECT_RESPONSE, | ||
CONN_NEGOTIATION_TIMEOUT, | ||
CONN_INACTIVITY_TIMEOUT, | ||
STALE_CONNECTION_BEING_REPLACED, | ||
REALMS_SESSION_NOT_FOUND, | ||
BAD_PACKET | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/cn/nukkit/network/protocol/v618/DisconnectPacket_v618.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package cn.nukkit.network.protocol.v618; | ||
|
||
import cn.nukkit.network.protocol.DataPacket; | ||
import cn.nukkit.network.protocol.ProtocolInfo; | ||
import lombok.ToString; | ||
|
||
/** | ||
* @since 15-10-12 | ||
*/ | ||
@ToString | ||
@Deprecated(since = "1.20.40-r1") | ||
public class DisconnectPacket_v618 extends DataPacket { | ||
public static final byte NETWORK_ID = ProtocolInfo.DISCONNECT_PACKET; | ||
|
||
public boolean hideDisconnectionScreen = false; | ||
public String message; | ||
|
||
@Override | ||
public byte pid() { | ||
return NETWORK_ID; | ||
} | ||
|
||
@Override | ||
public void decode() { | ||
this.hideDisconnectionScreen = this.getBoolean(); | ||
this.message = this.getString(); | ||
} | ||
|
||
@Override | ||
public void encode() { | ||
this.reset(); | ||
this.putBoolean(this.hideDisconnectionScreen); | ||
if (!this.hideDisconnectionScreen) { | ||
this.putString(this.message); | ||
} | ||
} | ||
|
||
|
||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.