Commit Graph

1560 Commits

Author SHA1 Message Date
Ben Woo
e318f1e86f
Cleanup world purger and add docs 2023-09-10 15:03:05 +08:00
Ben Woo
b780f5c2f3
Update gamerules command to new world manager api 2023-09-10 14:10:40 +08:00
Ben Woo
1740137d1e
Merge branch 'MV5' into world-revamp-continue
# Conflicts:
#	src/main/java/com/onarandombox/MultiverseCore/commandtools/MVCommandCompletions.java
2023-09-10 14:05:41 +08:00
Ben Woo
323145ebf0
Merge pull request #3006 from Multiverse/ben/mv5/config-migrate
Implement worlds.yml config migrate
2023-09-10 14:04:03 +08:00
Ben Woo
903941eb01
Fix wildcard imports for worldmanager 2023-09-10 13:59:01 +08:00
Ben Woo
b8c10c412d
Improve gamerules command with filter and page flag 2023-09-10 13:56:50 +08:00
Ben Woo
95a1fddbe5
Fix some regression on command flag registering and completion 2023-09-10 13:54:44 +08:00
Jeremy Wood
1eb33c6972
Clean up some return counts in WorldManager. 2023-09-10 01:35:53 -04:00
Ben Woo
b2ed43ba22
Add docs to new migration classes 2023-09-10 12:23:20 +08:00
Ben Woo
c61c98ff5e
Remove serializable including whitespace and newline 2023-09-10 12:03:35 +08:00
Ben Woo
13b9419b85
Improve and fix minor migration regressions 2023-09-10 11:55:00 +08:00
Jeremy Wood
6b40c3a190
Add interface for keeping world settings for options. 2023-09-09 23:53:45 -04:00
Ben Woo
fcbaffc821
Implement basic config migration for worlds.yml 2023-09-10 00:50:58 +08:00
Jeremy Wood
f556f6f98a
Refactor populateWorldFromConfig to be smaller. 2023-09-09 11:48:54 -04:00
Jeremy Wood
df0db292ed
Fix incorrect world name var. 2023-09-09 11:19:10 -04:00
Jeremy Wood
c1d2fe48f0
Reduce Result boilerplate in WorldManager. 2023-09-09 11:14:01 -04:00
Jeremy Wood
ba5c054298
Add a bunch of missing package-info.java. 2023-09-09 10:54:10 -04:00
Jeremy Wood
6fd56e56e1
Create private message replacement methods in WorldManager. 2023-09-09 10:51:52 -04:00
Jeremy Wood
7a8bd674d2
Fix more checkstyle issues in WorldManager. 2023-09-09 10:23:13 -04:00
Ben Woo
c71bdd83d6
Merge pull request #2997 from Multiverse/better-flag-handling
Better flag handling
2023-09-09 20:05:21 +08:00
Ben Woo
b70960d39c
Add javadocs to new command flag methods 2023-09-09 20:02:50 +08:00
Ben Woo
2f65bf4597
Merge pull request #2992 from zax71/MV5-gamerules-command
Implement `/mv gamerules` command
2023-09-09 19:54:21 +08:00
Zax71
ee4a8c8ec9 Fix (some) of the checkstyle violations 2023-09-09 12:27:44 +01:00
Zax71
48ff8d8bd1 Switch to ContentDisplay API 2023-09-09 12:16:48 +01:00
Ben Woo
0f105b1777
pain: Add docs to the new world related classes 2023-09-09 13:46:32 +08:00
Ben Woo
8e95c22c4d
Refactor and fix some world manager code style 2023-09-09 12:31:43 +08:00
Ben Woo
5c7c9ba465
Improve world config management with parsing of new and removed worlds on reload 2023-09-09 00:41:36 +08:00
Ben Woo
b4617c1c1f
Eradicate all reference of offline world 2023-09-08 23:41:26 +08:00
Ben Woo
f0d2499dd2
Refactor multiverse world class and getters naming 2023-09-08 23:19:43 +08:00
Ben Woo
17f2f58c1d
Fix clone command newworld replacement id 2023-09-08 23:10:47 +08:00
Jeremy Wood
8f439abd1b
Merge remote-tracking branch 'origin/world-revamp-continue' into dtm/mv5/world-revamp-continue-patch
# Conflicts:
#	src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java
2023-09-08 09:13:41 -04:00
Jeremy Wood
035005bac3
Apply basic checkstyle fixes to DataStore. 2023-09-08 09:08:30 -04:00
Jeremy Wood
324328f254
Apply basic checkstyle fixes to WorldConfigManager. 2023-09-08 09:07:46 -04:00
Jeremy Wood
7582a84cc6
Apply basic checkstyle fixes to WorldConfigNodes. 2023-09-08 09:07:21 -04:00
Ben Woo
cadb931d4c
Fix adjust spawn not applying 2023-09-08 21:05:57 +08:00
Jeremy Wood
93d23115ff
Apply basic checkstyle fixes to WorldConfig. 2023-09-08 09:04:23 -04:00
Jeremy Wood
58d37e93ee
Apply basic checkstyle fixes to NullLocation. 2023-09-08 09:03:10 -04:00
Jeremy Wood
11edd8e631
Apply basic checkstyle fixes to WorldPurger. 2023-09-08 09:02:17 -04:00
Jeremy Wood
caba4100a3
Apply basic checkstyle fixes to OfflineWorld. 2023-09-08 08:59:36 -04:00
Jeremy Wood
7726cf3485
Apply basic checkstyle fixes to MVWorld. 2023-09-08 08:58:43 -04:00
Jeremy Wood
1ca6b20755
Apply basic checkstyle fixes to WorldManager. 2023-09-08 08:52:35 -04:00
Ben Woo
9c703ff329
Fix clone world ignore file 2023-09-08 19:51:08 +08:00
Ben Woo
0513865f43
Use Try<Void> for config loading and saving 2023-09-08 19:43:04 +08:00
Ben Woo
f1ee2ee227
Merge branch 'MV5' into world-revamp-continue 2023-09-08 15:50:59 +08:00
Ben Woo
f9c6c441e1
Add back /mvtp shorthand command 2023-09-07 23:54:51 +08:00
Ben Woo
3cdf9736ec
Refactor a better method of registering and using command flags 2023-09-07 23:31:54 +08:00
Ben Woo
89c6eb41cb
Refactor clone world into multiple smaller methods 2023-09-07 22:53:53 +08:00
Ben Woo
7ab8f219dd
Better copy folder implementation with try 2023-09-07 22:05:45 +08:00
Ben Woo
6ebcd40a50
Implement remaining locales for clone and regen 2023-09-07 12:20:28 +08:00
Ben Woo
6427881c98
Finish up clone command 2023-09-07 12:07:01 +08:00
Ben Woo
3ef72a993a
Implement configurable transfer of data during regen 2023-09-07 11:50:30 +08:00
Ben Woo
9cb8724db2
Finish up regen world 2023-09-07 11:38:29 +08:00
Ben Woo
7060e60ddd
Merge branch 'MV5' into world-revamp-continue 2023-09-07 10:25:44 +08:00
Ben Woo
b51cd645bb
Bump MockBukkit with the onDisable fix 2023-09-07 09:48:47 +08:00
Ben Woo
3f075169a4
Implement basic regen command 2023-09-07 00:27:25 +08:00
Ben Woo
af2fc7c630
Implement basic clone command 2023-09-07 00:07:46 +08:00
Ben Woo
7246d433bc
Fix binding plugin and bump MockBukkit 2023-09-06 23:07:16 +08:00
Ben Woo
f056dcdbc9
Better error handling of world folder deletion 2023-09-06 00:13:53 +08:00
Ben Woo
d01a884025
Cleanup WorldManager and improve on locale results 2023-09-05 23:47:58 +08:00
Ben Woo
eb5bb4e234
Implement locale error messages for wm result 2023-09-05 18:57:35 +08:00
Ben Woo
8fc2371077
Filter away already loaded worlds for getPotentialWorlds 2023-09-05 15:57:10 +08:00
Ben Woo
fda0e038f5
Implement getPotentialWorlds 2023-09-05 15:54:51 +08:00
Ben Woo
80ff02a92b
Improve import world result 2023-09-05 15:42:45 +08:00
Ben Woo
e8ca95505b
Implement new generator API 2023-09-05 15:17:27 +08:00
Ben Woo
ec0000bc8a
Fix wrong context optional check and arg being null 2023-09-05 00:21:32 +08:00
Ben Woo
82f47af924
Completely remove the old WorldManager from startup 2023-09-05 00:08:38 +08:00
Ben Woo
fe26ccb1eb
Make spawning amount apply and rename it 2023-09-04 23:58:47 +08:00
Ben Woo
f519639893
Fix weather and spawning 2023-09-04 23:48:35 +08:00
Ben Woo
5278eccad2
Fix imports for reload command 2023-09-04 23:30:26 +08:00
Ben Woo
32fb25854f
Migrate portal, entity and worldpurger to new wm 2023-09-04 23:30:13 +08:00
Ben Woo
c253dc1322
Fix gamerule command permission 2023-09-04 21:51:22 +08:00
zax71
1ac54b7e1d Add i18n 2023-09-04 13:08:39 +01:00
zax71
3b7a801a0c Implement JoinDestination and EnableJoinDestination config options 2023-09-04 12:30:50 +01:00
Ben Woo
0a62081d03
Move weather handling to new wm 2023-09-04 13:37:29 +08:00
Ben Woo
0824108109
Move chat prefix to new wm and fix more imports 2023-09-04 11:33:53 +08:00
Ben Woo
c62aa91db7
Move world listener to handle new world manager 2023-09-04 11:27:25 +08:00
Ben Woo
90eb1c882b
Dumps command use new wm and fix some imports 2023-09-04 10:48:08 +08:00
Ben Woo
891f7ca136
Remove old wm reference in bstats, tests and placeholders 2023-09-04 10:34:32 +08:00
Ben Woo
55703e6f39
Merge pull request #2989 from zax71/MV5-fix-dumps-command
Fix /mv dumps to support ANSI and UTF-8 encoded log files
2023-09-04 09:59:30 +08:00
Ben Woo
f280e2076c
Minor cleanup 2023-09-04 09:54:00 +08:00
zax71
17dff457b2 Chore: codestyle changes 2023-09-03 17:36:14 +01:00
Ben Woo
4eb8dfbc67
Move command completion, context, conditions to new world manager api 2023-09-04 00:16:44 +08:00
Ben Woo
08b87cba39
Move destination to new world manager api 2023-09-03 23:42:38 +08:00
Ben Woo
791d8b653c
Allow permission check for offline worlds 2023-09-03 23:40:08 +08:00
Ben Woo
6f673066a8
Fix list command permissions checking 2023-09-03 23:38:22 +08:00
Ben Woo
f524c5bdde
Implement proper spawn location 2023-09-03 23:25:10 +08:00
Ben Woo
dc75e87223
Move entrycheck, playerlistener and worldnamechecker to api 2023-09-03 22:21:28 +08:00
Ben Woo
d77d7032dd
Update list command and fix importWorld bug 2023-09-03 16:15:55 +08:00
Ben Woo
fa4391e543
Merge branch 'MV5' into world-revamp-continue 2023-09-03 15:52:56 +08:00
Ben Woo
046840f0d9
refactor: Remove deprecated and unused classes 2023-09-03 15:52:02 +08:00
Ben Woo
3356757c13
Implement proper reloading of worlds config 2023-09-03 15:39:57 +08:00
Ben Woo
dff192f3ce
Make MVWorld constructor non-public 2023-09-03 14:55:39 +08:00
Ben Woo
f2a3d3f85a
Refactor newMVWorld instance creation 2023-09-03 14:53:51 +08:00
Ben Woo
550dae92e9
Implement more world manager features 2023-09-03 14:35:27 +08:00
zax71
1fef714b8f Fix /mv dumps to support ANSI and UTF-8 encoded log files 2023-09-02 19:08:09 +01:00
zax71
b42b77b0bf implement /mv gamerules command 2023-09-02 18:04:31 +01:00
Ben Woo
b154606922
Finish basic CRUD for new world management 2023-09-03 00:51:07 +08:00
Ben Woo
7828c92926
Add entryfee, spawning and spawn location 2023-09-02 23:07:39 +08:00
Ben Woo
1f7b8ffa96
Add remaining world properties methods 2023-09-02 22:30:06 +08:00
Ben Woo
35993419ca
Implement basic load, unload and remove world 2023-09-02 21:59:53 +08:00
Ben Woo
a8fbeb53d4
Update bukkit world when world config node set 2023-09-02 17:04:30 +08:00
Ben Woo
e1eae48bc7
Implement basic create and delete world 2023-09-02 16:54:33 +08:00
Ben Woo
5dd22b5d9b
Basic mvworld and offline world 2023-09-02 16:12:34 +08:00
Ben Woo
07b543a845
Implement AddWorldOptions to condense method parameters 2023-09-02 15:19:30 +08:00
Ben Woo
f7295e2c2e
Cleanup TODO messages 2023-09-02 14:50:10 +08:00
Ben Woo
381f440a6b
Merge branch 'MV5' into MV5-version-command 2023-09-01 23:42:55 +08:00
Ben Woo
4300d83c90
Merge pull request #2986 from zax71/MV5-coord-command
Add `/mv coordinates` command
2023-09-01 23:42:04 +08:00
Ben Woo
adcbcdb7df
Merge pull request #2987 from Multiverse/new-config-migrate
Do not migrate if new config file is created
2023-09-01 23:41:51 +08:00
Ben Woo
7a8f468f98
Minor refactor to dumps command 2023-09-01 23:39:36 +08:00
Ben Woo
867f4a447d
Better error handling for finding files in server directory 2023-09-01 23:33:30 +08:00
Ben Woo
55aac81258
Merge branch 'MV5' into pr/2975
# Conflicts:
#	src/main/java/com/onarandombox/MultiverseCore/world/SimpleMVWorldManager.java
2023-09-01 23:28:05 +08:00
Ben Woo
194dc8ef8a
Fix error message i18n path key 2023-09-01 23:26:23 +08:00
Ben Woo
c7c344730b
Minor refactor to coord command and fix tests 2023-09-01 23:21:57 +08:00
Zax71
f8b75c0781
Update src/main/java/com/onarandombox/MultiverseCore/commands/CoordinatesCommand.java
Co-authored-by: Ben Woo <30431861+benwoo1110@users.noreply.github.com>
2023-09-01 23:20:09 +08:00
Zax71
dc89161a04
refactor: rename permission 2023-09-01 23:20:08 +08:00
zax71
90522a014e
Add /mv coordinates 2023-09-01 23:20:08 +08:00
Ben Woo
6effeacd1b
Add getWorldConfig method 2023-09-01 11:20:25 +08:00
Ben Woo
42eadd91a5
Adda remaining properties methods to WorldConfig 2023-09-01 11:00:59 +08:00
Ben Woo
1b2f8889ce
Do not migrate if new config file is created 2023-09-01 00:03:29 +08:00
Ben Woo
da1d059b84
Update list command to new api changes 2023-08-31 23:55:40 +08:00
Ben Woo
55805aa618
Merge branch 'MV5' into list-command
# Conflicts:
#	src/main/java/com/onarandombox/MultiverseCore/MultiverseCore.java
2023-08-31 23:34:10 +08:00
Ben Woo
5208028e65
Add todo on comparing config file 2023-08-31 23:25:30 +08:00
Ben Woo
55fd08e0b1
Remove stray white spacing 2023-08-31 23:22:23 +08:00
Ben Woo
904bd8634a
Improve tests for world config file 2023-08-31 23:21:27 +08:00
Ben Woo
02b02530bd
Revert delete command changes 2023-08-31 23:02:19 +08:00
Ben Woo
5fca5b18b8
Remove from commands and add to tests 2023-08-31 22:58:33 +08:00
Ben Woo
aa412b1060
Add todo for loading worlds 2023-08-31 15:17:51 +08:00
Ben Woo
54c8bac3d3
Config node automatically use the enum node serializer 2023-08-31 15:16:41 +08:00
Ben Woo
decf20f95f
Add basic tests for world config 2023-08-31 14:59:31 +08:00
Ben Woo
6888783d01
Implement world blacklist config 2023-08-31 14:21:33 +08:00
Ben Woo
c569bc797f
Implement node serialisation 2023-08-31 14:21:33 +08:00
Ben Woo
5dba9b5904
Starting to shift worlds.yml to new config api 2023-08-31 14:21:32 +08:00
Ben Woo
55b21bf17e
Fix config tests 2023-08-31 14:14:55 +08:00
Ben Woo
4ff1663353
Temp fix to fix tests 2023-08-31 14:03:03 +08:00
zax71
ac6d42549d Reorder logic to make it more readable 2023-08-30 17:40:52 +01:00
zax71
b500afd8f0 Whitespace fixes 2023-08-30 17:28:04 +01:00
zax71
0c79c6577e Rename Services and LogsType enums 2023-08-30 17:26:15 +01:00
zax71
2b7d1412b5 Remove uploading message and print out directly 2023-08-30 17:23:19 +01:00
zax71
560a6d4d7e Fix whitespace 2023-08-30 17:16:51 +01:00
zax71
8444383f16 Update command syntax 2023-08-30 17:15:17 +01:00
zax71
de77d09eaa Move getBukkitConfig() and getServerProperties()` into FileUtils.java 2023-08-30 17:13:31 +01:00
zax71
69fdfcfd9f Fix syntax 2023-08-30 17:03:28 +01:00
Ben Woo
cbf44cb918
Merge pull request #2928 from Multiverse/perm-revamp-3
feat: Revamp teleport world entry checking
2023-08-30 23:38:58 +08:00
zax71
bf663a76dc Add debug logging (in /mv debug 3) 2023-08-30 11:55:23 +01:00
zax71
4f756a4c2d Change flags used 2023-08-30 11:52:28 +01:00
Ben Woo
d2b18b8545
Merge pull request #2982 from Multiverse/enum-flag
Specific flag builder for enum to streamline context and completion
2023-08-29 16:40:33 +08:00
Ben Woo
74e7a1c9f3
Merge branch 'MV5' into perm-revamp-3 2023-08-29 10:55:52 +08:00
Ben Woo
0ddb5563be
Fix command conditions not registering and lowercased 2023-08-29 10:54:22 +08:00
Ben Woo
bf8bca3244
Specific flag builder for enum to streamline context and completion 2023-08-29 10:44:25 +08:00
Jeremy Wood
542f321889
Merge remote-tracking branch 'origin/main' into MV5
# Conflicts:
#	.github/workflows/promote_release.yml
#	.github/workflows/release.yml
#	build.gradle
#	src/main/java/com/onarandombox/MultiverseCore/commands/RegenCommand.java
#	src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java
2023-08-28 15:31:34 -04:00