Skip to content

Commit d4ddd5f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 4bd09e2 + 392b3ea commit d4ddd5f

File tree

4 files changed

+3
-49
lines changed

4 files changed

+3
-49
lines changed

eternalcore-core/src/main/java/com/eternalcode/core/scheduler/SchedulerSetup.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ class SchedulerSetup {
1313
@Bean
1414
MinecraftScheduler scheduler(Plugin plugin) {
1515
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");
1917
return new FoliaSchedulerImpl(plugin);
20-
} catch (ClassNotFoundException notFoundException) {
18+
}
19+
catch (ClassNotFoundException notFoundException) {
2120
return new BukkitSchedulerImpl(plugin);
2221
}
2322
}
24-
2523
}

eternalcore-core/src/main/java/com/eternalcode/core/translation/Translation.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ interface ItemSection {
168168
Notice enchantedMessageBy();
169169
}
170170

171-
interface LanguageSection {
172-
Notice languageChanged();
173-
174-
List<ConfigItem> decorationItems();
175-
}
176-
177171
interface ContainerSection {
178172
Notice genericContainerOpened();
179173
Notice genericContainerOpenedBy();
@@ -235,8 +229,6 @@ interface ContainerSection {
235229
ItemEditMessages itemEdit();
236230
// time and weather
237231
TimeAndWeatherMessages timeAndWeather();
238-
// language section
239-
LanguageSection language();
240232
// container section
241233
ContainerSection container();
242234
// auto message section

eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/ENTranslation.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -530,24 +530,6 @@ public static class ENContainerSection extends OkaeriConfig implements Container
530530
public Notice genericContainerOpenedFor = Notice.chat("<green>► <white>The specified container has been opened for <green>{PLAYER}<white>!");
531531
}
532532

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-
551533
@Comment({" ", "# Set's max players on the server, the messages for the /setslot command"})
552534
public ENSetSlotMessages setSlot = new ENSetSlotMessages();
553535

eternalcore-core/src/main/java/com/eternalcode/core/translation/implementation/PLTranslation.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -554,24 +554,6 @@ public static class PLContainerSection extends OkaeriConfig implements Container
554554
public Notice genericContainerOpenedFor = Notice.chat("<green>► <white>Otwarto kontener dla gracza <green>{PLAYER}<white>!");
555555
}
556556

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-
575557
@Comment({" ", "# Ta sekcja odpowiada za wiadomości dotyczące pojemnosci serwera"})
576558
public PLSetSlotMessages setSlot = new PLSetSlotMessages();
577559

0 commit comments

Comments
 (0)