Commit Graph
276 Commits
Author SHA1 Message Date
Preva1l 3190a81b7d fix: being able to teleport a dead player (#758)
* fix: being able to teleport a dead player

* why did this changes not get commited

* chore: update javadoc
2025-01-30 22:53:44 +00:00
alazeprt 89db79da64 feat: allow setting max and min height for /rtp (#753) 2025-01-22 17:19:17 +00:00
William 65aa93c3da fix: add invulnerability flag to cached user in map, close #728 2024-12-13 17:50:41 +00:00
William 5d63899aff fix: ensure user cache is cleared on login, close #724 2024-12-13 17:47:22 +00:00
William 964bca6130 feat: add status command, refactor hooks, fix EssX import 2024-11-10 15:29:19 +00:00
William 294f24f278 fix: ensure caching respects player state 2024-11-10 14:28:24 +00:00
William d537952f67 refactor: remove unused override 2024-11-09 16:31:02 +00:00
William 6f96c0a618 fix: make World Gson-safe 2024-11-05 23:22:48 +00:00
William d89f79889c refactor: add bypass for home slot validation, fix #706 2024-11-05 22:04:39 +00:00
William d55260fe9b refactor: store invulnerability as tag, fix #687 2024-10-31 10:51:59 +00:00
William ffe995ef5f refactor: significantly refactor internals, remove Sponge (#708)
* feat: start database refactor

Adds database migrations

* refactor: refactor database system

Now supports migrations

* refactor: begin major internals rewrite

move to using provider-style interfaces similar to huskclaims
bukkit done, still need to do fabric and sponge

* refactor: remove sponge, checkstyle

Low usage and high maintenance time cost. We will examine Forge instead in the future.

* refactor: implement refactoring changes on fabric

also fix various refactor quirks on Bukkit

* refactor: tidy metrics logic

* build: bump deps
2024-10-28 20:49:57 +00:00
alazeprt 27a4dccf77 feat: add a separate event for random teleport (#685)
* Add rtp event

* Change the style of code

* Add sponge event

* Fix bugs
2024-10-15 16:36:19 +01:00
Preva1l afae073ab7 fix: Teleport Invulnerability oversight & incorrect values on Sponge (#671) 2024-08-09 10:25:14 +01:00
Preva1l af3a691976 feat: Add the option to random teleport cross-server (#647)
* feat: Cross-Server RTP

* feat: Cross-Server RTP

* feat: Cross-Server RTP

* docs

* fix req changes

* amend for api whoops
2024-06-24 13:25:59 +01:00
William 1a258264f8 feat: target Minecraft 1.21 on Fabric, add API
Also adjusts how the HuskHomes API on Fabric is versioned. Now has the pattern: `net.william278.huskhomes:huskhomes-fabric:<version>+<mc_version>`

Closes #640
2024-06-24 11:43:03 +01:00
William 3c0e9318e4 refactor: refactor Adapter on Fabric 2024-05-30 18:57:10 +01:00
William 7ede171b6b refactor: refactor Adapter on Sponge 2024-05-30 17:46:59 +01:00
William c0b14e043c refactor: remove commodore leftovers 2024-05-30 17:19:52 +01:00
William ac4b4365b2 refactor: remove commodore support
It doesn't support modern versions that well, and causes conflicts. We'll replace this with a native tab completion solution soonish
2024-05-30 17:18:25 +01:00
William 7d076c4c7f refactor: improve adapter on Bukkit 2024-05-30 17:16:23 +01:00
William 02574ce266 refactor: adjust task system to better support folia 2024-05-30 01:34:41 +01:00
William b555b43968 feat: actually set the world spawn on /setspawn, close #622 2024-05-30 01:12:05 +01:00
William a3eba8407b refactor: fix plugin messaging on Fabric 2024-05-30 00:03:16 +01:00
AlexDev_ 4d86f580ae feat: add new API event for TeleportWarmupCancelledEvent (#628)
* Added TeleportWarmupCancelledEvent

* Changed docs

* Added more JavaDocs
2024-05-09 15:32:58 +01:00
Josh 7ad9104677 feat: add support for PostgreSQL data storage (#616)
Signed-off-by: PseudoResonance <[email protected]>
2024-04-23 19:00:40 +01:00
William f4437806b6 fix: dismount before changing servers, close #555 2024-03-31 19:33:53 +01:00
William278 61fd14a7c3 build: bump to 4.6.2, fix checkstyle 2024-02-25 18:17:56 +00:00
Preva1l 1cb56f93fb feat: add tp invulerability option, show privacy in /homelist (#577)
* Renamed PrivateHomeListCommand.java to HomeListCommand.java as it shows all homes not just private homes

* Implemented https://github.com/WiIIiam278/HuskHomes/issues/543

* Implemented https://github.com/WiIIiam278/HuskHomes/issues/515

* added changes to all lang files, removed un used imports, fix error where it would not remove invulnerability from player on sponge
2024-02-25 16:47:16 +00:00
William278 7ee4bae68a fix: plugin message channels not registering with Redis broker 2024-02-14 09:00:34 +00:00
William 1723aa44fc refactor: Move to ConfigLib, use lombok (#563)
* refactor: move to configlib, adjust config structure

* fix: huskclaims typos

* fix: don't generate `server.yml` in local mode

* fix: NPE with server name
2024-02-12 16:54:23 +00:00
William f8ad215b76 refactor: Fabric 1.20.4, Sponge API v10, Java 17, Platform APIs (#562)
* deps: bump dependencies

* refactor: bukkit 1.17.1, Sponge v10, fabric 1.20.4

* refactor: release platform-specific API modules

* fix: checkstyle javadoc comment

* docs: update API docs

* docs: mention API platforms in events api docs
2024-02-12 11:18:50 +00:00
William d519014cce feat: Expose original home/warp in Edit events
Also fixes an editwarp description locale placeholder issue
2023-12-27 17:37:14 +00:00
William 2e3c851d7f refactor: Use native platform adventure implementations 2023-12-20 16:29:48 +00:00
William 34fefaf216 bukkit: Player#eject passengers before teleporting 2023-10-20 20:07:35 +01:00
William 36c8510605 Don't handle respawn on Bukkit module for >=1.19 2023-10-01 16:21:40 +01:00
William df3f2baff3 Fixup <1.19 RespawnEvent handling 2023-10-01 16:20:54 +01:00
William 072b0aead1 spigot: Use adventure again for sound playing 2023-09-30 16:16:34 +01:00
William 63f6b46497 importer: ignore max homes when importing 2023-09-30 16:07:31 +01:00
William 95e9fd4b63 spigot: Fixup tests 2023-09-30 15:58:56 +01:00
William ce30d6e7a9 spigot: remove commands from plugin.yml, fix registration on spigot servers 2023-09-30 15:37:27 +01:00
William278 2145d6925f Ensure player is dismounted before teleport, fix #496 2023-09-25 13:23:53 +01:00
William278 e579b2b05e Fix listeners registering twice 2023-09-10 17:59:25 +03:00
William278 52f9999991 Minor formatting tweaks 2023-09-10 17:08:20 +03:00
William 89aa490568 Fix sound effect playing on spigot 2023-08-28 17:03:37 +01:00
William 6bfd69f232 v4.5: Bulk delete, regex customization, QoL & API work (#486)
* Improve validator error specificity, fix #481

* Add more sanity-checking to cluster IDs, close #482

* Add bulk/player-delete command, close #484, close #257

* Fix checkstyle formatting in tests

* Add missing strings to other locale files

* Use morepaperlib for runtime command registration on spigot

* api: make creation methods return a future, close #473

* Add name/description restriction regex customization

* docs: Update config file with new regex options

* bump version number to 4.5

* fix typo, correct command confirmation logic

* Make confirmation locales more clear

* Fix confirmation checking logic
2023-08-28 16:31:48 +01:00
William e2c9a52911 Add Pl3xMap dependency to plugin.yml 2023-08-10 12:34:52 +01:00
William 6455f15d92 Fixup config map reading inconsistencies, close #471 2023-07-24 11:42:09 +01:00
William beed438c16 Add H2 database support, use indexes to optimize queries, add maria-specific schema, bump adventure-fabric (#465)
* Add support for H2, bundle Maria driver, bump fabric adventure

* Bundle and download H2 drivers

* Fixup H2 schema, add indexes to DBs, add maria-specific schema

* docs: Add database type documentation

* Check plugin isn't disabled before task schedule, close #463

* Bump Annotaml to 2.0.4

* docs: Mention Maria in README and Setup
2023-07-18 15:03:31 +01:00
William c9f5262292 Add fabric builds for older MC versions & add checkstyle (#449)
* Remove instance getters, improve command logic, register APi

* Publish multiple fabric builds, enforce checkstyle

* Bump guava

* Bump to 4.4.2
2023-07-02 13:26:12 +01:00
Jacob McSwain 771c16ed1a Prevent suffocation while using /rtp (#445)
* rtp: check for suffocation before teleport

* safety resolvers: teleport to middle of block

* rtp: Fix negative coordinates being off by one

* unsafe blocks: add campfires and magma

* unsafe blocks: deduplicate block id formatting
2023-06-29 10:05:57 +01:00