Skip to content

WorldGuard ExtraFlags Plus v4.3.10

Choose a tag to compare

@gbpii gbpii released this 18 Dec 21:13
· 79 commits to master since this release

Disable Collision Flag - Major Refactor

Implementation Changes

  • Minecraft teams: Now uses Minecraft's native scoreboard team system (the only reliable method for entity-to-entity collision)
  • Hybrid team-based approach:
    • If a player is the only member of their team, the plugin temporarily modifies that team's collision rule
    • If a player is in a team with multiple members, creates a per-player team (WGC_<hash>) to avoid affecting others
    • If a player has no team, adds them to a per-player team with collision disabled

TAB Plugin Integration

  • Full API integration: Added TAB plugin support with API integration
  • Priority handling: TAB integration takes priority over direct team manipulation when TAB is installed
  • Conflict prevention: Uses TAB's API to set collision rules, preventing TAB from overwriting collision settings
  • Automatic fallback: If TAB is not available, automatically falls back to direct team manipulation

Without TAB (Normal Usage)

  • Direct team manipulation: Uses Bukkit's Scoreboard API to directly modify team collision rules
  • Team restoration: Properly restores original team collision rules when players leave regions
  • Per-player teams: Creates temporary per-player teams when needed to avoid conflicts with shared teams
  • Cleanup on disable: Properly cleans up all teams and restores original settings when plugin disables

Warnings and Compatibility

  • Load-time warning: Displays a warning on plugin load about potential conflicts with team-using plugins
  • Known plugin detection: Warns about potential conflicts with couple known plugin names
  • TAB support indication: Shows supported plugins

Documentation Updates

  • Updated documentation: Comprehensive documentation file updated with TAB integration details
  • Troubleshooting guide: Added troubleshooting information for team conflicts