Code Monkey home page Code Monkey logo

Comments (7)

HatzulMagic avatar HatzulMagic commented on September 27, 2024 1

found a bug, when in the overworld and not in the bskyblock world, and trying to disable a flag is /is settings or modify one this happens

[11:17:01 ERROR]: Could not pass event InventoryClickEvent to BentoBox v2.1.1
java.lang.UnsupportedOperationException: null
        at java.util.AbstractList.add(AbstractList.java:153) ~[?:?]
        at java.util.AbstractList.add(AbstractList.java:111) ~[?:?]
        at world.bentobox.bentobox.api.flags.clicklisteners.CycleClick.leftShiftClick(CycleClick.java:154) ~[BentoBox-2.1.1.jar:?]
        at world.bentobox.bentobox.api.flags.clicklisteners.CycleClick.lambda$onClick$0(CycleClick.java:94) ~[BentoBox-2.1.1.jar:?]
        at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at world.bentobox.bentobox.api.flags.clicklisteners.CycleClick.onClick(CycleClick.java:84) ~[BentoBox-2.1.1.jar:?]
        at world.bentobox.bentobox.listeners.PanelListenerManager.lambda$onInventoryClick$0(PanelListenerManager.java:56) ~[BentoBox-2.1.1.jar:?]
        at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at world.bentobox.bentobox.listeners.PanelListenerManager.onInventoryClick(PanelListenerManager.java:54) ~[BentoBox-2.1.1.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor789.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:git-Purpur-2148]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3176) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:54) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1488) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1465) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1388) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1366) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1255) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.4.jar:git-Purpur-2148]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]

from bentobox.

tastybento avatar tastybento commented on September 27, 2024

Hmm, I can' replicate this yet.
Screenshot 2024-03-11 at 7 33 10 PM
Screenshot 2024-03-11 at 7 32 20 PM

What you can do is use the bsb why <player_name> command to turn on logging of protection. It'll tell you why the player can do something or not. e.g. this is what I get:

[02:35:57] [Server thread/INFO]: BoxManager issued server command: /bsb why tastybentotoo
[02:36:22] [Server thread/INFO]: [BentoBox] Why: PlayerPortalEvent in world bskyblock_world at 810,85,792
[02:36:22] [Server thread/INFO]: [BentoBox] Why: tastybentotoo NETHER_PORTAL - NOT_ALLOWED_ON_ISLAND

from bentobox.

HatzulMagic avatar HatzulMagic commented on September 27, 2024

hmm, strange
i get no console report when trying to teleport via nether portal in the player island
i must specify that overworld nether is disabled in the server config files, so this must be the issue?

from bentobox.

tastybento avatar tastybento commented on September 27, 2024

If you get not report, then the event is not being fired and that's why it cannot be trapped and stopped.

Can you share any config regarding the nether? What did you do specifically to disable the nether in the other world? I'll try and copy that and see if I can replicate the same thing.

from bentobox.

HatzulMagic avatar HatzulMagic commented on September 27, 2024

in the server.properties

allow-nether=false

from bentobox.

tastybento avatar tastybento commented on September 27, 2024

Yes, that's the issue. Unfortunately, if nether is switched off, then Bukkit doesn't fire an event for th nether portal, but the nether world does exist in the BSkyBlock world so the server teleports you there. I don't see a way around this unfortunately.

from bentobox.

HatzulMagic avatar HatzulMagic commented on September 27, 2024

i see, so there's no fixing in this

from bentobox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.