java.lang.ClassCastException: net.minecraft.server.dedicated.DedicatedServer cannot be cast to org.spongepowered.api.entity.living.player.Player

GitHub | FabioZumbi12 | 11 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error on setbalance

    GitHub | 11 months ago | FabioZumbi12
    java.lang.ClassCastException: net.minecraft.server.dedicated.DedicatedServer cannot be cast to org.spongepowered.api.entity.living.player.Player

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.minecraft.server.dedicated.DedicatedServer cannot be cast to org.spongepowered.api.entity.living.player.Player

      at com.erigitic.commands.SetBalanceCommand.execute()
    2. com.erigitic.commands
      SetBalanceCommand.execute
      1. com.erigitic.commands.SetBalanceCommand.execute(SetBalanceCommand.java:31)[SetBalanceCommand.class:?]
      1 frame