Commit Graph
478 Commits
Author SHA1 Message Date
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
William 1a49dd386c Merge remote-tracking branch 'origin/master' 2024-10-27 14:24:15 +00:00
William 3b8abe1b8a fix: ensure restricted worlds setting formats correctly, close #664 2024-10-27 13:45:31 +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
William dda75564f4 fix: ensure TeleportationException is sent 2024-08-22 14:11:02 +01:00
William c1b0ebe93c fix: checkstyle 2024-08-22 13:50:55 +01:00
William 8188a80d46 fix: don't serve private home TAB suggestions w/o perms, close #649 2024-08-22 13:45:11 +01:00
William 0a5ad6b594 fix: make Redis subscriber thread a daemon
Should auto-terminate on shutdown now
2024-08-22 13:32:56 +01:00
William 7029b50a42 fix: /tp TAB not serving players in arg 0, close #675 2024-08-22 13:28:43 +01:00
WuzzyLV ecc180eb88 feat: add permission-based teleport warmup (#682)
* Add permission based tp cooldowns

* Add permission based tp cooldowns

* Move permission warmup logic to OnlineUser
2024-08-22 13:24:19 +01:00
William 1c644b120e fix: use WAL mode on SQLite with NORMAL concurrency, close #658 2024-08-22 13:21:17 +01:00
Preva1l afae073ab7 fix: Teleport Invulnerability oversight & incorrect values on Sponge (#671) 2024-08-09 10:25:14 +01:00
Preva1l 2b9a9ae467 fix: redis disconnecting when RTP could not find the world on the target server (#648)
* fix: redis disconnecting when the world is not found
2024-06-25 16:12:45 +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 33d9868457 locales: add Vietnamese (vi-vn), courtesy of Iamsad_VN 2024-06-18 11:08:28 +01:00
William 8fd62aab7c refactor: remove erroneous TAB completed arg 2024-05-30 17:29:37 +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 386ea57bbb fix: misleading error thrown expending free home slots, close #614 2024-05-30 00:21:21 +01:00
William c167b8fb57 fix: 0 seconds in cooldown shows empty space, close #615 2024-05-30 00:14:58 +01:00
William a3eba8407b refactor: fix plugin messaging on Fabric 2024-05-30 00:03:16 +01:00
William 9b323198ac fabric: support Minecraft 1.20.6 2024-05-29 23:50:03 +01:00
alazeprt 2b436a23fa feat: Make /rtp in other worlds use world-specific command (#626)
* Update RtpCommand.java

* Fix bug about suggestion filtering

* Fix bug about suggestion filtering

* Fix bug about suggestion filtering

* Fix bug about suggestion filtering

* Filter restricted world
2024-05-11 13:13:39 +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 c72c71823f docs: update tagline 2024-04-01 14:52:43 +01:00
William 6658154ed4 build: update MineDown dependencies, close #568 2024-03-31 21:22:26 +01:00
William a95c3e03b7 feat: make warmup cancellation conditions configurable, close #564 2024-03-31 19:37:30 +01:00
William f4437806b6 fix: dismount before changing servers, close #555 2024-03-31 19:33:53 +01:00
William 9d2a73fd2c fix: inconsistencies with Pl3xMap loading, close #570 2024-03-31 19:07:16 +01:00
William e2a7fec1d1 fix: checkstyle issue 2024-03-31 17:43:32 +01:00
William 4e9046395c feat: allow /phome <name> on uniquely named homes
If multiple public homes with the same name exist, typing /phome (name) will bring up a filtered public home list containing the list of public homes with that name for you to click on. The username-prefixed name will also be the only one to show up in TAB.

This commit also fixes a bug with home/warp lists showing a blank description on hover instead of `(none)`.
2024-03-31 17:40:38 +01:00
William 0135966c6e fix: edithome/warp overwriting existing, close #594 2024-03-31 16:39:20 +01:00
William 65cc90e79e refactor: add more edithome/warp perms 2024-03-31 16:36:14 +01:00
William 27713c7dd0 build: update locales, adjust tp perm logic, close #575 2024-03-31 16:22:48 +01:00
William f871f9e1f2 fix: Adjust date/time formatting, close #599 2024-03-31 16:11:55 +01:00
William 75a55b86a0 refactor: use system locale for date/time formatting, close #592 2024-03-31 14:08:52 +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
Emibergo02 bf5ba2a7a3 fix: Add missing other permission check in teleport command logic (#567)
* Permission for player tp only

* Changed according to Docs
huskhomes.command.tp.other
instead of
huskhomes.command.tp.player

* Documentation update

* Revert "Documentation update"

This reverts commit 902703e16876bc57e88cc32840413534f14eb7d0.

* Requested changes

* Check if the target has username before checking his permissions
2024-02-18 14:02:39 +00:00
William278 7ee4bae68a fix: plugin message channels not registering with Redis broker 2024-02-14 09:00:34 +00:00
William 8d0871af78 fix: Fix checkstyle 2024-02-13 17:47:21 +00:00
William d79fcaacb6 refactor: Simplify teleport execution logic (#565)
* refactor: simplify teleport execution logic

* docs: document better way of executing a teleport

* fix: TimedTeleport should still handle internal errors

* fix: Wrong builder method calls

* fix: Typos

* fix: More typos

* fix: Cancel timed teleport on failed execute
2024-02-13 15:56:55 +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 d4d6b02037 fix: bad comments on rtp radiuses 2024-02-04 21:24:10 +00:00
William afd64251f6 fix: credit WinTone01 for Turkish locales, close #552 2024-01-24 01:16:15 +00:00