Skip to content

Broken on latest Velocity (4.1.0) #22

Description

@ASTRELION

On Velocity proxy boot, SimpleWhitelist 2.0.0 has this error in the console:

[22:32:44 ERROR]: Couldn't pass ProxyInitializeEvent to simplewhitelist 2.0.0
Global tag is not allowed: tag:yaml.org,2002:net.aniby.simplewhitelist.configuration.WhitelistSettings
 in 'string', line 1, column 1:
    !!net.aniby.simplewhitelist.conf ... 
    ^

        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:310) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:218) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:141) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:167) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:179) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:508) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:488) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at net.aniby.simplewhitelist.configuration.WhitelistConfiguration.load(WhitelistConfiguration.java:53) ~[?:?]
        at net.aniby.simplewhitelist.configuration.WhitelistConfiguration.saveDefault(WhitelistConfiguration.java:93) ~[?:?]
        at net.aniby.simplewhitelist.configuration.WhitelistConfiguration.<init>(WhitelistConfiguration.java:26) ~[?:?]
        at net.aniby.simplewhitelist.VelocityWhitelistPlugin.onProxyInitialization(VelocityWhitelistPlugin.java:50) ~[?:?]
        at net.aniby.simplewhitelist.Lmbda$20.execute(Unknown Source) ~[?:?]
        at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:677) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$0(VelocityEventManager.java:542) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1474) [?:?]

Then later (due to the config not being properly loaded), this error will occur if a player joins the proxy:

[22:42:18 ERROR]: Couldn't pass PreLoginEvent to simplewhitelist 2.0.0
java.lang.NullPointerException: Cannot invoke "net.aniby.simplewhitelist.configuration.WhitelistConfiguration.getSettings()" because "this.configuration" is null
        at net.aniby.simplewhitelist.VelocityWhitelistPlugin.onPreLogin(VelocityWhitelistPlugin.java:67) ~[?:?]
        at net.aniby.simplewhitelist.Lmbda$19.execute(Unknown Source) ~[?:?]
        at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:677) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$0(VelocityEventManager.java:542) ~[velocity.jar:4.1.0-SNAPSHOT (git-b45716de-b9)]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1474) [?:?]

Velocity 4.1.0
Java 25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions