Commit Graph

60 Commits

Author SHA1 Message Date
Omer Oreg
61c32c5995
Implements Hooks for GriefDefender & ChunkyBorder. (#49)
* Added griefdefender support

* Added info command

* Fixed info command not executing

oops

* Implemented hook for chunkyborder

* Removed --info command

You can get this info in the logs.

* Update plugin.yml

* Added missing GriefDefender hook artifact
2022-05-22 00:23:34 +01:00
Phoenix616
4a77bf1519
Use configured unsafe blocks in height validator 2022-03-08 14:41:16 +01:00
Phoenix616
6098947fbb
Fix issues with world heights (Resolves #50)
This adds support for new 1.17 min world heights as well as move the default nether max y one down.
2022-01-05 01:12:30 +01:00
Phoenix616
8e0643e59c
Check for passable and liquids instead of just solids (Fixes #44) 2021-03-09 14:28:25 +01:00
Phoenix616
9dfc62f9f5
Fix safe vs. save error 2021-02-16 19:50:17 +01:00
Phoenix616
c893b45ddc
Rename maven project and add provides to differentiate from others 2021-02-01 14:24:47 +01:00
Phoenix616
53fece8dac
Add missing softdepend declaration 2020-12-18 01:48:30 +01:00
Phoenix616
dea38a1579
Fix placeholder replacements not working 2020-09-16 00:28:43 +01:00
Phoenix616
73a49f779b
Only apply cooldown if teleport was successful 2020-09-16 00:24:11 +01:00
Phoenix616
a8db0033df
Add MineDown support (and with that RGB colors) 2020-09-03 17:23:23 +01:00
Phoenix616
952feb83f9
Teleport async and send message on fail to fix issues with world changes 2020-07-20 17:35:29 +01:00
Phoenix616
617bc1bad8
Fix issues with ungenerated chunks and generated option 2020-07-03 22:12:34 +01:00
Phoenix616
4e845408e3
Fix parsing of the value of the last parameter 2020-07-02 20:31:46 +01:00
Phoenix616
e0f1ed950b Add delay between random location checks and command parameter to set it 2020-06-22 21:49:34 +01:00
Phoenix616
4047c6529d Fix issue where the parser would try to parse too much 2020-06-10 23:20:05 +01:00
Phoenix616
a76b60a3c7 Fix option parser issues with minus values (Fixes #38) 2020-06-01 17:15:11 +01:00
Phoenix616
abf484a161 Fix generated only chunk flag not working correctly 2020-06-01 16:52:23 +01:00
Phoenix616
24c0864ff8 Fix both a negative x and z coordinate not being possible 2020-05-14 16:55:39 +01:00
Phoenix616
0c35fe9bb9 Require 1.13 2020-04-17 23:31:45 +01:00
Phoenix616
638c0956d9 Remove force option from default preset 2019-10-06 16:39:06 +01:00
Phoenix616
dd6fffe0d5 Force random location to the middle of block before teleporting (#33)
Also add 0.1 to the y so that the player is guaranteed to be above the below block
2019-10-03 13:46:42 +01:00
Phoenix616
081d217053 Added min and max y settings (Resolves #2)
Max y will be 127 in the nether by default. Use the -maxY parameter to change it. Also once a maxY is set it will try to find a random y between the values if the highest block is above the max y value.
2019-10-02 17:02:09 +01:00
Phoenix616
8eb93d138e Fix compatibility with 1.12 2019-09-19 20:02:29 +01:00
Phoenix616
e979043e14 Send target location block change to player (possibly related to #33)
This has been shown to stop the client from falling into blocks while teleporting in the past and might as well still solve some issues where the client hasn't received the chunk data yet.
2019-09-19 18:21:10 +01:00
Phoenix616
66b02e8201 Fix randomteleport.cooldownexempt not working 2019-08-23 19:50:48 +01:00
Phoenix616
988f2ee736 Return earlier if check count exceeds max tries 2019-07-27 15:39:50 +01:00
Phoenix616
aa9d995e4d Re-add ability to only search in loaded chunks 2019-07-27 15:38:55 +01:00
Phoenix616
6ee71ec50e Set id to preset name if not specified (Fixes #32) 2019-07-27 15:28:28 +01:00
Phoenix616
a49cc5fc8f Use correct index 2019-04-27 17:00:03 +01:00
Phoenix616
bdf794f7cb Use the correct "safe" 2019-04-27 16:58:00 +01:00
Phoenix616
a363a960f4 Fix case where the chunk check didn't finish.
Also make sure random chunk location calculation is correct and some minor style fixes.
2019-04-27 16:56:44 +01:00
Yannick Lamprecht
8b4f7a74d3 Exceptions are not thrown by API methods. 2019-04-27 15:10:19 +01:00
Phoenix616
5b5450ad08 Add some more permissions and properly set command permission 2019-04-27 02:48:49 +01:00
Phoenix616
9ebc4eb64d Improve performance by storing already checked chunks
Also don't allow a searcher to be started twice when it's still running
2019-04-27 02:18:02 +01:00
Phoenix616
ce3ad0e0fa Fix issues with very small ranges and fix only corners getting found
This also makes the max-range inclusive instead of exclusive as that makes more sense. Previously a searcher with max range of 1 would not find a new coordinate, it should find one at least one block next to it.
2019-04-27 01:32:17 +01:00
Phoenix616
8a17bfc000 Check correct exception for logging it 2019-04-27 01:24:24 +01:00
Phoenix616
6b98efb1e4 Add initiator to targets if it's an entity and no target was found
This happens when the player runs the command without a target argument or when using the API methods
2019-04-27 01:14:10 +01:00
Phoenix616
24e92041c1 Fix random infinite loop and wrong axis usage in coordinate check 2019-04-27 01:06:56 +01:00
Phoenix616
58c1a98005 Fix duplicate message and only log unexpected errors 2019-04-27 01:04:55 +01:00
Phoenix616
b25e38f393 Rename maxChecks to maxTries and add command flag 2019-04-27 01:03:59 +01:00
Phoenix616
32de0ca58b Fix Y coordinate at the proper location
This is necessary as the searcher is validating the block below the player's feet, not the one the player is standing in. Therefore we add one to the Y coordinate when completing.
2019-04-27 01:00:18 +01:00
Yannick Lamprecht
483a0bb2b3 Add an API (#27) 2019-04-27 00:57:32 +01:00
Phoenix616
9a1004723c Use correct location in teleporting messages 2019-04-13 12:17:50 +01:00
Phoenix616
5f73ccc955 Fix cooldown, y location calculator and teleport target 2019-04-12 22:38:42 +01:00
Phoenix616
f0f014cc23 Use correct cooldown message 2019-04-12 22:13:21 +01:00
Phoenix616
58353be4bd Fix loop exit condition 2019-04-12 19:46:39 +01:00
Phoenix616
f44c491324 Improve random coordinate selection
This will test all x/z coordinates in a chunk instead of loading extra chunks
2019-04-12 19:42:54 +01:00
Phoenix616
c4d9fd74af Don't start multiple searches at once
This only applies to sign interactions and when a player uses a preset himself
2019-04-12 16:07:06 +01:00
Phoenix616
3d378bdb7b Add option for setting the spawnpoint after teleporting 2019-04-12 13:10:39 +01:00
Phoenix616
d16f95b3b1 Add simple cooldown functionality
Currently doesn't support storing of that information beyond server restarts.
Also improve formatting in the plugin.yml
2019-03-27 19:02:21 +01:00