File tree Expand file tree Collapse file tree 4 files changed +3
-49
lines changed
eternalcore-core/src/main/java/com/eternalcode/core Expand file tree Collapse file tree 4 files changed +3
-49
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ class SchedulerSetup {
13
13
@ Bean
14
14
MinecraftScheduler scheduler (Plugin plugin ) {
15
15
try {
16
- Class .forName ("io.papermc.paper.threadedregions.scheduler.GlobalRegionScheduler" );
17
- Class .forName ("io.papermc.paper.threadedregions.scheduler.RegionScheduler" );
18
- Class .forName ("io.papermc.paper.threadedregions.scheduler.AsyncScheduler" );
16
+ Class .forName ("io.papermc.paper.threadedregions.RegionizedServer" );
19
17
return new FoliaSchedulerImpl (plugin );
20
- } catch (ClassNotFoundException notFoundException ) {
18
+ }
19
+ catch (ClassNotFoundException notFoundException ) {
21
20
return new BukkitSchedulerImpl (plugin );
22
21
}
23
22
}
24
-
25
23
}
Original file line number Diff line number Diff line change @@ -168,12 +168,6 @@ interface ItemSection {
168
168
Notice enchantedMessageBy ();
169
169
}
170
170
171
- interface LanguageSection {
172
- Notice languageChanged ();
173
-
174
- List <ConfigItem > decorationItems ();
175
- }
176
-
177
171
interface ContainerSection {
178
172
Notice genericContainerOpened ();
179
173
Notice genericContainerOpenedBy ();
@@ -235,8 +229,6 @@ interface ContainerSection {
235
229
ItemEditMessages itemEdit ();
236
230
// time and weather
237
231
TimeAndWeatherMessages timeAndWeather ();
238
- // language section
239
- LanguageSection language ();
240
232
// container section
241
233
ContainerSection container ();
242
234
// auto message section
Original file line number Diff line number Diff line change @@ -530,24 +530,6 @@ public static class ENContainerSection extends OkaeriConfig implements Container
530
530
public Notice genericContainerOpenedFor = Notice .chat ("<green>► <white>The specified container has been opened for <green>{PLAYER}<white>!" );
531
531
}
532
532
533
- @ Comment ({" " , "# Information sent, when the language is changed to English" })
534
- public ENLanguageSection language = new ENLanguageSection ();
535
-
536
- @ Getter
537
- public static class ENLanguageSection extends OkaeriConfig implements LanguageSection {
538
- public Notice languageChanged = Notice .chat ("<green>► <white>Language changed to <green>English<white>!" );
539
-
540
- public List <ConfigItem > decorationItems = List .of (
541
- ConfigItem .builder ()
542
- .withMaterial (Material .SUNFLOWER )
543
- .withGlow (true )
544
- .withSlot (40 )
545
- .withName ("&7Our discord" )
546
- .withLore (Collections .singletonList ("&8» &6https://discord.gg/TRbDApaJaJ" ))
547
- .build ()
548
- );
549
- }
550
-
551
533
@ Comment ({" " , "# Set's max players on the server, the messages for the /setslot command" })
552
534
public ENSetSlotMessages setSlot = new ENSetSlotMessages ();
553
535
Original file line number Diff line number Diff line change @@ -554,24 +554,6 @@ public static class PLContainerSection extends OkaeriConfig implements Container
554
554
public Notice genericContainerOpenedFor = Notice .chat ("<green>► <white>Otwarto kontener dla gracza <green>{PLAYER}<white>!" );
555
555
}
556
556
557
- @ Comment ({" " , "# Informacja zwrotna, gdy gracz zmienia język pluginu na polski" })
558
- public PLLanguageSection language = new PLLanguageSection ();
559
-
560
- @ Getter
561
- public static class PLLanguageSection extends OkaeriConfig implements LanguageSection {
562
- public Notice languageChanged = Notice .chat ("<green>► <white>Zmieniono język na <green>Polski<white>!" );
563
-
564
- public List <ConfigItem > decorationItems = List .of (
565
- ConfigItem .builder ()
566
- .withMaterial (Material .SUNFLOWER )
567
- .withGlow (true )
568
- .withSlot (40 )
569
- .withName ("&7Nasz discord" )
570
- .withLore (Collections .singletonList ("&8» &6https://discord.gg/TRbDApaJaJ" ))
571
- .build ()
572
- );
573
- }
574
-
575
557
@ Comment ({" " , "# Ta sekcja odpowiada za wiadomości dotyczące pojemnosci serwera" })
576
558
public PLSetSlotMessages setSlot = new PLSetSlotMessages ();
577
559
You can’t perform that action at this time.
0 commit comments