Commit Graph

31 Commits

Author SHA1 Message Date
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
Teriuihi 1b9278ca25 Added rotate block command 2023-07-08 06:26:01 +02:00
Teriuihi 54db863783 Added reload command 2023-07-07 23:49:34 +02:00
Teriuihi 1663498080 Added xp calc command 2023-07-07 23:42:08 +02:00
Teriuihi 95b98ef462 Attempting to improve teams for glow 2023-07-07 01:09:56 +02:00
Teriuihi 8fa21120be Attempting to improve teams for glow 2023-07-07 01:09:42 +02:00
Teriuihi 0324458efb Prevent players from entering a negative value for xp 2023-07-06 23:14:07 +02:00
Teriuihi e3e95341ce Removed unused code 2023-07-06 05:26:02 +02:00
Teriuihi ada4c7789d Initial commit 2023-07-06 05:24:06 +02:00