hsyyid / EssentialCmds

EssentialCmds adds useful commands to Minecraft
https://bit.ly/2HPQ9tR
MIT License
31 stars 21 forks source link

Error on use /warp #96

Closed FabioZumbi12 closed 8 years ago

FabioZumbi12 commented 8 years ago

[00:43:02] [Server thread/INFO] [io.github.hsyyid.essentialcmds]: [Jim088] executed command build [00:43:07] [Server thread/INFO] [io.github.hsyyid.essentialcmds]: [Jim088] executed command warp build[00:43:07] [Server thread/ERROR] [Sponge]: Error occurred while executing command 'warp build' for source EntityPlayerMP['Jim088'/2022, l='z12', x=73,49, y=68,00, z=112,34]: No value present java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_72] at io.github.hsyyid.essentialcmds.cmdexecutors.WarpExecutor.execute(WarpExecutor.java:90) ~[WarpExecutor.class:8.1.2] at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:331) ~[CommandSpec.class:1.8.9-1890-4.1.0-BETA-1320] at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:331) ~[SimpleDispatcher.class:1.8.9-1890-4.1.0-BETA-1320] at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:268) [SpongeCommandManager.class:1.8.9-1890-4.1.0-BETA-1320] at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:80) [bd.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:815) [lm.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:794) [lm.class:?] at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:37) [ie.class:?] at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:9) [ie.class:?] at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:108) [PacketUtil.class:1.8.9-1890-4.1.0-BETA-1320] at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:39) [fh$1.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fh$1.class:?]

If i am OP or have default-perms: 1, i didnt get this error. My players already have the perms for this warp.

"essentialcmds.warp.use": 1,
"essentialcmds.warp.use.build": 1,
FabioZumbi12 commented 8 years ago

I fixed on #97