Commit Graph
63 Commits
Author SHA1 Message Date
AdamandGitHub 0e3a2e9791 Fix new depth not being set correctly (#1736) 2022-01-04 21:24:35 -08:00
AdamandGitHub 3562a238dd Clean up events for add-ons (#1706)
* Restructure and document events
2021-12-10 12:14:40 -08:00
AdamandGitHub 9badf7e829 Fix 1.18 biome issues, maintain 1.17 compat (#1694) 2021-12-10 12:06:56 -08:00
AdamandGitHub a7cb4a0c78 Don't fire EntityDamageByEntityEvent when renaming (#1680)
Fixes incompatibility with mcMMO's health bar displays
2021-12-05 11:07:21 -08:00
AdamandGitHub c64baf0baa Sanitize claim depth on extend/resize (#1598)
Closes #312
2021-12-05 10:50:15 -08:00
AdamandGitHub 4bb31bc49d Update Java and fix AppVeyor (#1663)
* Update Java and fix AppVeyor

Target Java 16
Run CI using Java 17
Use provided Maven installation instead of relying on mirror link
Remove Java 7 memory limitation settings

* Fix Jitpack build for Java > 8

Jitpack uses Java 8 by default. While their (very minimal) explanation of settings suggests specifying `jdk: [ openjdk17 ]` would be enough, it does not appear to work. Not sure if that's just an issue with their image not including JDK17 yet or something, but this does function.
2021-12-05 10:32:27 -08:00
AdamandGitHub 6debf368c9 Convert to YAML issue template (#1638) 2021-10-27 12:42:15 -07:00
AdamandGitHub a844e39865 Fix some issues with splash potions (#1636)
- Fix NPE on non-player thrower
- Fix non-player thrower warning console when blocked
- Fix only first entity being saved
- Allow dispensers inside the same claim to harm entities with potions (consistent with arrows)
- Fix spamming player on multi-hit/multi-effect
2021-10-25 09:38:33 -07:00
AdamandGitHub 219cf6edd1 Fix max depth below world height (#1502) 2021-08-02 08:32:23 -07:00
AdamandGitHub d930e45440 Fix falling block and vehicle block change handling (#1424) 2021-07-16 09:22:15 -07:00
AdamandGitHub 528f9f9777 Update to 1.17 (#1448)
* Update to include 1.17 materials and tags

* Use world height for claim max height

* Account for worlds with min height < 0

Fix restore not working under y 0
Change default max claim depth to integer min value
Fix creative claims always going to 0, not world min height

* Update material listings to include new blocks
  * Fixes a few missed cases from previous versions
* Replaced claim to bounding box bandaid for world max height increase with actual world limit
* Account for worlds with min height less than zero
  * New default maximum depth is now integer min value (-2147483648) to not restrict users no matter how weirdly they set up worlds
  * Creative claims always extend to world min height, not 0
  * RestoreNature restores to a max depth of world min height instead of 0

Closes #1309 
Closes #1431
2021-07-10 12:31:12 -07:00
AdamandGitHub 6727fa76e3 Fix deprecated claim API (#1439)
Closes #1438
2021-07-04 11:38:39 -07:00
AdamandGitHub bbb1e5d58c Add ClaimPermissionCheckEvent (#1006)
Also contains a bit of refactoring on internal logic. Modifies (secondary) siege mechanics.

* Un-couple siege from core claim functions

* UUID overload, documentation, naming clarity

* Add internal special message override support

* Fix permission calculation issues in subclaims

* Migrate egg handling to new methods

* Use suppliers for denial message

In many use cases addons don't care why a denial occurred, only that it did. On-demand calculation is vastly preferable to reduce server impact.
2021-06-24 01:28:59 -07:00
AdamandGitHub 6e62779d0d Include scope in dependency information (#1390)
Ideally will reduce the number of people shading GP into their projects by mistake.
2021-06-04 17:23:18 -07:00
AdamandGitHub cac5aa04f1 Prevent nametag usage unless player can kill target (#1337)
Addresses discussion #1333
2021-05-29 12:36:02 -07:00
AdamandGitHub e6d608bcb9 Fix ignoring height (#1260) 2021-04-07 19:33:44 -07:00
AdamandGitHub b3774efad8 Check before casting to mob (#1281)
fixes #1278
2021-02-23 10:39:41 -08:00
AdamandGitHub 1edd0a921e Fix resizing 1-wide claims (#1148) 2020-12-12 10:33:29 -08:00
AdamandGitHub d126b90ce9 Fix rounding error on partial negative coordinates (#1147) 2020-12-11 09:18:03 -08:00
AdamandGitHub 3350e2a0bf Fix claim bounding boxes not covering whole claim (#1145) 2020-12-10 09:56:14 -08:00
AdamandGitHub 03ab872f6d Fix reversed conditional (#1138) 2020-12-09 08:02:46 -08:00
AdamandGitHub f01798fb46 Refactor pistons to use new bounding box (#1139) 2020-12-09 07:59:35 -08:00
AdamandGitHub e74ad1f94b revert to using static calls instead of instance (#1017) 2020-12-09 00:47:39 -08:00
AdamandGitHub de7a1372f0 Avoid requesting invalid names from Mojang (old UUID conversion code) (#1092) 2020-12-09 00:31:38 -08:00
AdamandGitHub d5c5e4983e Refactor boundary checks into unified bounding box (#1126) 2020-12-09 00:28:22 -08:00
AdamandGitHub 293142deca Stop block explosions damaging claimed entities (#1122)
#1115
2020-11-29 11:54:48 -08:00
AdamandGitHub 8465d19d28 Update to current Biome API (#1044) 2020-11-18 07:46:57 -08:00
AdamandGitHub 1f98733f3b Fix claims in other worlds preventing piston movement with EVERYWHERE_SIMPLE(#1099) 2020-11-15 06:15:00 -08:00
AdamandGitHub 8c7abf9fd5 Piston should not be included in moved block bounding box (#1088) 2020-11-05 09:04:27 -08:00
AdamandGitHub e1086c3206 Fix incorrect retract check and everywhere modes checking subclaim (#1083)
* Retraction checked block behind piston when no blocks were moved
* Everywhere modes are supposed to ignore subclaims, so piston claim should not be a subclaim
2020-10-29 09:52:43 -07:00
AdamandGitHub 0ceb6f8e21 Fix subclaims being added to chunk claims map when resized (#1082) 2020-10-29 09:23:33 -07:00
AdamandGitHub ddd57834aa Remove duplicates, move to Tags where possible (#1041) 2020-10-07 08:41:00 -07:00
AdamandGitHub 2df648f50f Update and improve economy handling (#1042) 2020-10-05 20:34:11 -07:00
AdamandGitHub 287bf2202f Fix /gpblockinfo causing legacy load (#1043) 2020-10-04 16:07:22 -07:00
AdamandGitHub 6e42ed0da4 Fix WordFinder matching anything with empty BannedWords.txt (#1045) 2020-10-04 15:24:52 -07:00
AdamandGitHub 1237276823 Use EnumSet for Material (#1038) 2020-10-02 17:35:45 -07:00
AdamandGitHub dbe4a106bd Fix new config node not being created (#1040) 2020-10-02 13:05:08 -07:00
AdamandGitHub 74700dc3de Add option to enforce a minimum claim size for automatically-generated claims (#1037) 2020-10-02 09:02:37 -07:00
AdamandGitHub 9622eea434 StringBuilder#append should not contain concatenation (#1020) 2020-09-20 09:06:53 -07:00
AdamandGitHub 26124d3dee Finalize fields where possible (#1021) 2020-09-20 09:01:37 -07:00
AdamandGitHub bf214afe2e Use enhanced for loop where applicable (#1016) 2020-09-19 14:14:11 -07:00
AdamandGitHub 47cd376610 Remove explicit type declaration (#1015) 2020-09-17 08:25:38 -07:00
AdamandGitHub 88dd68505a Use constant for farming block list (#1014) 2020-09-17 08:22:57 -07:00
AdamandGitHub eff759463d Fix error in piston mode migration (#1013) 2020-09-17 08:19:51 -07:00
AdamandGitHub b5542e24b1 Fix NPE in admin claims (#1011) 2020-09-14 21:05:51 -07:00
AdamandGitHub 581e8881e9 Add new, efficient options for handling pistons (#933) 2020-09-14 16:45:08 -07:00
AdamandGitHub e8c9222337 Fix /AbandonAllClaims usage (#1009)
Closes #1008
2020-09-14 08:19:06 -07:00
AdamandGitHub 766b34a970 Add several hostile non-monsters (#927)
* Add a couple of new/missed hostile cases

* "Zoo" friendliness

* Prevent food attack vector for neutral animals
2020-09-07 05:09:14 -07:00
AdamandGitHub 81cfc8f2d9 Confirm /abandonallclaims (#1000) 2020-09-07 04:19:09 -07:00
AdamandGitHub 39e9d48add Improve overlap test and amend PR #934 (#999) 2020-09-07 04:15:24 -07:00
AdamandGitHub 70b6574fe1 Refactor overlap check (#934) 2020-08-31 08:06:11 -07:00
AdamandGitHub a3d0aecaf0 Improve block ignition handling (#931)
* Improve arrow ignition handling

* Allow fireball/arrow ignition from same claim

* Allow fires to be started by dispensers in same claim
2020-08-07 10:20:35 -07:00
AdamandGitHub 40ca1d756e Update to JUnit 5 (#935)
* Add claim overlap test
2020-08-05 22:51:23 -07:00
AdamandGitHub 89d362a747 Use fence gate tag (#921) 2020-07-30 17:48:40 -07:00
AdamandGitHub ac93505e2f Fix conflicting piston settings (#907) 2020-07-25 11:50:18 -07:00
AdamandGitHub 085f335559 Use tags instead of manually-maintained material lists (#905) 2020-07-25 11:47:08 -07:00
AdamandGitHub 230b2bb5cc Update to WorldGuard's 1.16 API (#904)
* Update to WorldGuard's 1.16 API

* Swap to Gson for JSON, WG was providing old lib

* Also JUnit
2020-07-25 11:42:14 -07:00
AdamandGitHub 64e101c3bf Use BlockData Dispenser (#818) 2020-05-15 21:11:43 -07:00
AdamandGitHub 28b928f4b2 Add API allowing addons to check trust levels for offline players (#801)
* Expose explicit ClaimPermission levels

* Add getPermission to allow addons to check other trust
2020-05-03 17:52:24 -07:00
AdamandGitHub e0a0be7bef Move null check to the correct location (#746)
Closes #744, bug introduced in #736
2020-03-12 17:53:29 -07:00
AdamandGitHub 49d51a34a3 Randomize unused claim check (#736) 2020-03-02 17:04:15 -08:00
AdamandGitHub 61c1ccda3f Fix DeleteUserClaimsInWorld command (#720)
Closes #718
2020-02-15 02:26:39 -08:00
AdamandRoboMWM d326f106d6 Ensure subclaim boundaries are inside parent (#590)
Fixes GHSA-7mmh-4c9r-pf6v
2019-08-23 12:32:59 -07:00