Commit Graph

58 Commits

Author SHA1 Message Date
akastijn df347fde7f Add PlayerJoin event listener to modify player attributes on join and update project configuration 2025-10-31 01:45:54 +01:00
akastijn ab162b5094 Refactor logging by replacing custom Logger with SLF4J and adapt all usages 2025-07-24 23:04:52 +02:00
akastijn c66b30ff90 Update XPCheque to use calculateTotalExperiencePoints and setExperienceLevelAndProgress to fix exp reset bug 2025-07-22 19:27:12 +02:00
akastijn 7625c57b8b Refine ghast speed message to display human-readable speed names 2025-07-20 04:44:45 +02:00
akastijn 7f6d4c4b36 Add ghast speed command with configurable speed levels 2025-07-20 04:36:02 +02:00
akastijn d6d7269fee Fix inverted spawn egg check in BlockBlockUseEvent 2025-07-17 23:12:47 +02:00
akastijn e81d532178 Restrict usage of END_PORTAL_FRAME in BlockBlockUseEvent 2025-07-17 00:04:11 +02:00
akastijn c016db5969 Update BlockBlockUseEvent to use MaterialTags for spawn egg checks 2025-07-16 23:56:42 +02:00
akastijn 05fd3beb9c Add BlockBlockUseEvent to restrict usage of blocked items and blocks 2025-07-15 21:25:02 +02:00
Teriuihi f80645e2fe Switch to using cosmos 2025-06-20 23:14:41 +02:00
Teriuihi 785a64b7e6 Refactor Glow command to optimize logic order.
Reorganized the "off" condition block to execute after clearing existing glow teams.
2025-03-24 21:26:56 +01:00
Teriuihi 7cfdc39f75 Refactor interact event handling and add trial spawner logic.
Renamed the event handler for clarity and added logic to handle trial spawner interactions with cooldown feedback for players. Introduced functional interfaces for cleaner and reusable code when processing armor stand counts and trial spawner timers.
2025-03-22 20:57:59 +01:00
Teriuihi 7c04361ea5 Add armor stand placement limits per chunk
Implemented functionality to restrict the number of armor stands a player can place in a chunk based on permissions. Added configuration support for customizable limits and proper error handling for edge cases. Registered the LimitArmorStands event listener in the plugin manager.
2025-03-22 20:33:31 +01:00
Teriuihi 10449f4a80 Refactor message-sending to use sendRichMessage API.
Replaced all instances of sendMiniMessage with sendRichMessage for improved readability and consistency across the codebase. This change ensures better handling of message formatting and placeholders.
2025-03-22 19:12:28 +01:00
Teriuihi ff05856494 Fixed key storage access in KeyStorage.java
Fix the retrieval and saving of keys by updating the path format used in config.getInt and config.set methods.
2024-10-04 21:35:43 +02:00
Teriuihi 08370abf77 Save key storage on plugin disable
Ensure that all keys in KeyStorage are saved when the plugin is disabled. This prevents potential data loss by explicitly saving storage during the onDisable lifecycle event.
2024-10-04 21:27:06 +02:00
Teriuihi 5a7b9859cd Fix NPE in key configuration, fixed tab completion
Added missing key mapping to prevent NullPointerException when no UUIDs are present in KeyStorage. Also adjusted tab completion logic in Key.java to handle cases with more than one argument.
2024-10-04 21:24:49 +02:00
Teriuihi d43f269c22 Fix NPE in key configuration, fixed tab completion
Added missing key mapping to prevent NullPointerException when no UUIDs are present in KeyStorage. Also adjusted tab completion logic in Key.java to handle cases with more than one argument.
2024-10-04 21:19:53 +02:00
Teriuihi ad9a3491eb Rename config file in KeyStorage constructor
Changed the configuration file from "messages.yml" to "key_storage.yml". This update fixes a bug where it was writing to the wrong file.
2024-10-04 21:15:02 +02:00
Teriuihi 3c34707944 Add system to track keys given and related command for players
Introduces `KeyStorage` for handling keys and their persistence. Added `Key` subcommand to allow players to receive their keys. Updated configuration files and messages to support the new feature.
2024-10-04 20:53:54 +02:00
Teriuihi 524a657abd Fix goat horn handling in GoatHornEvent
Replaced usage of Tag.SNAPS_GOAT_HORN with Material.GOAT_HORN for type checking and setting cooldowns.
2024-08-17 00:52:00 +02:00
Teriuihi 2fa3e3a6f0 Add logging to GoatHornEvent and register it
Introduced a logger to GoatHornEvent to record when a player uses a goat horn, both in and out of spawn. This helps with tracking player actions and debugging potential issues related to goat horn usage.
2024-08-11 23:53:53 +02:00
Teriuihi c0c8cbbfa4 Add GoatHornEvent listener (stops spamming goat horns in spawn)
Implement GoatHornEvent to handle player interactions with goat horns. This feature sets a cooldown for goat horn items, if the player is near spawn or already has an active cooldown.
2024-08-11 23:49:02 +02:00
Teriuihi 0c305e79e5 Add GoatHornEvent listener (stops spamming goat horns in spawn)
Implement GoatHornEvent to handle player interactions with goat horns. This feature sets a cooldown for goat horn items, if the player is near spawn or already has an active cooldown.
2024-08-11 23:48:35 +02:00
Teriuihi 4ed83b6376 Remove Git version logging and related plugin
Removed the `printVersion` method from `PlayerUtils.java` and eliminated the `gradle-git-properties` plugin from `build.gradle.kts`. These changes simplify the project setup by removing unnecessary Git version logging dependencies.
2024-08-04 22:37:26 +02:00
Teriuihi 9e9ada4e2b Update Java version and Galaxy-API dependency
Upgraded the project to use Java 21 instead of Java 17 in the toolchain configuration. Also updated the Galaxy-API dependency to version 1.21-R0.1-SNAPSHOT.
2024-08-04 22:36:36 +02:00
stijn 50f66b93c3 Merge pull request 'fix_rotate' (#1) from fix_rotate into master
Reviewed-on: #1
2024-08-04 20:29:46 +00:00
Teriuihi 91ba53208b Merge branch 'refs/heads/master' into fix_rotate 2024-08-04 22:27:32 +02:00
Teriuihi 7783101887 Add Jenkinsfile for CI pipeline
Introduce a Jenkinsfile to automate the build process using Gradle. The pipeline consists of three stages: building with Gradle, archiving artifacts, and sending build notifications to Discord. This integration enhances the CI/CD workflow by ensuring consistent builds and timely notifications.
2024-08-04 22:26:57 +02:00
Teriuihi f616ed5af0 Switch config paths to use /mnt directory
Updated file paths for configuration and message files to use the /mnt directory instead of the user's home directory.
2024-08-04 22:26:46 +02:00
Teriuihi 2bdf8b6b48 Remove temporary debug logging in RotateBlockEvent & fixed drip leaf & iron trap door rotation
The update primarily eradicates numerous debug logging lines in the RotateBlockEvent class. This cleanup improves the readability of the code and enhances performance by reducing unnecessary logging operations. The "toggleDripLeaf" and "toggleTrapDoor" methods have also been updated to verify block data.
2024-07-07 15:17:32 +02:00
Teriuihi f3f6d11547 Add logging to RotateBlockEvent
Debug logs were added to the RotateBlockEvent class. These logs will help track the flow of various states and actions, such as the current material and action type, whether the block is a trap door or a drip leaf, among others. This enhancement will assist debugging by providing more visibility into the state of the application at runtime.
2024-07-01 20:39:07 +02:00
Teriuihi a5f59c2399 Fixed ordinal check being made before incrementing
In the RotateBlockEvent class, a bug was fixed where the ordinal check was previously being done before the ordinal was incremented.
2024-06-30 20:37:24 +02:00
Teriuihi 6209b71db4 Add block interaction enhancements and git properties
Updated block interaction behavior for IRON_TRAPDOOR and BIG_DRIPLEAF_PLACEABLE to allow their state to be toggled. Added the use of git properties to build.gradle.kts, allowing insightful git information such as commit id and time to be retrieved and printed.
2024-06-30 20:28:18 +02:00
Teriuihi df875406e1 Add distance check to TeleportEvent
In addition to checking if a player is on a vehicle, the update now also checks if the distance between the player's current location and the teleport destination is more than 5 blocks. If that's the case, the teleportation is cancelled.
2024-06-28 23:23:50 +02:00
Teriuihi e35bc71f96 Add Big Dripleaf toggle functionality
The import statements were simplified to import all block data types at once. On block click, the event listener now checks if the block being clicked is a Big Dripleaf and toggles its tilt accordingly if it is. It also ensures player permissions to build before attempting the toggle action.
2024-06-09 17:09:11 +02:00
Teriuihi a95a7bc27b Add functionality to toggle iron trapdoors
Method 'toggleTrapDoor' has been added to the RotateBlockEvent class. This function allows players to open and close trapdoors by left-clicking on them if the block is an instance of a TrapDoor. The original behavior of the block will be preserved when the player does not have build permissions.
2024-06-09 16:24:08 +02:00
Teriuihi 94ec002810 Prevent teleporting while riding a vehicle
The TeleportEvent has been updated to prevent players from teleporting while riding or seated in a vehicle. Instead of dismounting the player and adjusting the destination's coordinates, the request is now simply cancelled and a message is sent to the player, explaining why the teleportation was not completed. This change improves the clarity of the situation for the player and fixed the glitch that lets players teleport into places they shouldn't be.
2024-02-21 19:10:45 +01:00
Teriuihi ef99403c2e Added TeleportEvent and updated event registration
The update introduces a new TeleportEvent which modifies teleport behavior for players who are mounted by dismounting them and changing their teleport location to be one higher. Also, the event registration process within the PlayerUtils class has been refactored for better readability and additional registration of the new TeleportEvent.
2024-02-17 09:53:12 +01:00
destro174 cb263a83c6
Dev/exp bottle from furnace (#1)
Allow expbottles to be made from exp inside furnaces
2024-01-04 09:15:00 +01:00
Len 6279cd01be Auto increment version in plugin.yml 2024-01-03 15:47:51 +01:00
Teriuihi b7920b2ffb Allow players to specify how many xp cheque's to create in one go 2023-10-02 21:42:47 +02:00
Len 9234f870c6 Fix rotating nether portals 2023-08-15 13:06:56 +02:00
Teriuihi 70004084f1 Made it possible to make other users glow and stop glowing 2023-08-13 22:58:53 +02:00
Teriuihi 4a3658c11d Use setBlockAndForget for all the blockdata setting 2023-07-28 03:24:33 +02:00
Teriuihi 74eab9512e Added rotating rails 2023-07-28 03:00:43 +02:00
Teriuihi 06f04d6fb2 Make logs rotatable 2023-07-10 23:54:27 +02:00
Teriuihi 3dfc2109a4 Implement new galaxy api that should stop block connecting after it has been rotated by this plugin 2023-07-09 00:26:52 +02:00
Teriuihi ce51eb2a33 Reload configs on start up 2023-07-09 00:24:58 +02:00
Teriuihi 977ed00cb8 Added more locations for xp to be shown on item, improved readability by seperating large numbers with .'s 2023-07-09 00:24:47 +02:00