Chance Cubes

Chance Cubes

46M Downloads

Exception during phase body

ultima84 opened this issue ยท 1 comments

commented

Hi there,

I'm running a Sky Factory 3 server with sponge and a few additional plugins.
When ever a player attempts to break a chance cube, nothing happens.
I had a look in the logs and found the following error:

[23:37:57] [Server thread/INFO] [chancecubes/]: Triggered the reward with the name of: chancecubes:Nether_Jelly_Fish
[23:37:57] [Server thread/INFO] [STDOUT/]: [minetweaker.mc1102.server.MCServer:getPlayer:45]: Unsupported command sender: chanceCubes.util.CCubesCommandSender@1ceda811 defaulting to server player!
[23:37:57] [Server thread/INFO] [STDOUT/]: [minetweaker.mc1102.server.MCServer:getPlayer:46]: player name: Chance Cubes
[23:37:57] [Server thread/INFO] [STDOUT/]: [minetweaker.mc1102.server.MCServer:getPlayer:47]: Please report to mod author if this is incorrect!
[23:37:57] [Server thread/TRACE] [Sponge/]: //
[23:37:57] [Server thread/TRACE] [Sponge/]: /* Exception during phase body */
[23:37:57] [Server thread/TRACE] [Sponge/]: /
/
[23:37:57] [Server thread/TRACE] [Sponge/]: /* Something happened trying to run the main body of a phase org.spongepowered.common.event.tracking.phase.packet.InteractionPacketState@34cd1d95 /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
PhaseContext : /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Affected World : WorldServer{LevelName=world, DimensionId=0, DimensionType=minecraft:overworld} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Source /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: PacketPlayer /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Packet /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: net.minecraft.network.play.client.CPacketPlayerDigging@1c542d5f /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Cursor /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: SpongeItemStackSnapshot{itemType=Item{Name=none}, count=1} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: IgnoringCreative /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: false /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: CapturedEntities /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: CapturedEntitiesSupplier{Captured=0} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: CapturedBlocks /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: CapturedBlocksSupplier{Captured=1} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Owner /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Notifier /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Phases remaining : /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Phase: org.spongepowered.common.event.tracking.phase.packet.InteractionPacketState@34cd1d95 /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Context: /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Source /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: PacketPlayer /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Packet /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: net.minecraft.network.play.client.CPacketPlayerDigging@1c542d5f /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Cursor /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: SpongeItemStackSnapshot{itemType=Item{Name=none}, count=1} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: IgnoringCreative /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: false /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: CapturedEntities /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: CapturedEntitiesSupplier{Captured=0} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: CapturedBlocks /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: CapturedBlocksSupplier{Captured=1} /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Owner /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
- Name: Notifier /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Object: EntityPlayerMP['Ahmaz'/3050756, l='world', x=19952.96, y=61.00, z=356.41] /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
Stacktrace: /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
java.lang.ClassCastException: chanceCubes.util.CCubesCommandSender cannot be cast to net.minecraft.entity.player.EntityPlayer /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
com.forgeguard.commands.CommandRegion.func_184882_a(CommandRegion.java:501) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.command.WrapperCommandSource.(WrapperCommandSource.java:67) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.command.WrapperCommandSource.(WrapperCommandSource.java:51) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.command.WrapperCommandSource$Located.(WrapperCommandSource.java:130) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.command.WrapperCommandSource.of(WrapperCommandSource.java:122) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1082) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.rewards.type.CommandRewardType.triggerCommand(CommandRewardType.java:49) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.rewards.type.CommandRewardType.trigger(CommandRewardType.java:37) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.rewards.type.CommandRewardType.trigger(CommandRewardType.java:12) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.rewards.type.BaseRewardType.trigger(BaseRewardType.java:20) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.rewards.defaultRewards.BasicReward.trigger(BasicReward.java:27) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.registry.ChanceCubeRegistry.triggerRandomReward(ChanceCubeRegistry.java:511) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
chanceCubes.blocks.BlockChanceCube.removedByPlayer(BlockChanceCube.java:69) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.management.PlayerInteractionManager.removeBlock(PlayerInteractionManager.java:275) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:333) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.management.PlayerInteractionManager.func_180785_a(PlayerInteractionManager.java:248) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:642) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:40) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:10) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.network.PacketUtil.lambda$onProcessPacket$0(PacketUtil.java:157) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.event.tracking.CauseTracker.switchToPhase(CauseTracker.java:156) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:156) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zje000(SourceFile:539) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
java.util.concurrent.FutureTask.run(Unknown Source) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.util.Util.func_181617_a(SourceFile:45) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) /
[23:37:57] [Server thread/TRACE] [Sponge/]: /
java.lang.Thread.run(Unknown Source) */
[23:37:57] [Server thread/TRACE] [Sponge/]: /**************************************************************************************************************************************************/

Any ideas as to how I can get it working?

commented

This seems to be a problem with minetweaker not accepting the command rewards that Chance Cubes has

[23:37:57] [Server thread/INFO] [STDOUT/]: [minetweaker.mc1102.server.MCServer:getPlayer:45]: Unsupported command sender: chanceCubes.util.CCubesCommandSender@1ceda81 defaulting to server player!
[23:37:57] [Server thread/INFO] [STDOUT/]: [minetweaker.mc1102.server.MCServer:getPlayer:46]: player name: Chance Cubes
[23:37:57] [Server thread/INFO] [STDOUT/]: [minetweaker.mc1102.server.MCServer:getPlayer:47]: Please report to mod author if this is incorrect!

Not sure what minetweaker is trying todo or what your setup is but I would start there and get more info on why minetweaker is disallowing the command to execute.