Commit 1a76817
Allow Towny admins to bypass PvP damage prevention (TownyAdvanced#7013)
* check if player has towny.admin permission
* fix error when referring to the attacking player
* try to fix formatting issues
* just some minor testing, will be reverted
* undo recent testing, hopefully fix formatting issues
* fix formatting issues
* comply with reviews
* Unnest if statement, make cancelled local to its own if block, extract
isTownyAdmin method for readability, update comments to reflect what is
happening.
---------
Co-authored-by: LlmDl <llmdlio@gmail.com>1 parent 0620e0f commit 1a76817
File tree
1 file changed
+13
-7
lines changed- Towny/src/main/java/com/palmergames/bukkit/towny/utils
1 file changed
+13
-7
lines changedLines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | | - | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
153 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
705 | 711 | | |
0 commit comments