Skip to content

Commit

Permalink
Update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravis96 committed May 10, 2023
1 parent d0667ea commit 24abccc
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 28 deletions.
13 changes: 6 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ dependencies {

// =-- dreamcode --=
// notice
implementation("cc.dreamcode.notice:core:1.0.4")
implementation("cc.dreamcode.notice:bukkit:1.0.4")
implementation("cc.dreamcode.notice:bukkit-okaeri-serdes:1.0.4")
implementation("cc.dreamcode.notice:minecraft:1.3.3")
implementation("cc.dreamcode.notice:bukkit:1.3.3")
implementation("cc.dreamcode.notice:bukkit-serdes:1.3.3")

// menu
implementation ("cc.dreamcode.menu:core:0.4.2")
implementation ("cc.dreamcode.menu:bukkit:0.4.2")
implementation ("cc.dreamcode.menu:serdes-bukkit:0.4.2")
implementation ("cc.dreamcode.menu:serdes-bukkit-okaeri:0.4.2")
implementation("cc.dreamcode.menu:core:1.0.13")
implementation("cc.dreamcode.menu:bukkit:1.0.13")
implementation("cc.dreamcode.menu:bukkit-serdes:1.0.13")

// =-- Others --=
// bStats
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = "dreamTimeShop"
rootProject.name = "dream-timeshop"

4 changes: 2 additions & 2 deletions src/main/java/cc/dreamcode/timeshop/TimeShopMenu.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cc.dreamcode.timeshop;

import cc.dreamcode.menu.bukkit.BukkitMenuBuilder;
import cc.dreamcode.menu.bukkit.base.BukkitMenu;
import cc.dreamcode.menu.serdes.bukkit.BukkitMenuBuilder;
import cc.dreamcode.timeshop.builder.ItemBuilder;
import cc.dreamcode.timeshop.config.MessagesConfiguration;
import cc.dreamcode.timeshop.config.PluginConfiguration;
Expand Down Expand Up @@ -37,7 +37,7 @@ public TimeShopMenu(MessagesConfiguration messages, PluginConfiguration configur

public void open(Player player) {
BukkitMenuBuilder builder = this.configuration.menu;
BukkitMenu menu = builder.build();
BukkitMenu menu = builder.buildEmpty();

User user = this.userRepository.findOrCreate(player.getUniqueId(), player.getName()).join();

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/cc/dreamcode/timeshop/TimeShopPlugin.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cc.dreamcode.timeshop;

import cc.dreamcode.menu.bukkit.BukkitMenuProvider;
import cc.dreamcode.notice.bukkit.BukkitNoticeProvider;
import cc.dreamcode.timeshop.command.CommandConfiguration;
import cc.dreamcode.timeshop.command.argument.UserArgument;
import cc.dreamcode.timeshop.command.configurer.CommandConfigurer;
Expand Down Expand Up @@ -60,7 +59,6 @@ public void onEnable() {
this.config = this.configService.create(PluginConfiguration.class, new File(this.getDataFolder(), "config.yml"));

BukkitMenuProvider.create(this);
BukkitNoticeProvider.create(this);

PersistenceCollection userCollection = PersistenceCollection.of(UserRepository.class);

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cc/dreamcode/timeshop/config/ConfigService.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cc.dreamcode.timeshop.config;

import cc.dreamcode.menu.serdes.bukkit.okaeri.MenuBuilderSerdes;
import cc.dreamcode.notice.okaeri_serdes.BukkitNoticeSerdes;
import cc.dreamcode.menu.bukkit.okaeri.MenuBuilderSerdes;
import cc.dreamcode.notice.minecraft.bukkit.serdes.BukkitNoticeSerdes;
import eu.okaeri.configs.ConfigManager;
import eu.okaeri.configs.OkaeriConfig;
import eu.okaeri.configs.serdes.OkaeriSerdesPack;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
package cc.dreamcode.timeshop.config;

import cc.dreamcode.notice.NoticeType;
import cc.dreamcode.notice.bukkit.BukkitNotice;
import cc.dreamcode.notice.minecraft.MinecraftNoticeType;
import cc.dreamcode.notice.minecraft.bukkit.BukkitNotice;
import eu.okaeri.configs.OkaeriConfig;
import eu.okaeri.configs.annotation.Comment;

public final class MessagesConfiguration extends OkaeriConfig {

@Comment({ "", "# Ustaw wiadomości:" })
public BukkitNotice notEnoughtCurrency = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&cNie posiadasz wystarczającej ilości monet! &7(Potrzebujesz jeszcze: {MISSING} {PRURAL})"
);

public BukkitNotice productBought = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&aKupiłeś produkt &f{PRODUCT}&a za &f{PRICE} &amonet!"
);

public BukkitNotice noPermission = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&cNie posiadasz uprawnień do tej komendy! &7({PERMISSION})"
);

public BukkitNotice invalidUsage = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&6Poprawne użycie: &c{USAGE}"
);

public BukkitNotice invalidUsageHead = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&6Poprawne użycie:"
);

public BukkitNotice invalidUsageBody = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&8» &c{USAGE}"
);

public BukkitNotice invalidCurrency = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&cPodana ilość monet jest nieprawidłowa! &7(<=0)"
);

public BukkitNotice reload = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&aPomyślnie przeładowano konfigurację!"
);

public BukkitNotice addCurrency = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&aPomyślnie dodano &f{AMOUNT} &amonet, graczowi: &f{USER}!"
);

public BukkitNotice removeCurrency = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&aPomyślnie usunięto &f{AMOUNT} &amonet, graczowi: &f{USER}!"
);

public BukkitNotice setCurrency = new BukkitNotice(
NoticeType.CHAT,
MinecraftNoticeType.CHAT,
"&aPomyślnie ustawiono &f{AMOUNT} &amonet, graczowi: &f{USER}!"
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cc.dreamcode.timeshop.config;

import cc.dreamcode.menu.serdes.bukkit.BukkitMenuBuilder;
import cc.dreamcode.menu.bukkit.BukkitMenuBuilder;
import cc.dreamcode.timeshop.builder.ItemBuilder;
import cc.dreamcode.timeshop.config.item.ProductItem;
import cc.dreamcode.timeshop.config.sub.StorageConfig;
Expand Down Expand Up @@ -37,6 +37,7 @@ public final class PluginConfiguration extends OkaeriConfig implements ProductSe
"&6Sklep za czas!",
3,
true,
false,
new ImmutableMap.Builder<Integer, ItemStack>()
.put(26, new ItemBuilder(Material.GOLD_INGOT)
.setName("&eTwoje monety czasu")
Expand Down

0 comments on commit 24abccc

Please sign in to comment.