Spectators able to damage current players. #90


  • Accepted
  • Defect
Open
Assigned to kitskub
  • _ForgeUser9265782 created this issue Jun 4, 2013

    What steps will reproduce the problem?
    1. Teleport to player in spectator mode. First time the command did not allow the player to teleport to them, second time it did.
    2. Hit player.
    3. Message appeared, player does take damage.

    What what do you expect to happen?
    Not spam console, not damage player?

    What do you see instead?
    Really -_-, spammed, console. Damaged player.

    What version of the MyHungerGames are you using?
    Dev 1.2 Build #43

    What version of CraftBukkit/Spigot are you using?
    Spigot 1.5.2 (866)

    Paste the files related to your problem (log/permissions file/config.yml) pastebin.com and link it.

    IMAGE: of the player getting the error when trying to tp, then TPing.
    http://i.imgur.com/ZnOGjtW.png

    Player getting error when damaging player.
    "you cannot interact with this block while spectating me.kitskub.hungergames.utils.equatableweakreference@abfc1f31"

    Error spammed in console.
    "1:59:27 AM CONSOLE: [WARNING] [MyHungerGames] Task #1651 for MyHungerGames v1.2-dev generated an exception"

    Please provide any additional information below.

  • _ForgeUser9265782 added the tags New Defect Jun 4, 2013
  • kitskub posted a comment Jun 4, 2013

    Can you provide the full error from the console?

  • _ForgeUser9265782 posted a comment Jun 4, 2013

    Maybe, server was restarted since then. The way it spammed maybe 100MB log file now ill check.

  • _ForgeUser9265782 posted a comment Jun 4, 2013
    2013-06-04 11:43:07 [WARNING] [MyHungerGames] Task #1651 for MyHungerGames v1.2-dev generated an exception
    java.lang.IllegalStateException: Not scheduled yet
    	at org.bukkit.scheduler.BukkitRunnable.getTaskId(BukkitRunnable.java:129)
    	at org.bukkit.scheduler.BukkitRunnable.cancel(BukkitRunnable.java:18)
    	at me.kitskub.hungergames.commands.user.SearchCommand$2.run(SearchCommand.java:46)
    	at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:67)
    	at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
    	at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:509)
    	at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227)
    	at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
    	at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
    	at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
    

    Also started getting the following error that stopped the game from starting up again.

    2013-06-04 14:09:48 [WARNING] [MyHungerGames] Task #533 for MyHungerGames v1.2-dev generated an exception
    java.lang.IllegalArgumentException: n must be positive
    	at java.util.Random.nextInt(Random.java:300)
    	at me.kitskub.hungergames.games.HungerGame.run(HungerGame.java:325)
    	at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:58)
    	at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
    	at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:509)
    	at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227)
    	at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
    	at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
    	at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
    
  • kitskub posted a comment Jun 4, 2013

    @Chalkie19: Go

    For future reference, please use pastie.org.


    Edited Jun 4, 2013
  • kitskub posted a comment Jun 4, 2013

    @Chalkie19: Go

    For future reference, please use pastie.org.

    http://pastie.org/8006351

  • kitskub removed a tag New Jun 4, 2013
  • kitskub added a tag Accepted Jun 4, 2013
  • _ForgeUser9265782 posted a comment Jun 4, 2013

    @kitskub: Go

    I do use pastebin, but considering the small size of the errors I though it would have been fine to put them on here in a Code BB. My apologize.

    I have disabled spectating (permissions) and have yet to run into the problem.


To post a comment, please login or register a new account.