guardfix-1.0.123.jar
Curse Maven Snippet
What's new
FTB Teams / PvP protection: no more parrying or executing your teammates (1.0.121 - 1.0.123)
- Reported on CurseForge: "Sometimes I parry and execute my friend; I also thought FTB Team will not let us do that". Two separate things were happening: a teammate's attack could be guarded / parried (and so triggered the groggy state), and a groggy player could then be executed by Combat Evolution, which never looks at the server's PvP setting or at teams.
- New
blockTeamFriendlyFire(default on, needs FTB Teams): players on the same FTB team (party) can no longer hurt each other at all, exactly as if PvP were disabled for that pair. A teammate's attack is dropped before it lands, so there is no hit, no hit reaction and nothing to guard or parry:- Epic Fight, Weapons of Miracles and Epic Fight Nightfall attack animations skip the teammate when picking targets (the same filter Epic Fight itself uses when the server has PvP off);
- everything else attributed to a teammate (arrows and other projectiles, other mods' damage) is refused at the start of
ServerPlayer#hurt, the same place vanilla refuses player-vs-player damage when PvP is off.
- New
blockPlayerExecutionForTeamOrNoPvp(default on, needs Combat Evolution): a player can no longer execute or assassinate another player when they are on the same FTB team, or when the server has PvP disabled (this second rule works without FTB Teams). Executions of mobs, and executions by mobs, are untouched. The execution prompt is also hidden for teammates. - Only a real FTB party counts as a team: players who merely each have their own personal FTB team are, as far as FTB Teams is concerned, not on the same team. Both options are server-side; on a dedicated server the mod has to be installed on the server.
- Logging (bounded, so it never floods the log):
guardfix: [team] friendly-fire|execution A -> B refused (reason)at most once per pair every 30 seconds and 40 lines per session. WithdebugLoggingEnabledthere is also a "NOT blocked: not on the same FTB team (FTB Teams: ... / ...)" line that shows which team each player was resolved to. - New command
/guardfix teamcheck [player](read-only, usable by anyone): shows whether FTB Teams and Combat Evolution are installed, the server's PvP setting, both config switches, whether each of the three hooks was really applied (APPLIED/MISSING), your team as FTB Teams resolves it, and, with a player name, what guardfix would do for that pair. - Note: this was built without being able to test with two players. The checks done so far are the startup detection,
/guardfix teamcheck, and verifying the hook targets against the installed Epic Fight, Combat Evolution and FTB Teams jars. If a teammate can still hurt or execute you, please send the[team]lines fromlatest.logand the output of/guardfix teamcheck <teammate>.
Notes
- Both new keys are added to your existing
guardfix-common.tomlwith their defaults (on) on first start; nothing else in your saved config changes. - FTB Teams and Combat Evolution are optional: without them the matching part simply stays off and nothing else changes.
- The shield animations for the weapon + shield combo (1.0.120) are described in
CHANGELOG_1.0.110-1.0.120.md.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects