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

Error #232

Closed
TheFaik opened this issue Aug 12, 2024 · 11 comments
Closed

Error #232

TheFaik opened this issue Aug 12, 2024 · 11 comments

Comments

@TheFaik
Copy link

TheFaik commented Aug 12, 2024

[NBTAPI] [NBTAPI] This Server-Version(1.21.1-R0.1-SNAPSHOT) is not supported by this NBT-API Version(2.13.1) located in AnarchyExploitFixes. The NBT-API will try to work as good as it can! Some functions may not work!
[23:42:00 INFO]: [NBTAPI] [NBTAPI] Using the plugin 'AnarchyExploitFixes' to create a bStats instance!
[23:42:00 ERROR]: Could not pass event PlayerQuitEvent to AnarchyExploitFixes v2.7.2-SNAPSHOT
java.lang.ExceptionInInitializerError: null
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.libs.nbtapi.NBTItem.getCompound(NBTItem.java:107) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.libs.nbtapi.NBTCompound.getResolvedObject(NBTCompound.java:100) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.libs.nbtapi.NBTCompound.asNBTString(NBTCompound.java:1422) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.libs.nbtapi.NBTCompound.toString(NBTCompound.java:1383) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.utils.ItemUtil.lambda$getApproximateByteSize$0(ItemUtil.java:75) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.libs.nbtapi.NBT.get(NBT.java:102) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.utils.ItemUtil.getApproximateByteSize(ItemUtil.java:74) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.modules.patches.BookBan.sanitizeInventory(BookBan.java:137) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.modules.patches.BookBan.onLeave(BookBan.java:151) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:72) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:60) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.players.PlayerList.remove(PlayerList.java:637) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.players.PlayerList.remove(PlayerList.java:619) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.removePlayerFromWorld(ServerGamePacketListenerImpl.java:2127) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2107) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.onDisconnect(ServerGamePacketListenerImpl.java:2094) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.network.Connection.handleDisconnection(Connection.java:911) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:262) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1821) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:525) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1615) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1318) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "pk" is null
        at java.base/java.util.ImmutableCollections$MapN.probe(ImmutableCollections.java:1328) ~[?:?]
        at java.base/java.util.ImmutableCollections$MapN.get(ImmutableCollections.java:1242) ~[?:?]
        at java.base/java.util.ImmutableCollections$AbstractImmutableMap.getOrDefault(ImmutableCollections.java:1097) ~[?:?]
        at io.papermc.paper.pluginremap.reflect.PaperReflection.mapDeclaredFieldName(PaperReflection.java:79) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at io.papermc.reflectionrewriter.runtime.AbstractDefaultRulesReflectionProxy.getDeclaredField(AbstractDefaultRulesReflectionProxy.java:90) ~[reflection-rewriter-runtime-0.0.3.jar:?]
        at io.papermc.paper.pluginremap.reflect.PaperReflectionHolder.getDeclaredField(Unknown Source) ~[leaf-1.21.1.jar:1.21.1-DEV-ddf3df8]
        at AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar/me.xginko.aef.libs.nbtapi.NBTReflectionUtil.<clinit>(NBTReflectionUtil.java:59) ~[AnarchyExploitFixes-Folia-2.7.2-SNAPSHOT.jar:?]
        ... 27 more
@xGinko
Copy link
Owner

xGinko commented Aug 12, 2024

Yeah the shaded NBT API version is too old to recognize 1.21.1.

Time for a new AEF release

@TheFaik
Copy link
Author

TheFaik commented Aug 12, 2024

НБТ-ВЕРСИЯ не поддерживает 1.21.1, напишите им

изображение

@xGinko
Copy link
Owner

xGinko commented Aug 12, 2024

Can you visually mark it more, I don't know where to look

@Imptovskii
Copy link
Contributor

Change in me.xginko.aef.wrapper.gradle.kts

api("de.tr7zw:item-nbt-api:2.13.1") // NBT API for cross version nbt tag handling

to

api("de.tr7zw:item-nbt-api:2.13.2") // NBT API for cross version nbt tag handling

And build:

.\gradlew.bat build

@Bedrock3358
Copy link

Not just PlayerQuitEvent, but tons of other stuff that it can't pass events to

@Bedrock3358
Copy link

Bedrock3358 commented Aug 12, 2024

PlayerQuitEvent issues fixed in latest actions but namely PlayerArmorChangeEvent and PlayerInteractEvent, among others, are still erroring.

Paste of errors if you need them.
errors.txt

EDIT
PlayerInteractEvent error throws every time you even swing, so a pretty big issue.

@Bedrock3358
Copy link

Probably something to do with player nbt data checking (for illegals), as it only throws PlayerInteractEvent when you actually interact with something in your hand or with a chest in some way.

@xGinko
Copy link
Owner

xGinko commented Aug 12, 2024

I know where its happening, been using NBT.get() when I should have been using NBT.readNBT()

@xGinko
Copy link
Owner

xGinko commented Aug 12, 2024

try the recent dev build, also use the folia jar for your version

@xGinko xGinko mentioned this issue Aug 13, 2024
xGinko added a commit that referenced this issue Aug 13, 2024
- Added 1.21.1 compatibility (#232)
- Made map-cursor-lag-patch work on 1.12.2
- Replaced low-tps-physics modules with regional-activity modules. Any sort of activity that has the potential to lag or kill the server when happening at high frequencies can now be individually managed and configured. The base concept for this was suggested by @xKumorio (3b3t.org): Any time an activity is happening for the first time, the plugin will check in a radius around it for more activity of the same kind. If it exceeds a certain count within the configured timeframe, all activity in that radius (region) will be cancelled.
The only catch: Config defaults are pretty rough and will most likely need individual adjustments. Tests with a variety of lagmachine designs were pretty promising though. I would very much recommend to check out the entire `lag-preventions.regional-activity` section.
- Added a module against lag generated by forcing the server to send large ItemStacks. (Ex. fill chest with books, spam open chest). This is especially a problem with older game versions. Previous modules that were basically a worse attempt at fixing this issue have been removed in favor of this one. Basically works like an anti-spam that starts taking action once the player is exceeding a certain byte-size of requested data within a timeframe. Players will first be rate-limited and if they keep requesting data, locked out from requesting more for a configurable time.
- Replaced all deprecated NBT-API calls with the new ones. This makes AEF handling NBT more reliable.
- Added an illegal item module against illegal potion effects
- Added an illegal item module against illegal item attributes
- Fully reworked configurations for Crystal Aura, Anchor Aura and Bed Aura: You can now set place and break cooldowns per Hand on the Folia jar!
- Added a patch against MultiTask
- Rewrote the patch against SilentSwitch
- Improved the burrow patch slightly for more configurability
- Added a patch against PortalGodMode (#157)
- Improved compatibility with lower game versions by using reflections for TPS and MSPT. This also improved compatibility with unsupported older versions.
- Improved world height configuration and detection for Legacy users
- Fixed AEF being unable to detect player respawns on Folia
- Code optimizations and performance improvements
@xGinko xGinko closed this as completed Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Imptovskii @xGinko @TheFaik @Bedrock3358 and others