Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#376] Add support for 1.21 #378

Merged
merged 12 commits into from
Jun 22, 2024
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/buildtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ checkVersion "1.20.1" "17"
checkVersion "1.20.2" "17"
checkVersion "1.20.4" "17"
checkVersion "1.20.6" "21"
checkVersion "1.21" "21"
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img align="right" src="https://user-images.githubusercontent.com/8127996/90168671-bb49c780-dd9d-11ea-989d-479f8c1f3ea3.png" height="200" width="200">

# Orebfuscator - Anti X-Ray
[![Release Status](https://github.com/Imprex-Development/Orebfuscator/workflows/Releases/badge.svg)](https://github.com/Imprex-Development/Orebfuscator/releases/latest) [![Build Status](https://github.com/Imprex-Development/Orebfuscator/workflows/Build/badge.svg)](https://github.com/Imprex-Development/Orebfuscator/actions?query=workflow%3ABuild)
<img align="right" src="https://user-images.githubusercontent.com/8127996/90168671-bb49c780-dd9d-11ea-989d-479f8c1f3ea3.png" height="200" width="200">

Orebfuscator empowers server owners to protect their server from X-Ray Clients and Texture Packs, all while offering a high degree of configurability. This is achieved through modifying network packets without altering your game world, guaranteeing a secure and reliable experience for users. With Orebfuscator, you can tailor the settings to suit your server's needs, ensuring precise control over the visibility of specific blocks. This means that not only does Orebfuscator safeguard your world's integrity, but it also empowers you to fine-tune your Anti-X-Ray measures for the best gameplay experience.

Expand All @@ -14,9 +14,9 @@ Orebfuscator empowers server owners to protect their server from X-Ray Clients a
* Dynamic Block Visibility: Adjust block visibility based on player proximity and distance.

### Requirements
* Java 11 or higher
* Spigot, Paper, Folia or compatible forks (1.9.4 or newer)
* [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997) 5.0.0 or later
* Java 17 or higher
* Spigot, Paper, Folia or compatible forks (1.16 or newer)
* [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997) 5.2.0 or later

### Installation
1. Download [ProtocolLib](https://github.com/dmulloy2/ProtocolLib/releases)
Expand All @@ -26,6 +26,9 @@ Orebfuscator empowers server owners to protect their server from X-Ray Clients a

Still having trouble getting Orebfuscator to run check out our [common issues](https://github.com/Imprex-Development/Orebfuscator/wiki/Common-Issues).

### Legacy support
For compatibility with Java 11 or Minecraft 1.9.4 and later, you can use any legacy release prior to version 5.5.0. Please note that these legacy releases will no longer receive regular support or updates. However, they may receive critical security and vulnerability patches if necessary.

### Maven

To include the API in your Maven project, add the following configuration to your `pom.xml`:
Expand All @@ -52,7 +55,7 @@ To include the API in your Maven project, add the following configuration to you
## License:

Completely rewritten by Imprex-Development to support v1.14 and higher Minecraft version's; these portions as permissible:
Copyright (C) 2020-2023 by Imprex-Development. All rights reserved.
Copyright (C) 2020-2024 by Imprex-Development. All rights reserved.

Released under the same license as original.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

public interface AdvancedConfig {

boolean useAsyncPacketListener();

int maxMillisecondsPerTick();

int protocolLibThreads();

int obfuscationWorkerThreads();

boolean hasObfuscationTimeout();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ private Builder(NamespacedKey key) {
}

public Builder withBlockState(BlockStateProperties blockState) {
return this.withBlockState(blockState, false);
}

/** dumb version for dumb id systems (pre 1.13.2) */
@Deprecated
public Builder withBlockState(BlockStateProperties blockState, boolean ignoreDuplicates) {
if (!blockStates.add(blockState) && !ignoreDuplicates) {
if (!blockStates.add(blockState)) {
throw new IllegalStateException(String.format("duplicate block state id (%s) for block: %s", blockState.getId(), key));
}

Expand Down
33 changes: 0 additions & 33 deletions orebfuscator-nms/orebfuscator-nms-v1_10_R1/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading