Commit Graph

1137 Commits

Author SHA1 Message Date
Jeremy Wood
0db90dc0b9
Set up DI for primary dependencies of MultiverseCore. 2023-03-07 14:39:11 -05:00
Jeremy Wood
6a434746c9
Also bind plugin logger in PluginBinder. 2023-03-07 14:16:58 -05:00
Jeremy Wood
de6b25db35
Also bind MultiverseCore to MVCore and MVPlugin. 2023-03-07 02:24:00 -05:00
Jeremy Wood
40637e6a88
Enable basic dependency injection. 2023-03-07 01:59:48 -05:00
Jeremy Wood
7ad0b04787
Abstract TestWithMockBukkit out of MockBukkitTest. 2023-03-07 00:20:26 -05:00
Ben Woo
3f6c3047d8
fix: Restore locales setup method (#2881) 2023-03-03 22:23:39 +08:00
Jeremy Wood
a4e84ad581
Use ServerMock instead of Server. 2023-03-02 08:36:43 -05:00
Jeremy Wood
65cb3f7037
Put test method after tearDown. 2023-03-02 08:35:52 -05:00
Jeremy Wood
fc7509cca6
Use a better test method name. 2023-03-02 08:35:30 -05:00
Jeremy Wood
eebb4a4a6d
Implement initial test using MockBukkit. 2023-03-02 02:22:47 -05:00
Jeremy Wood
87225b1c65
Move old tests to old-test. 2023-03-02 01:20:38 -05:00
Ben Woo
974afb4751
feat: Implement help command 2023-02-28 23:16:09 +08:00
Ben Woo
7dbd29b838
refactor: Shift classes and add javadocs 2023-02-28 23:07:19 +08:00
Ben Woo
560e3ab201
refactor: Make FileResClassLoader usable for other file paths. 2023-02-28 23:07:19 +08:00
Ben Woo
ffc4c600c5
feat: Enable per player locale support 2023-02-28 23:07:18 +08:00
Ben Woo
44904eaef4
feat: Allow for custom locale folder path 2023-02-28 23:07:18 +08:00
Ben Woo
47a92deffd
refactor: Use '&' for chat color formatting 2023-02-28 23:07:17 +08:00
Ben Woo
b4549c6791
feat: Add support for loading locales from plugin dir 2023-02-28 23:07:17 +08:00
Ben Woo
ec254c2989 build: Make MV5 build with gradle 2023-02-20 20:29:08 +08:00
Ben Woo
36549294b7 Merge branch 'main' into gradle-build 2023-02-20 20:25:47 +08:00
Jeremy Wood
4d40b3f7e4
Switch from Maven to Gradle. 2023-02-19 19:02:52 -05:00
Ben Woo
20ba6f130a feat: Implement remove and import command (#2839)
* feat: Implement remove and import command

* chore: Improve some description strings
2023-02-18 14:03:05 +08:00
Ben Woo
d8fff0ae15 chore: Up protocol version to 50 2023-02-18 14:03:04 +08:00
Ben Woo
3da1b7e8c4 refactor: Remove AbstractMVPlugin entirely 2023-02-16 11:12:03 +08:00
Ben Woo
79ae8754dc feat: Properly cleanup AbstractMVPlugin 2023-02-16 10:46:01 +08:00
Ben Woo
3fc3663d5d feat: Improve SpawnLocation toString
This helps in debug logs not showing world=null for spawn location
2023-02-15 20:27:59 +08:00
Ben Woo
5d1d71baf2 refactor: Add shortcut methods to ParsedDestination 2023-02-15 19:47:11 +08:00
Ben Woo
71367d2d69 fix: Arg pop issue with * worlds selection 2023-02-15 14:06:41 +08:00
Ben Woo
09d8790804 chore: Refactor and fix some bugs with content display 2023-02-15 12:16:24 +08:00
Ben Woo
53f453b7ac refactor: Reorder gamerules completion alphabetically 2023-02-15 11:24:56 +08:00
Ben Woo
9a255555a6 feat: Set default completions 2023-02-15 11:24:09 +08:00
Ben Woo
28d71f7bc1 feat: Add support for comma separated MVWorlds 2023-02-15 11:10:35 +08:00
Ben Woo
bf5ab8d1b3
refactor!: Remove MVPlayerSession (#2838)
Remove teleport / message cooldown along with it
2023-02-15 10:30:05 +08:00
Ben Woo
c05d866f2f
refactor: Remove buscript entirely (#2837) 2023-02-15 10:28:56 +08:00
Zax71
9cf2c68fe8
feat: Implement gamerule command (#2840)
* Feat: Add /gamerule

Signed-off-by: Ben Woo <30431861+benwoo1110@users.noreply.github.com>

* Chore: Accept sugguestion

Co-authored-by: Ben Woo <30431861+benwoo1110@users.noreply.github.com>

* Chore: Implement (most) suggestions from Ben

* feat: Implement gamerule context

* feat: Implement MVworld[] array context

* feat: Implement context for gamerule value

---------

Signed-off-by: Ben Woo <30431861+benwoo1110@users.noreply.github.com>
Co-authored-by: Ben Woo <30431861+benwoo1110@users.noreply.github.com>
2023-02-15 10:25:53 +08:00
Ben Woo
15ae0ea54f fix: Improve error handling for regex filter 2023-02-14 00:30:44 +08:00
Ben Woo
1e711ac258 fix: Missing pop arg when resolving mvworld 2023-02-14 00:19:30 +08:00
Ben Woo
706338bb0c feat: Add support for issuer with queued command 2023-02-13 23:59:46 +08:00
Ben Woo
1c89b6458f feat: Improve content display API
- Change ContentProvider to return a list instead of add to existing
- Add prefix for inline handler
- Change from CommandSender to BukkitCommandIssuer, prep for locale
2023-02-13 23:31:26 +08:00
Ben Woo
7978193d88 feat: Add support for resolving MVWorld based on issuer 2023-02-13 16:42:15 +08:00
Ben Woo
9efbbe7a4b feat: Add ContentFilter context 2023-02-13 16:38:15 +08:00
Ben Woo
afaed87a67 refactor: Split into abstract MultiverseCommand and MultiverseCoreCommand 2023-02-10 21:58:11 +08:00
Ben Woo
f3addfbf4e refactor: Use better nesting for locales key 2023-02-10 17:11:05 +08:00
Ben Woo
19ad1db5fb feat: Add reload command 2023-02-10 16:09:31 +08:00
Ben Woo
16096acc34 refactor: Make world name condition check id clearer 2023-02-09 17:09:28 +08:00
Ben Woo
1f907d93af refactor: Cleanup player finder
Add a getMulti method without command sender
2023-02-09 14:21:41 +08:00
Ben Woo
aed0e178ea feat: Add support for teleporting multiple players 2023-02-09 14:16:29 +08:00
Ben Woo
6694c02650 refactor!: Rename back to MVWorldManager 2023-02-09 14:02:00 +08:00
Ben Woo
10ef838d3f
feat: Implement create, delete, clone, regen, load and unload (#2835)
* feat: Implement create, delete, clone, regen, load and unload

* chore: Some formatting update

* chore: Implement suggested command changes

* feat: Add world name validation

* feat: Implement locale support for create command

* fix: World exist checking should include unloaded worlds

* fix: Add default null to generator output

* fix: Allow Unloaded worlds to be cloned

* chore: Make annotation order consistent
2023-02-09 13:50:36 +08:00
Ben Woo
5b25cf4f6c chore: Update vault and json dependency 2023-02-08 16:41:25 +08:00