Commit Graph

24 Commits

Author SHA1 Message Date
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