[SPIGOT-242] Cannot disable friendlyfire for scoreboard teams Created: 19/Dec/14  Updated: 16/Jan/15  Resolved: 16/Jan/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: val59000 Assignee: md_5
Resolution: Fixed Votes: 0
Labels: friendlyfire, scoreboard, teams
Environment:

Windows 8.1


Plugin: no plugin loaded, just spigot

 Description   

I'm used to scoreboard features and have been doing this for a long time.
However in 1.8 (all builds until now) I cannot disable friendly fire in a team. That is to say I cannot prevent players from the same team to hurt each other.

Here is the test scenario.

  • Build spigot-1.8-R0.1-SNAPSHOT.jar (any version, I've tested it with the last one git-Spigot-47b1dff-f233e7d)
  • Create launch.bat with :
    java -Xmx2024M -Xms256M -jar spigot-1.8-R0.1-SNAPSHOT.jar nogui
    pause
  • Accept eula.txt and restart
  • Activate command blocks and restart
  • Connect with two differents accounts
  • Run these commands in commands blocks :
    /scoreboard teams add test
    /scoreboard teams option test friendlyfire false
    /scoreboard teams join test @a
  • You can check with /scoreboard teams list test that the two players are in the same team
  • You can then check the bug : the two players in the same team with friendlyfire set to false can still hurt each other.

I have also made a video with this exact same scenario.
https://www.youtube.com/watch?v=Y7rvJ8byAi4



 Comments   
Comment by val59000 [ 16/Jan/15 ]

Thank you md_5 nice work

Comment by md_5 [ 16/Jan/15 ]

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/86/overview

Comment by val59000 [ 12/Jan/15 ]

Still an issue as of build git-Spigot-081dfa5-1a84bac

Comment by val59000 [ 10/Jan/15 ]

Any idea of when this will be fixed please ? It's very annoying for pvp games.

Comment by val59000 [ 06/Jan/15 ]

Still occurring in build git-Spigot-e497721-96d09e3

Comment by val59000 [ 26/Dec/14 ]

Still occuring as of build git-Spigot-5ffe41c-264d479.
It worked in Spigot 1.7, why did it break in 1.8 ?

Comment by val59000 [ 23/Dec/14 ]

Still occuring as of build git-Spigot-52c130f-81ab957

Generated at Sat Dec 13 15:23:02 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.