toppev / strikepractice-public

StrikePractice bug tracking and some free resources
2 stars 3 forks source link

[BUG] spectator bug #22

Closed Tmdoofking closed 10 months ago

Tmdoofking commented 1 year ago

Describe the bug spectator can push minecart and disable crystal pacement

To Reproduce Steps to reproduce the behavior:

  1. spec a match
  2. stand on obsidian / push minecart
  3. player in fight can't place crystal on obsidian

Expected behavior Able to place crystal Disable minecart collision for spectator

Checklist

Versions:

toppev commented 1 year ago

Unfortunately SP relies on (paper) spigot's ability to "allow players to place blocks even if an invisible player is there" (seems like you're already using paper so this may not be the case with crystals). You can enable spectator-stay-away: true in the config.yml and that will prevent players from getting too close, but won't fully prevent that.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

toppev commented 10 months ago

There are now several solutions:

1.

# Prevent players from flying to close to fighting players
spectator-stay-away: true
# Spectator check period in ticks
# lowering this will increase how often the above setting is checked
spectator-timer-period: 10
  1. Use the actual spectator gamemode (config.yml)
  2. Use different spigot (e.g., paper)