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
Max Lee
25efe36b6c
Create FUNDING.yml
2019-12-13 20:10:42 +01:00
Phoenix616
9654df055f
Fix Factions 2 artifact ID
2019-10-06 18:18:39 +01:00
Phoenix616
6af4d448a0
Add RedProtect core library to hook module
2019-10-06 18:15:35 +01:00
Phoenix616
864cd68e79
Add factions Hooks (2 and UUID)
2019-10-06 18:08:11 +01:00
Phoenix616
a41bf653fb
Fix version usage in hook selection
2019-10-06 17:53:45 +01:00
Phoenix616
1c15f42a09
Add RedProtect hook ( Resolves #14 )
2019-10-06 17:09:44 +01:00
Phoenix616
b172ff83f0
Add GriefPrevention hook
2019-10-06 17:00:41 +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
4c1b8a7c9a
Add lots more information to readme
2019-10-02 17:03:02 +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
80eeab8fc0
Update to PaperLib 1.0.2 to fix version detection
2019-04-12 15:44:15 +01:00
Phoenix616
2434bcfb07
Fix hook order reversal
2019-04-12 13:17:23 +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
Phoenix616
2ae3593687
Fix y height and async chunk load errors
...
Also use the correct placeholder name for the world
2019-03-27 13:54:26 +01:00
Phoenix616
8fe13fa16d
Fix SimpleOptionParser
2019-03-27 13:53:40 +01:00
Phoenix616
94ce85551a
Fix hook loading
2019-03-26 20:23:34 +01:00