chasem-dev / UniversalMarket

A MySQL based Item Market system powered by Sponge
MIT License
7 stars 13 forks source link

Market on Console Error #7

Closed GershonR closed 5 years ago

GershonR commented 6 years ago

If you try to use any market command on the console

[10:02:49] [Server thread/INFO]: Error occurred while executing command: net.minecraft.server.dedicated.DedicatedServer cannot be cast to org.spongepowered.api.entity.living.player.Player
[10:02:49] [Server thread/ERROR] [Sponge]: Error occurred while executing command 'um reload' for source DedicatedServer: net.minecraft.server.dedicated.DedicatedServer cannot be cast to org.spongepowered.api.entity.living.player.Player
java.lang.ClassCastException: net.minecraft.server.dedicated.DedicatedServer cannot be cast to org.spongepowered.api.entity.living.player.Player
        at com.xwaffle.universalmarket.commands.MarketCommand.process(MarketCommand.java:32) ~[MarketCommand.class:?]
        at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:341) ~[SimpleDispatcher.class:1.12.2-2611-7.1.0-BETA-2916]
        at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:328) [SpongeCommandManager.class:1.12.2-2611-7.1.0-BETA-2916]
        at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) [dh.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:432) [nz.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]

SpongeForge: 1.12.2-2611-7.1.0-BETA-2916