/
SettingsManager.java
1136 lines (928 loc) · 30.1 KB
/
SettingsManager.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package com.bgsoftware.superiorskyblock.api.config;
import com.bgsoftware.superiorskyblock.api.enums.TopIslandMembersSorting;
import com.bgsoftware.superiorskyblock.api.handlers.BlockValuesManager;
import com.bgsoftware.superiorskyblock.api.key.Key;
import com.bgsoftware.superiorskyblock.api.objects.Pair;
import com.bgsoftware.superiorskyblock.api.wrappers.BlockOffset;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.configuration.ConfigurationSection;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
public interface SettingsManager {
/**
* The amount of time between auto-calculations that the plugin runs.
* If set to 0, it means the task is disabled.
* Config path: calc-interval
*/
long getCalcInterval();
/**
* All settings related to the database of the plugin.
* Config path: database
*/
Database getDatabase();
/**
* The main command of the plugin.
* Aliases can be added by adding "," after the command name, and split them using ",".
* Config path: island-command
*/
String getIslandCommand();
/**
* The maximum island size.
* Config path: max-island-size
*/
int getMaxIslandSize();
/**
* All the default values for new islands that are created.
* Config path: default-values
*/
DefaultValues getDefaultValues();
/**
* The default height islands will generate.
* Config path: islands-height
*/
int getIslandHeight();
/**
* Whether world borders are enabled for islands or not.
* Config path: world-borders
*/
boolean isWorldBorders();
/**
* All settings related to the stacked-blocks system of the plugin.
* Config path: stacked-blocks
*/
StackedBlocks getStackedBlocks();
/**
* The island worth to island level conversion formula.
* The formula contains a placeholder: `{}`, which is replaced with the island worth.
* Config path: island-level-formula
*/
String getIslandLevelFormula();
/**
* Whether island levels should be rounded or not.
* Config path: rounded-island-level
*/
boolean isRoundedIslandLevels();
/**
* The default island-top sorting type.
* Config path: island-top-order
*/
String getIslandTopOrder();
/**
* All settings related to the island-roles.
* Config path: island-roles
*/
IslandRoles getIslandRoles();
/**
* The line that determines if a sign is created as an island warp.
* Config path: sign-warp-line
*/
String getSignWarpLine();
/**
* The lines to be set for warp signs.
* Config path: sign-warp
*/
List<String> getSignWarp();
/**
* All settings related to the visitors-sign.
* Config path: visitors-sign
*/
VisitorsSign getVisitorsSign();
/**
* All settings related to the worlds of the plugin..
* Config path: worlds
*/
Worlds getWorlds();
/**
* All settings related to the spawn island.
* Config path: spawn
*/
Spawn getSpawn();
/**
* All settings related to the void teleportation.
* Config path: void-teleport
*/
VoidTeleport getVoidTeleport();
/**
* Get all the interactable blocks.
*/
List<String> getInteractables();
/**
* Get all the safe blocks.
*/
Collection<Key> getSafeBlocks();
/**
* Whether visitors should take damage on islands or not.
* Config path: visitors-damage
*/
boolean isVisitorsDamage();
/**
* Whether coop players should take damage on islands or not.
* Config-path: coop-damage
*/
boolean isCoopDamage();
/**
* The default amount of disbands players receive when they first join the server.
* If 0, then the disbands limit is disabled.
* Config-path: disband-count
*/
int getDisbandCount();
/**
* Whether the members list shown in island top should include the leader or not.
* Config-path: island-top-include-leader
*/
boolean isIslandTopIncludeLeader();
/**
* Default placeholders to be returned when no island exists.
* Config-path: default-placeholders
*/
Map<String, String> getDefaultPlaceholders();
/**
* Whether confirmation menu should be opened before banning a player from an island or not.
* Config-path: ban-confirm
*/
boolean isBanConfirm();
/**
* Whether confirmation menu should be opened before disbanding an island or not.
* Config-path: disband-confirm
*/
boolean isDisbandConfirm();
/**
* Whether confirmation menu should be opened before kicking an island member from an island or not.
* Config-path: kick-confirm
*/
boolean isKickConfirm();
/**
* Whether confirmation menu should be opened before leaving an island or not.
* Config-path: leave-confirm
*/
boolean isLeaveConfirm();
/**
* The spawners-provider to use.
* If set to AUTO, the plugin will automatically detect an available spawners provider and use it.
* Config-path: spawners-provider
*/
String getSpawnersProvider();
/**
* The stacked-blocks provider to use.
* If set to AUTO, the plugin will automatically detect an available stacked-blocks provider and use it.
* Config-path: stacked-blocks-provider
*/
String getStackedBlocksProvider();
/**
* Whether inventory of island members should be cleared when their island is disbanded or not.
* Config-path: disband-inventory-clear
*/
boolean isDisbandInventoryClear();
/**
* All settings related to island-names.
* Config path: island-names
*/
IslandNames getIslandNames();
/**
* Whether to teleport players to their island when they join it or not.
* Config-path: teleport-on-join
*/
boolean isTeleportOnJoin();
/**
* Whether to teleport players to the spawn when they are kicked from their island or not.
* Config-path: teleport-on-kick
*/
boolean isTeleportOnKick();
/**
* Whether to clear players' inventories when they join a new island or not.
* Config-path: clear-on-join
*/
boolean isClearOnJoin();
/**
* Whether players can rate their own island or not.
* Config-path: rate-own-island
*/
boolean isRateOwnIsland();
/**
* All the default island-flags that will be enabled for new islands.
* Config-path: default-settings
*/
List<String> getDefaultSettings();
/**
* Whether redstone should be disabled on islands when all of the members of the island are offline or not.
* Config-path: disable-redstone-offline
*/
boolean isDisableRedstoneOffline();
/**
* All settings related to afk-integrations.
* Config path: afk-integrations
*/
AFKIntegrations getAFKIntegrations();
/**
* Cooldowns of commands for players.
* Represented by a map with keys as the command labels, and values as pairs
* containing the cooldown and a bypass permission.
* Config-path: commands-cooldown
*/
Map<String, Pair<Integer, String>> getCommandsCooldown();
/**
* Cooldown between upgrades.
* If -1, then there is no cooldown.
* Config-path: upgrade-cooldown
*/
long getUpgradeCooldown();
/**
* The numbers-formatting of the plugin.
* Config-path: number-format
*/
String getNumbersFormat();
/**
* The date-formatting of the plugin.
* Config-path: date-format
*/
String getDateFormat();
/**
* Whether menus with only one item inside them should be skipped or not.
* Config-path: skip-one-item-menus
*/
boolean isSkipOneItemMenus();
/**
* Whether visitors on islands should get teleported to spawn when pvp is enabled on the island they were on or not.
* Config-path: teleport-on-pvp-enable
*/
boolean isTeleportOnPvPEnable();
/**
* Whether visitors should be immuned to PvP for a few seconds when they visit an island that has pvp enabled or not.
* Config-path: immune-to-pvp-when-teleport
*/
boolean isImmuneToPvPWhenTeleport();
/**
* List of blocked commands that visitors cannot run on islands.
* Config-path: blocked-visitors-commands
*/
List<String> getBlockedVisitorsCommands();
/**
* All settings related to default-containers in schematics.
* Currently, getting contents of containers is not available using the API.
* Config path: island-names
*/
DefaultContainers getDefaultContainers();
/**
* Lines that should be set for signs of schematics.
* If empty, no signs will be changed.
* Config-path: default-signs
*/
List<String> getDefaultSign();
/**
* List of commands to be executed for events.
* Represented by a map with keys as event names and values as a list of commands.
* Config-path: event-commands
*/
Map<String, List<String>> getEventCommands();
/**
* Delay before teleporting to an island warp, in milliseconds.
* If 0, no delay will be.
* Config-path: warps-warmup
*/
long getWarpsWarmup();
/**
* Delay before teleporting to island home, in milliseconds.
* If 0, no delay will be.
* Config-path: home-warmup
*/
long getHomeWarmup();
/**
* Whether liquids should receive a physics update when placed in schematics or not.
* Config-path: liquid-update
*/
boolean isLiquidUpdate();
/**
* Whether lights should be set when placing schematics or not.
* Config-path: lights-update
*/
boolean isLightsUpdate();
/**
* List of worlds that pvp is allowed between island-members.
* Config-path: pvp-worlds
*/
List<String> getPvPWorlds();
/**
* Whether the plugin should force players to stay in islands in the islands worlds or not.
* Config-path: stop-leaving
*/
boolean isStopLeaving();
/**
* Whether players can open the values-menu by right-clicking on islands in the islands top menu or not.
* Config-path: values-menu
*/
boolean isValuesMenu();
/**
* List of crops that can get affected by the crops-growth multiplier.
* Config-path: crops-to-grow
*/
List<String> getCropsToGrow();
/**
* Time between each iteration of the crops task.
* Config-path: crops-interval
*/
int getCropsInterval();
/**
* Whether players can only go back to the previous menu by clicking the back-button or not.
* Config-path: only-back-button
*/
boolean isOnlyBackButton();
/**
* Whether players can build outside their islands or not.
* When enabled, island-sizes to be {@link #getMaxIslandSize()} * 1.5,
* and islands will be connected to each other.
* Config-path: build-outside-island
*/
boolean isBuildOutsideIsland();
/**
* The default language to be set for new players.
* Config-path: default-language
*/
String getDefaultLanguage();
/**
* Whether new players should have world-borders enabled by default or not.
* Config-path: default-world-border
*/
boolean isDefaultWorldBorder();
/**
* Whether new players should be able to stack blocks by default or not.
* Config-path: default-blocks-stacker
*/
boolean isDefaultStackedBlocks();
/**
* Whether new players should have /is open their island panel by default or not.
* Config-path: default-toggled-panel
*/
boolean isDefaultToggledPanel();
/**
* Whether new players should have island fly enabled by default or not.
* Config-path: default-island-fly
*/
boolean isDefaultIslandFly();
/**
* The default border-color for new players.
* Config-path: default-border-color
*/
String getDefaultBorderColor();
/**
* Whether obsidian should turn into a lava-bucket when clicking on it with an empty bucket in hand or not.
* Config-path: obsidian-to-lava
*/
boolean isObsidianToLava();
/**
* The sync-worth status of the plugin.
* Config-path: sync-worth
*/
BlockValuesManager.SyncWorthStatus getSyncWorth();
/**
* Whether island-worth can be negative or not.
* Config-path: negative-worth
*/
boolean isNegativeWorth();
/**
* Whether island-level can be negative or not.
* Config-path: negative-level
*/
boolean isNegativeLevel();
/**
* List of plugin-events that should not be fired.
* Config-path: disabled-events
*/
List<String> getDisabledEvents();
/**
* Whether the schematic-name argument should be when executing /is create or not.
* Config-path: schematic-name-argument
*/
boolean isSchematicNameArgument();
/**
* All settings related to island-chests.
* Config path: island-chests
*/
IslandChests getIslandChests();
/**
* Custom aliases for commands of the plugin.
* Represented by a map with keys as commands, and values as aliases.
* Config-path: command-aliases
*/
Map<String, List<String>> getCommandAliases();
/**
* List of valuable-blocks.
* Config-path: valuable-blocks
*/
Set<Key> getValuableBlocks();
/**
* List of preview-island locations.
* Represented by a map with keys as schematic names, and values as locations for the preview islands.
* Config-path: preview-islands
*/
Map<String, Location> getPreviewIslands();
/**
* Whether vanished players should be hidden from command tab completes or not.
* Config-path: tab-complete-hide-vanished
*/
boolean isTabCompleteHideVanished();
/**
* Whether drops multiplier should only affect entities that are killed by players or not.
* Config-path: drops-upgrade-players-multiply
*/
boolean isDropsUpgradePlayersMultiply();
/**
* The delay between protect messages, in ticks.
* Config-path: protected-message-delay
*/
long getProtectedMessageDelay();
/**
* Whether the warp categories system is enabled or not.
* Config-path: warp-categories
*/
boolean isWarpCategories();
/**
* Whether the plugin should listen for the physics event or not.
* Config-path: physics-listener
*/
boolean isPhysicsListener();
/**
* Amount of money to be charged from players when they use an island warp.
* If set to 0, no money will be charged.
* Config-path: charge-on-warp
*/
double getChargeOnWarp();
/**
* Whether island warps should be public by default or not.
* Config-path: public-warps
*/
boolean isPublicWarps();
/**
* Cooldown between recalculations of an island, in seconds.
* If set to 0, no cooldown is set.
* Config-path: recalc-task-timeout
*/
long getRecalcTaskTimeout();
/**
* Whether to detect the player's language automatically when he first joins the server.
* Config-path: auto-language-detection
*/
boolean isAutoLanguageDetection();
/**
* Automatically uncoop players when there are no island members left online that can remove uncoop players.
* Config-path: auto-uncoop-when-alone
*/
boolean isAutoUncoopWhenAlone();
/**
* Get the way to sort members in the top islands menu.
* Config-path: island-top-members-sorting
*/
TopIslandMembersSorting getTopIslandMembersSorting();
interface Database {
/**
* Get the database-type to use (SQLite or MySQL).
* Config-path: database.type
*/
String getType();
/**
* The address used to connect to the database.
* Used for MySQL only.
* Config-path: database.address
*/
String getAddress();
/**
* The port used to connect to the database.
* Used for MySQL only.
* Config-path: database.port
*/
int getPort();
/**
* Get the name of the database.
* Used for MySQL only.
* Config-path: database.db-name
*/
String getDBName();
/**
* The username used to connect to the database.
* Used for MySQL only.
* Config-path: database.user-name
*/
String getUsername();
/**
* The password used to connect to the database.
* Used for MySQL only.
* Config-path: database.password
*/
String getPassword();
/**
* The prefix used for tables in the database.
* Used for MySQL only.
* Config-path: database.prefix
*/
String getPrefix();
/**
* Whether the database uses SSL or not.
* Used for MySQL only.
* Config-path: database.useSSL
*/
boolean hasSSL();
/**
* Whether public-key-retrieval is allowed in the database or not.
* Used for MySQL only.
* Config-path: database.allowPublicKeyRetrieval
*/
boolean hasPublicKeyRetrieval();
/**
* The wait-timeout of the database, in milliseconds.
* Used for MySQL only.
* Config-path: database.waitTimeout
*/
long getWaitTimeout();
/**
* The max-lifetime of the database, in milliseconds.
* Used for MySQL only.
* Config-path: database.maxLifetime
*/
long getMaxLifetime();
}
interface DefaultValues {
/**
* The default island size for new islands.
* Config-path: default-values.island-size
*/
int getIslandSize();
/**
* The default block limits for new islands.
* Represented by a map with keys as the block types, and values as the limits.
* Config-path: default-values.block-limits
*/
Map<Key, Integer> getBlockLimits();
/**
* The default entity limits for new islands.
* Represented by a map with keys as the entity types, and values as the limits.
* Config-path: default-values.entity-limits
*/
Map<Key, Integer> getEntityLimits();
/**
* The default warps limit for new islands.
* Config-path: default-values.warps-limit
*/
int getWarpsLimit();
/**
* The default team limit for new islands.
* Config-path: default-values.team-limit
*/
int getTeamLimit();
/**
* The default coops limit for new islands.
* Config-path: default-values.coop-limit
*/
int getCoopLimit();
/**
* The default crop-growth multiplier for new islands.
* Config-path: default-values.crop-growth
*/
double getCropGrowth();
/**
* The default spawner-rates multiplier for new islands.
* Config-path: default-values.spawner-rates
*/
double getSpawnerRates();
/**
* The default mob-drops multiplier for new islands.
* Config-path: default-values.mob-drops
*/
double getMobDrops();
/**
* The default bank-limit for new islands.
* Config-path: default-values.bank-limit
*/
BigDecimal getBankLimit();
/**
* The default generator-rates for new islands.
* Represented by an array of maps with keys as the blocks, and values as the rates.
* The maps are sorted by the {@link World.Environment} they belong to.
* Config-path: default-values.generator
*/
Map<Key, Integer>[] getGenerators();
/**
* The default role-limits for new islands.
* Represented by a map with keys as the role ids, and values as the limit.
* Config-path: default-values.role-limits
*/
Map<Integer, Integer> getRoleLimits();
}
interface StackedBlocks {
/**
* Whether stacked blocks are enabled on the server or not.
* Config-path: stacked-blocks.enabled
*/
boolean isEnabled();
/**
* The custom hologram names for stacked blocks.
* Config-path: stacked-blocks.custom-name
*/
String getCustomName();
/**
* List of worlds that blocks cannot be stacked in.
* Config-path: stacked-blocks.disabled-worlds
*/
List<String> getDisabledWorlds();
/**
* List of whitelisted block types that can be stacked together.
* Config-path: stacked-blocks.whitelisted
*/
Set<Key> getWhitelisted();
/**
* Limits for stacked-blocks
* Represented by a map with keys as block types, and values as limits.
* Config-path: stacked-blocks.limits
*/
Map<Key, Integer> getLimits();
/**
* Whether stacked blocks should be auto-collected to players' inventories or not.
* Config-path: stacked-blocks.auto-collect
*/
boolean isAutoCollect();
/**
* All the settings related to the deposit-menu of stacked blocks.
* Config path: default-values.deposit-menu
*/
DepositMenu getDepositMenu();
interface DepositMenu {
/**
* Whether the deposit-menu is enabled or not.
* Config path: default-values.deposit-menu.enabled
*/
boolean isEnabled();
/**
* The title of the deposit menu.
* Config path: default-values.deposit-menu.title
*/
String getTitle();
}
}
interface IslandRoles {
/**
* The configuration section of the island-roles.
* Config path: island-roles
*/
ConfigurationSection getSection();
}
interface VisitorsSign {
/**
* The line that determines if the sign is used as a visitors home location.
* Config-path: visitors-sign.line
*/
String getLine();
/**
* The line that is displayed when the visitors sign is active.
* Config-path: visitors-sign.active
*/
String getActive();
/**
* The line that is displayed when the visitors sign is inactive.
* Config-path: visitors-sign.inactive
*/
String getInactive();
}
interface Worlds {
/**
* The default world environment.
* Config-path: worlds.default-world
*/
World.Environment getDefaultWorld();
/**
* The name of the overworld world.
* Config-path: worlds.world-name
*/
String getWorldName();
/**
* The name of the default world.
*/
String getDefaultWorldName();
/**
* All settings related to the overworld world.
* Config-path: worlds.normal
*/
Normal getNormal();
/**
* All settings related to the nether world.
* Config-path: worlds.nether
*/
Nether getNether();
/**
* All settings related to the end world.
* Config-path: worlds.end
*/
End getEnd();
/**
* The difficulty of the islands worlds.
* Config-path: worlds.difficulty
*/
String getDifficulty();
interface Normal {
/**
* Whether the overworld world is enabled or not.
* Config-path: worlds.normal.enabled
*/
boolean isEnabled();
/**
* Whether the overworld world is unlocked by default or not.
* Config-path: worlds.normal.unlock
*/
boolean isUnlocked();
/**
* Whether the schematic for the overworld world should be offset or not.
* Config-path: worlds.normal.schematic-offset
*/
boolean isSchematicOffset();
/**
* Get the default biome for the world.
*/
String getBiome();
}
interface Nether {
/**
* Whether the nether world is enabled or not.
* Config-path: worlds.nether.enabled
*/
boolean isEnabled();
/**
* Whether the nether world is unlocked by default or not.
* Config-path: worlds.nether.unlock
*/
boolean isUnlocked();
/**
* Custom name for the nether world.
* Config-path: worlds.nether.name
*/
String getName();
/**
* Whether the schematic for the nether world should be offset or not.
* Config-path: worlds.nether.schematic-offset
*/
boolean isSchematicOffset();
/**
* Get the default biome for the world.
*/
String getBiome();
}
interface End {
/**
* Whether the end world is enabled or not.
* Config-path: worlds.end.enabled
*/
boolean isEnabled();
/**
* Whether the end world is unlocked by default or not.
* Config-path: worlds.end.unlock
*/
boolean isUnlocked();
/**
* Custom name for the end world.
* Config-path: worlds.end.name
*/
String getName();
/**
* Whether the schematic for the end world should be offset or not.
* Config-path: worlds.end.schematic-offset
*/
boolean isSchematicOffset();
/**
* Get the default biome for the world.
*/
String getBiome();
/**
* Whether ender-dragon fights should be enabled for islands or not.
* Config-path: worlds.end.dragon-fight.enabled
*/
boolean isDragonFight();
/**
* Get the offset of the portal from the center of the island.
* Config-path: worlds.end.dragon-fight.portal-offset
*/
BlockOffset getPortalOffset();
}
}
interface Spawn {
/**
* The location of the spawn island.
* Config-path: spawn.location
*/
String getLocation();
/**
* Whether the spawn island has a protection or not.
* Config-path: spawn.protection
*/
boolean isProtected();
/**
* List of island-flags that will be enabled for the spawn island.
* Config-path: spawn.settings
*/
List<String> getSettings();
/**
* List of permissions that will be given to players for the spawn island.