Commit Graph

2316 Commits

Author SHA1 Message Date
Ben Woo
b646937d23 Make config set methods return Try<Void> 2025-01-19 22:25:39 +08:00
Ben Woo
d6a70bbb9b Fix MultiverseWorld#isLoadedWorld returning wrong value 2025-01-19 15:58:12 +08:00
Ben Woo
55cd6b7c59 Make WorldConfigNodes reference MultiverseWorld instead of LoadedMultiverseWorld 2025-01-19 15:51:42 +08:00
Ben Woo
4362453f90 Implement MVWorldPropertyChangeEvent 2025-01-19 15:29:04 +08:00
Ben Woo
36aa144121 Implement MVRespawnEvent as Cancellable and remove respawn method 2025-01-19 14:43:34 +08:00
Ben Woo
bb91a74308 Make ItemEconomy a service 2025-01-19 14:36:38 +08:00
Ben Woo
b8db6e2645 Implement MultiverseCoreApi 2025-01-18 15:51:26 +08:00
Ben Woo
449f85ee5c Ensure all imports in api does not import other multiverse.core packages 2025-01-18 15:16:41 +08:00
Ben Woo
c1e6614423 Implement generator as an api 2025-01-18 15:13:41 +08:00
Ben Woo
b17afbd8e0
Merge pull request #3155 from Multiverse/ben/mv5/api
Ben/mv5/api
2025-01-18 14:59:22 +08:00
Ben Woo
b3e633b119 Fix and remove some useless todos 2025-01-18 14:57:13 +08:00
Ben Woo
4eb9ff6dae Remove old tests 2025-01-18 14:36:10 +08:00
Ben Woo
e3fded9373 Major refactor to support developer api 2025-01-18 14:34:35 +08:00
Ben Woo
53c9cbe81c More configuration option for respawning 2025-01-18 11:37:00 +08:00
Ben Woo
b68e8a2cef Localise teleport "you" message 2025-01-17 20:14:59 +08:00
Ben Woo
5742670a90 Implement better spawn command permission checking and tab complete 2025-01-17 20:14:21 +08:00
Ben Woo
b66498545a Log unknown world flag 2025-01-17 20:13:18 +08:00
Ben Woo
7a6d328d5a Fix minor issues with teleport CommandCompletion 2025-01-17 18:57:14 +08:00
Ben Woo
2cfcdad4de Improve teleport tab complete handling 2025-01-17 16:50:41 +08:00
Ben Woo
4dc61634bd Don't log permission checks for console 2025-01-17 16:47:24 +08:00
Ben Woo
51731cd178 Only suggest destination that sender have permission for 2025-01-17 15:21:51 +08:00
Ben Woo
14a541cc49 Fix debug permission config not applying 2025-01-17 15:20:17 +08:00
Ben Woo
9d54cc48dd Properly register world and teleport permissions 2025-01-17 11:36:17 +08:00
Ben Woo
ed5a13b269 Implement default-respawn-to-world-spawn config option and refactor respawn event 2025-01-16 20:55:27 +08:00
Ben Woo
971a159eae Fix config tests 2025-01-16 19:43:06 +08:00
Ben Woo
83e197aacd Implement config option for debug permission 2025-01-16 19:40:26 +08:00
Ben Woo
9884ec2e82 Fix tests by adding new anchor-respawn property to worlds.yml files 2025-01-16 13:16:58 +08:00
Ben Woo
52a4059f98 Fix typo in anchor respawn method name 2025-01-16 13:16:01 +08:00
Ben Woo
c49653ebc8 Add world property toggle allow anchor spawn 2025-01-16 11:00:44 +08:00
Ben Woo
9be7c75dcc Defaults mv dumps to use paste.dev as paste.gg is down 2025-01-16 10:46:01 +08:00
Ben Woo
5b97c3fd1c Fix mv dumps unable to get latest.log if world-container is changed 2025-01-16 10:10:33 +08:00
Ben Woo
3a9eb88197
Merge pull request #3151 from Multiverse/ben/mv5/block-safety
ben/mv5/block-safety
2025-01-16 09:50:31 +08:00
Ben Woo
d83d6c6483 Improve safe location search config comments 2025-01-16 09:42:40 +08:00
Ben Woo
6fb620cac6 Fix failing tests caused by new class and config changes 2025-01-16 09:39:38 +08:00
Ben Woo
cb2ab3e437 Shift all to use AdvancedBlockSafety and deprecate old BlockSafety 2025-01-16 09:31:53 +08:00
Ben Woo
03dc8e4245 Rename the broken config file and regen a new one 2025-01-15 19:07:00 +08:00
Ben Woo
2df1f39ef9 Implement rest of block safety methods 2025-01-15 14:11:01 +08:00
Ben Woo
3b9a91c010 Implement better search algo that search from the nearest block outwards 2025-01-15 12:43:44 +08:00
Ben Woo
64e7baec3c Implement initial new algorithm for safe location 2025-01-14 23:10:35 +08:00
Ben Woo
06feb84ba9 Add test for worlds.yml with weird formatting 2025-01-13 23:55:01 +08:00
Ben Woo
b5f1b32a3d Fix serialisation issues with string and list items 2025-01-13 23:53:57 +08:00
Ben Woo
647e116bc5 Refactor config handles and make world properties alphabetical order 2025-01-13 23:16:32 +08:00
Ben Woo
874b604294 Check if current location is safe before searching around 2025-01-13 19:27:52 +08:00
Ben Woo
1f8a7975ce Add more tests for world config manager 2025-01-13 14:31:17 +08:00
Ben Woo
293417125a Refactor and add config file assertion for config.yml testing 2025-01-13 14:18:30 +08:00
Ben Woo
5b09097fd2 Fix not removing old serialisation tags if file is crlf 2025-01-13 14:17:50 +08:00
Ben Woo
c03679d20e Fix new config file not having version number 2025-01-13 14:16:49 +08:00
Ben Woo
ef21d83c35 Fix config handle reset not using serialiser 2025-01-13 07:04:31 +08:00
Ben Woo
89871cd418 Ensure onSetValue is ran when setting up nodes 2025-01-12 22:49:15 +08:00
Ben Woo
7d90a11d9c Remove invalid command condition in delete command 2025-01-12 22:34:23 +08:00