wizjany
ed4287ace7
Cleanup use-max-prio algorithm, add tests.
2020-08-03 10:21:35 -04:00
wizjany
03f05d3a4e
Simplify and remove duplicate code.
2020-08-03 07:21:56 -04:00
JOO200
c8bde17994
Fixed "null" output for invalid worldedit selections
2020-08-01 16:55:37 +02:00
JOO200
449145ba1f
Renamed option to use-max-priority-association, Code cleanup
2020-08-01 13:54:27 +02:00
JOO200
85c5f53d29
only detect max priority once
2020-07-30 20:37:49 +02:00
JOO200
5162ce3dbd
Implement new alternative association mode to limit piston movement
2020-07-30 20:24:18 +02:00
JOO200
6f9ed5d10f
Private ctor to match checkstyle.
2020-07-27 17:55:11 +02:00
JOO200
f0ec54af49
Added missing license to WorldEditRegionConverter
2020-07-27 17:17:20 +02:00
JOO200
e9e1885f2e
Moved toRegion and toRegionSelector in a helper class
2020-07-27 17:03:50 +02:00
wizjany
2c0b592b19
Declare some recently hidden dependencies.
2020-07-17 01:11:12 -04:00
TheMolkaPL
1652c9bfc0
Allocate WorldPlayerTuple only when using cache
2020-07-03 20:26:56 -04:00
TheMolkaPL
a97db0ede9
Add an option to disable bypass permission cache
2020-07-03 20:26:56 -04:00
wizjany
74d8a4f0e7
Typo.
2020-06-27 19:55:34 -04:00
JOO200
8722322cd8
Added new flag respawn-anchors similar to block respawn anchor usage
2020-06-26 00:02:50 -04:00
wizjany
3a9b1b1525
Add deprecation warnings to StringFlags.
2020-06-25 22:57:28 -04:00
wizjany
0492fafe30
Color 3rd party flags and unregistered flags in /rg info.
2020-06-21 17:25:38 -04:00
wizjany
36d95ad090
More inventory holder snapshot use.
2020-06-21 16:57:58 -04:00
wizjany
f4a3e8a936
Allow setting passthrough on global via /rg flags.
...
Closes #1584 .
2020-06-11 14:57:22 -04:00
JOO200
37ae70f35d
Add coral-fade flag and world configuration to disable coral fading
...
Closes #1532
2020-05-10 03:12:20 -04:00
wizjany
47cd96a3af
Add tests to validate behavior of non-player causes in multiple regions.
2020-05-02 10:41:51 -04:00
wizjany
0a735e0146
Don't warn about small global regions.
...
Closes #1567 .
2020-05-01 19:39:59 -04:00
stonar96
60590acfe3
Remove unnecessary checks and add comments
2020-04-29 15:15:07 -04:00
stonar96
6030bea13e
Improve default teleport-message and remove null check
2020-04-29 15:15:07 -04:00
stonar96
20f89ea2ae
Add teleport-message flag
2020-04-29 15:15:07 -04:00
wizjany
570b7f7b77
Allow passthrough allow on global to override added members/owners.
2020-03-29 19:48:13 -04:00
wizjany
aca0d843f6
Allow WorldEdit's //world override to affect region commands.
...
Priority is `-w` flag > //world override > player world > error.
Also makes regions selectable from console.
2020-03-23 21:32:25 -04:00
wizjany
1172ebd419
More spawn protection warnings.
...
Can't have enough of these apparently.
2020-03-23 16:40:12 -04:00
wizjany
df2ae6a666
Tweak some region info output, fix teleport location.
2020-03-19 13:34:20 -04:00
wizjany
2169aa218e
Add option to always use default MC times for sending titles.
...
Alleviates issues with other plugins setting extremely short/long times.
2020-02-15 16:04:47 -05:00
wizjany
0d860bfca7
Change bypass cache to expireAfterWrite.
...
This hasn't caused issues for the past 5 years but I guess ¯\_(ツ)_/¯
2020-02-06 18:16:55 -05:00
wizjany
db3838ccfe
Add flag to prevent natural health regen and hunger drain.
2020-01-09 20:41:57 -05:00
wizjany
f43a4eaad8
Add spawn-protection overlap check when defining regions.
...
Update cached username on login.
Bump WorldEdit dep version.
2019-12-19 15:42:34 -05:00
wizjany
2c14acc28c
Add some custom charts to bStats.
...
Should give a good view of feature usage, especially some badly
supported features like SQL and chest protection.
2019-11-17 18:13:45 -05:00
wizjany
121b34ecb9
Add applicable regions section to /wg report.
2019-10-06 13:09:08 -04:00
wizjany
3ebaaf9c8b
Add /rg toggle-bypass command to turn off region bypass temporarily.
...
Makes it easier to test things without op/de-op, switching ranks, etc
all the time.
2019-10-06 12:17:07 -04:00
wizjany
e792dd6f98
Workaround colors on newlines of string flags issue in text lib.
...
Also fix newline lookbehind replacement, and only replace color macros
in string flags.
2019-10-06 12:17:07 -04:00
wizjany
d410e1f84e
Re-arrange messages in (re)define commands.
...
Only send messages after successful add.
2019-10-06 12:17:07 -04:00
wizjany
fc0f7acab5
Fix infinite loop in addowner checks.
...
Fixes WORLDGUARD-4138.
2019-09-22 14:28:38 -04:00
wizjany
056eaa6587
Teleport async on Paper.
2019-09-13 16:42:35 -04:00
wizjany
179c324c80
Apparently world names are allowed to have spaces.
2019-08-18 23:43:57 -04:00
wizjany
96d15d6dbf
Only store existing per-player time/weather in handlers.
...
Fixes WORLDGUARD-4124.
This will fix various issues with logging in to regions with these flags
set and then moving out of them, or when moving between two adjacent
regions with the flags set and then moving out.
2019-08-18 12:00:50 -04:00
wizjany
120d2e223d
Extract/half-fix addowner checks.
...
Max-region-count-for-player is super bork.
Fixes WORLDGUARD-4129.
2019-08-18 10:39:56 -04:00
wizjany
70ea6bad6e
Some cleanup for flag command.
2019-08-18 10:38:07 -04:00
wizjany
e59d61e1cf
Extract NumberFlag for suggestions, make FlagHelper prettier in console.
2019-08-06 23:08:10 -04:00
wizjany
bbed280f62
Update docs links to point to enginehub.
...
Also don't allow block-place/block-break setting from flag helper.
2019-08-06 21:50:05 -04:00
wizjany
48922118b1
Fix fireworks, protect by default (this is a behavioral change).
...
Add regions.use-paper-entity-origin setting, false by default because
it can have some weird implications.
2019-08-01 23:47:27 -04:00
wizjany
14fe2d0e79
Use Paper player profiles if available.
...
Also fall back to caching to memory if SQLite can't be linked.
This is a common issue with (bad) server hosts who mount /tmp as noexec,
which causes sqlite's native binaries to fail to link.
2019-08-01 20:24:34 -04:00
wizjany
3468e3d47e
Handful of small fixes.
...
* Fix material loading from config requiring minecraft: namespace.
* Fix disallowed-lightning blocks. Lightning entities are weird.
* Fix /wg reload overwriting config changes.
* General around thread usage/naming/shutdown. If anyone was actually
making their own managers/indices you deserve to break.
2019-07-31 22:53:20 -04:00
wizjany
cc3f4d4d44
Relocate squirrelid in source, fix flyway shading.
2019-07-30 09:44:19 -04:00
wizjany
61494fd76e
Migrate gradle to kotlin dsl.
2019-07-29 23:25:13 -04:00
wizjany
afe042ef4d
Add option for resetting fall distance when void falling teleport is on.
...
reset-fall-on-void-teleport, defaults to false. (I can't remember if
old WG 6 behavior was to do this or not...?)
2019-07-27 21:57:49 -04:00
wizjany
f37acd3de6
Whitelist player->player interacts.
...
As noted before, any more specific events should still be blocked (such
as potion use).
2019-07-23 20:13:12 -04:00
wizjany
79f6635b8a
Make /wg profile text more clear.
...
This patch dedicated to @phoenix616.
2019-07-16 18:42:48 -04:00
wizjany
a9cd23c6ef
Don't replace in comments and strings when you refactor...
2019-07-02 17:39:21 -04:00
wizjany
8ca01b37a4
Add config to disable villagers getting zapped to witches.
...
"weather.disable-villager-witchification"
2019-06-30 19:58:10 -04:00
wizjany
aa8997aeca
Add TP button to /rg list where applicable.
2019-06-30 11:37:50 -04:00
wizjany
b757fcc88b
Send CUI changes when using /rg select.
2019-06-27 08:06:09 -04:00
wizjany
7593e1a01c
Initial update to 1.14.
2019-06-25 22:12:18 -04:00
wizjany
af3eb85962
Add on-equip blacklist event.
...
Note that due to deficiencies in the Bukkit API, the event will attempt
to be overprotective and cancel some events that may not actually result
in the player equipping an item. Maintainable PRs welcome. (i.e. would
rather not have to have a list of slot numbers for various inventories
and match them to items :upside_down:)
2019-06-25 22:11:33 -04:00
wizjany
6d25513739
Don't allow setting build + passthrough in the flag helper.
...
It masks the warning message and too many people mess this up.
2019-06-22 14:15:21 -04:00
wizjany
fe4f0cfc49
Bump dependencies.
...
Also remove intake. Unsure when that was ever used.
2019-06-13 09:17:20 -04:00
wizjany
029f867a41
Add crop-growth flag/config option.
...
Fixes WORLDGUARD-4088.
2019-05-27 20:42:17 -04:00
wizjany
ce35798f67
Fix issues with sometimes-loaded worlds in location flags.
2019-05-26 02:19:33 -04:00
wizjany
0f989fc1b4
Small config cleanup.
2019-05-25 09:59:52 -04:00
wizjany
c4b31cf085
Allow newlines in blacklist messages with \n.
...
Fixes WORLDGUARD-4089.
2019-05-22 08:16:16 -04:00
wizjany
6e30f98322
Fix unknown group flag unmarshalling.
...
i.e. don't.
2019-05-21 19:44:53 -04:00
wizjany
f516999087
Fix error when group flag existed for non-existent flag.
...
Probably caused by bad API usage /shrug.
2019-05-21 16:31:42 -04:00
wizjany
3e899a70c4
Fix /rg claim.
2019-05-15 19:24:23 -04:00
wizjany
d6c2504bbf
Make CPU profiling interval configurable.
...
Also lower the default to something more sensible.
Also cleanup unused imports.
2019-05-14 19:01:47 -04:00
wizjany
d542ba78ff
Remove AsyncCommandHelper for new AsyncCommandBuilder.
...
Helper suffers from race conditions for short-lived tasks, leading to
some poor UX conditions such as errors not propagating to the user
(because the exception handler wasn't attached to the future yet), or
lack of success messages.
This commit replaces that system by a Builder which takes a callable to
begin, and then takes supervisor, delay message, and the success and
failure messages and handlers as parts of the builder. The success and
failure handlers wrap the callable itself before submitting to the
executor so they will always be run. The supervisor and delay are added
as listeners to the future since they aren't required if the task is
sufficiently short-lived (and to maintain compatibility with the classes
which are now in WorldEdit).
The builder also supports Components for success and failure messages,
as well as consumers of the callable's result or exception for better
customization of output, instead of having to rely on adding a callback
to the future.
The future is still returned for certain special usages.
2019-05-12 14:40:09 -04:00
wizjany
d4c49a7539
Clean up task monitoring, cancelling, exception handling etc.
...
Fixes a few issues such as /wg stopprofile leaving a pseudo-cancelled
task in the supervisor, delaying server shutdowns until profiles finish,
not forwarding exceptions that occur during tasks running correctly, etc.
2019-05-11 14:23:45 -04:00
wizjany
2e2be7092d
Ensure un-marshalled registry flags are always lowercase.
...
Possibly old region files still had uppercase entries?
Fixes WORLDGUARD-3949 regression.
2019-05-11 11:30:46 -04:00
wizjany
ec4c53da77
Minor cleanup.
2019-05-11 11:30:45 -04:00
Matthew Miller
8c345cb64b
Updated for Text3
2019-05-06 16:49:33 +10:00
wizjany
461f3e1faf
Merge pull request #404 from TheMolkaPL/stoplag-fix
...
Fix activityHaltToggle in /stoplag
2019-05-05 17:10:37 -04:00
wizjany
6fd7190ff2
Ensure session handler order.
2019-05-05 16:55:27 -04:00
wizjany
c57dd20f24
Brace.
2019-05-05 15:48:42 -04:00
TheMolkaPL
71df9c0011
Fix activityHaltToggle in /stoplag
2019-05-05 16:25:21 +02:00
wizjany
b27f18788c
Wrap /rg flags
in a task.
2019-05-05 00:02:24 -04:00
wizjany
18365bbe42
Formatting fixes.
2019-05-04 23:21:19 -04:00
wizjany
82451595cb
Add greeting-title and farewell-title flags.
...
Totally didn't accidentally include the flags in last commit.
Closes WORLDGUARD-4008.
2019-05-04 22:56:55 -04:00
wizjany
c516eb2174
Add frosted-ice-melt flag, and frosted-ice-form flag.
...
Frosted-ice-form is checked with build, meaning it can be set to allow
for non-members to use frost walker, deny for members to not be able to
use frost walker, or none to respect membership.
Reverts behavior of ice-melt flag to pre-7.x behavior.
Apparently this wasn't covered before.
Fixes WORLDGUARD-4077.
Closes #364 .
2019-05-04 20:52:28 -04:00
wizjany
7199b8e70f
Add /rg flags
command.
...
Provides an overview of all flags set on a region, including inherited
values, and allows the user to set or unset flags with a single click.
2019-05-04 20:52:13 -04:00
wizjany
d9bb321f83
Add more fancy texts and pagination.
...
Also some general cleanup.
2019-04-30 19:53:19 -04:00
Kenzie Togami
7692e30721
Switch to new Exception stuff from WE
2019-04-30 15:24:15 -07:00
Kenzie Togami
5f88bef5ac
Correct print(TextComponent) method
2019-04-30 13:34:45 -07:00
wizjany
5c0be800ae
Brace.
2019-04-28 20:43:01 -04:00
TheMolkaPL
ac505f0064
Warn about consequences and add /stoplag confirm
2019-04-28 20:41:20 -04:00
wizjany
2aee42cbf2
Clean up gradle dependencies. Tell me if this breaks downstream builds.
...
Either I broke something, or you were using WG's jar for some dep that we
don't consider to be API.
2019-04-28 20:36:28 -04:00
wizjany
5c8b6d3f95
Lots of fancy texts.
2019-04-28 20:21:38 -04:00
wizjany
36eba9c9dd
That's not supposed to be there.
2019-04-26 15:07:36 -04:00
Matthew Miller
50e62bd0e7
Update text for WorldEdit changes ( #401 )
...
* Update for text in WE
* Properly write the legacy converter
* Made the text less thicc
* Update for new text API in WE
2019-04-25 19:40:01 +10:00
wizjany
1dbd25d15e
Add block-trampling flag.
...
Applies to turtle eggs and farmland.
Closes WORLDGUARD-4067, WORLDGUARD-3666.
Also do some misc cleanup.
2019-04-19 23:14:14 -04:00
wizjany
ef2783f30a
Add snowman-trails flag.
...
Closes WORLDGUARD-3566, #378 .
Also clean up some listeners, and the flag listing.
2019-04-17 21:23:29 -04:00
KisaragiEffective
47fb9bd30d
Remove redudant type parameters.
2019-04-08 22:04:02 +09:00
wizjany
44c4e5816f
Move log message about loading regions to proper location.
2019-04-02 17:18:44 -04:00
wizjany
41268ca443
Don't break completely if regions fail to load.
2019-04-02 17:13:24 -04:00
wizjany
874e429779
Make input more lenient. Allow specifying TZ other than UTC.
...
Also remove 'none' and cleanup LocationFlag.
2019-03-30 20:07:35 -04:00
JOO200
9c5eee90da
Changed to java 8 time api
2019-03-30 18:41:42 -04:00
JOO200
4f088e5bf0
Added TimestampFlag
2019-03-30 18:41:42 -04:00