Stargate Rewritten

Stargate Rewritten

241 Downloads

[TMS TMP003] Issue with default network conflict management.

Pheotis opened this issue ยท 0 comments

commented

When a user with sg.preset.gatemaker creates a gate with {central} (a personal gate conflicting with the default network), the following stack trace occurs:

[09:44:51 INFO]: [Stargate] --------- Lapis1.gate ---------
[09:44:51 INFO]: [Stargate] Checking create permissions
[09:44:51 INFO]: [Stargate]  Checking permission 'sg.create.type.6'. returned false
[09:44:51 INFO]: [Stargate] Formatted TranslatableMessage 'DENY' to 'Access denied!'
[09:44:51 INFO]: [Stargate]  player has permission = false
[09:44:51 INFO]: [Stargate]  Event was denied due to lack of permission or an add-on
[09:45:16 INFO]: [Stargate] Checking permissions for entity CraftPlayer{name=Pheotis}
[09:45:17 INFO]: [Stargate] Ended up with: PERSONAL, a4264130-bd5e-47ff-a8cb-ed654fded91d
[09:45:17 ERROR]: Could not pass event SignChangeEvent to Stargate v1.0.0.13-ALPHA
java.lang.NullPointerException: Cannot invoke "String.split(String)" because "this.name" is null
        at org.sgrewritten.stargate.network.LocalNetwork.loadAsPersonalNetwork(LocalNetwork.java:109) ~[artefact.jar:?]
        at org.sgrewritten.stargate.network.LocalNetwork.load(LocalNetwork.java:72) ~[artefact.jar:?]
        at org.sgrewritten.stargate.network.LocalNetwork.<init>(LocalNetwork.java:62) ~[artefact.jar:?]
        at org.sgrewritten.stargate.database.SQLDatabase.createNetwork(SQLDatabase.java:355) ~[artefact.jar:?]
        at org.sgrewritten.stargate.network.StargateRegistry.createNetwork(StargateRegistry.java:108) ~[artefact.jar:?]
        at org.sgrewritten.stargate.util.NetworkCreationHelper.selectNetwork(NetworkCreationHelper.java:131) ~[artefact.jar:?]
        at org.sgrewritten.stargate.util.NetworkCreationHelper.selectNetwork(NetworkCreationHelper.java:114) ~[artefact.jar:?]
        at org.sgrewritten.stargate.listener.BlockEventListener.onSignChange(BlockEventListener.java:180) ~[artefact.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor28.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-307]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.updateSignText(ServerGamePacketListenerImpl.java:3580) ~[?:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleSignUpdate$32(ServerGamePacketListenerImpl.java:3536) ~[?:?]
        at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.2.jar:git-Paper-307]
        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:1341) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:185) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1318) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1311) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1289) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
>