Commit Graph
42 Commits
Author SHA1 Message Date
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 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 1ea1a44ec8 fix: editUserData methods not working 2023-12-20 16:59:48 +00:00
William 911b0cb4a1 api: add #createHome with validation suppression flags 2023-09-30 16:07:58 +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 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
William fc8d3b0098 Add ability to define cooldowns for actions (#437) 2023-06-16 17:39:54 +01:00
William 0f07372a9a [ci skip] Bump to 4.2.1 2023-04-26 22:40:03 +01:00
AlessioDP 3828581dfd Add setUserLastPosition to API (#368) 2023-04-25 18:04:38 +01:00
William 29e0ed6ef4 Add Fabric 1.19.4 server-side mod support (#348) 2023-04-11 21:44:44 +01:00
William a877984342 Fix max home locale placeholder, account for free homes, fix #338 2023-04-03 11:53:02 +01:00
William278 15227ee702 Internalize PAPI hook, cache SavedUser data 2023-03-28 12:54:04 +01:00
William278 34fdb88d5c Rename some Settings getters 2023-03-25 14:22:25 +00:00
William278 4ebbba730c API: Add methods for setting and editing meta tags 2023-03-24 16:42:11 +00:00
William278 173178637e Adjust teleportBuilder method 2023-03-24 13:25:16 +00:00
William f98510b184 Random teleport: return a future to support x-server pos retrieval 2023-03-24 01:24:49 +00:00
William 88f34ac133 Add additional teleport execution handling 2023-03-24 01:20:33 +00:00
William278 6b8c515b61 New API methods, refactor position object to use static creators 2023-03-22 19:55:59 +00:00
William a959aa9519 Refactor cached data away from cache 2023-03-21 19:23:45 +00:00
William 93dd15007a New player list caching system, further refinements and fixes 2023-03-21 12:49:36 +00:00
William278 3e27f7c5b1 Start command refactor 2023-03-05 19:10:19 +00:00
William278 39e0b25d46 Further refactoring, move away from using future thread pool 2023-03-04 21:38:53 +00:00
William278 4c90e5498c Networking rework, further refactoring 2023-03-02 22:51:50 +00:00
William278 1cebdac9b8 More refactor work, encapsulate classes 2023-03-02 15:00:02 +00:00
William278 3e1ec09487 Start refactor work 2023-03-01 16:23:01 +00:00
William278 6b55327e52 Refactor and simplify RandomTeleportEngine API and logic 2022-11-23 11:56:58 +00:00
William 681a74213c Fix API back-compat; rename new result class to CompletedTeleport and move enum TeleportResult back to upper 2022-10-19 01:27:06 +01:00
William 4164f07841 TeleportResult refactor, use record and bundle resolved information, separate TeleportState enum, deprecate relevant API 2022-10-19 01:12:19 +01:00
William 9630e53613 Bump to v3.1, rewrite Teleport/TimedTeleport and add TeleportBuilder, expose new Teleport API, remove TeleportManager, minor database utility refactoring 2022-10-18 17:45:44 +01:00
William 06d73c23d1 [ci skip] Update javadoc on BaseHuskHomesAPI#getLocale 2022-09-21 21:03:25 +01:00
William 98c2461c89 Port to adventure and MineDown-adventure 2022-09-20 13:02:26 +01:00
William278 ea808a37d2 Add an API event to get if a user is warming up to teleport 2022-09-09 00:39:38 +03:00
William278 950a51c140 Correct unsafe future joining 2022-09-07 22:36:06 +03:00
William278 1c2f1134d2 API: Change #getRandomPosition to accept an OnlineUser as arg instead of their position 2022-09-06 01:00:48 +03:00
William278 4db869abf1 Spawn: Simplify getting method, refactoring, add way of getting via API 2022-09-05 16:09:20 +03:00
William278 f94f9e82db API: Add methods to update homes/warps and get them by name/uuid 2022-09-05 15:58:21 +03:00
William278 a0c34743ef API: Add methods to get a locale from the locales file 2022-09-04 23:42:43 +03:00
William 800bffbbf2 Add API methods for retrieving home limits 2022-08-31 11:00:23 +01:00
William 63f91c2c8e Tweaks, improvements & cleanup to the RandomTeleportEngine API 2022-08-29 00:32:09 +01:00
William 59249f285a Add APIv3 and API events 2022-08-26 22:19:15 +01:00