BG-Software-LLC / SSB-SlimeWorldManager

An addon for SuperiorSkyblock2 that adds SlimeWorldManager support for worlds management!
22 stars 19 forks source link

Error creating new island when using SlimeWorlds Module #52

Closed Blast15 closed 5 months ago

Blast15 commented 6 months ago

Minecraft's Version

asp-server.jar

Plugin's Version

1.20.4

Describe the bug

[SuperiorSkyblock2] Plugin SuperiorSkyblock2 v2024.1-b218 generated an exception while executing task 70 java.lang.NullPointerException: Cannot invoke "com.infernalsuite.aswm.api.loaders.SlimeLoader.worldExists(String)" because "this.slimeLoader" is null at com.bgsoftware.ssbslimeworldmanager.swm.impl.asp.SWMAdapter.createOrLoadWorld(SWMAdapter.java:47) ~[?:?] at com.bgsoftware.ssbslimeworldmanager.hook.SlimeWorldsProvider.lambda$getSlimeWorldAsBukkitAsync$2(SlimeWorldsProvider.java:184) ~[?:?] at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679] at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[slimeworldmanager-1.20.4.jar:git-SlimeWorldManager-15679] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[slimeworldmanager-1.20.4.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.lang.Thread.run(Thread.java:1583) ~[?:?]

To Reproduce

The error occurred when I used the create island command. It showed an error on the console and stuck the island creation process right at that time.

Additional Information

No response

OmerBenGera commented 5 months ago

This may occur if the data source you configured is not valid Did you configure it properly?

Blast15 commented 5 months ago

I tried but it still doesn't work

modules/SlimeWorldIslands:

data-source: 'slime'
unload-delay: 10

SlimeWorldManager:

file:
    path: slime
mysql:
    enabled: false
    host: 127.0.0.1
    port: 3306
    username: slimeworldmanager
    password: ''
    database: slimeworldmanager
    usessl: false
    sqlUrl: jdbc:mysql://{host}:{port}/{database}?autoReconnect=true&allowMultiQueries=true&useSSL={usessl}
mongodb:
    enabled: false
    host: 127.0.0.1
    port: 27017
    auth: admin
    username: slimeworldmanager
    password: ''
    database: slimeworldmanager
    collection: worlds
    uri: ''
redis:
    enabled: false
    uri: redis://127.0.0.1/
api:
    enabled: false
    ignoreSslCertificate: false
    username: ''
    token: ''
    url: ''