mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-22 21:41:28 +01:00
Player texture worky now
This commit is contained in:
parent
e143cac27a
commit
dc3be9954e
@ -7,7 +7,7 @@ paper = "1.19.3-R0.1-SNAPSHOT"
|
||||
adventure = "4.12.0"
|
||||
|
||||
# RubyCore
|
||||
ruby = "0.0.1.2"
|
||||
ruby = "0.0.1.3"
|
||||
|
||||
[libraries]
|
||||
|
||||
@ -22,7 +22,7 @@ adventure_text = { module = "net.kyori:adventure-text-minimessage", version.ref
|
||||
# RubyCore
|
||||
ruby_api = { module = "net.dehya.ruby:ruby-core", version.ref = "ruby" }
|
||||
ruby_paper = { module = "net.dehya.ruby:ruby-paper", version.ref = "ruby" }
|
||||
ruby_spigot = { module = "net.dehya.ruby:ruby-spigot", version = "0.0.1.3" }
|
||||
ruby_spigot = { module = "net.dehya.ruby:ruby-spigot", version.ref = "ruby" }
|
||||
|
||||
# Configurations
|
||||
|
||||
|
@ -6,18 +6,18 @@ import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
public class AuctionButtons {
|
||||
|
||||
private ItemBuilder sellingItemsButton;
|
||||
private ItemBuilder sellingInfoButton;
|
||||
private ItemBuilder biddingInfoButton;
|
||||
private ItemBuilder currentListingsInfoButton;
|
||||
private ItemBuilder expiredItemsButton;
|
||||
private ItemBuilder expiredInfoButton;
|
||||
private ItemBuilder categoriesButton;
|
||||
private ItemBuilder categoriesInfoButton;
|
||||
private ItemBuilder nextPageButton;
|
||||
private ItemBuilder refreshPageButton;
|
||||
private ItemBuilder backPageButton;
|
||||
private ItemBuilder switchModeButton;
|
||||
private final ItemBuilder sellingItemsButton;
|
||||
private final ItemBuilder sellingInfoButton;
|
||||
private final ItemBuilder biddingInfoButton;
|
||||
private final ItemBuilder currentListingsInfoButton;
|
||||
private final ItemBuilder expiredItemsButton;
|
||||
private final ItemBuilder expiredInfoButton;
|
||||
private final ItemBuilder categoriesButton;
|
||||
private final ItemBuilder categoriesInfoButton;
|
||||
private final ItemBuilder nextPageButton;
|
||||
private final ItemBuilder refreshPageButton;
|
||||
private final ItemBuilder backPageButton;
|
||||
private final ItemBuilder switchModeButton;
|
||||
|
||||
public AuctionButtons(FileConfiguration file) {
|
||||
String path = "auction-house.settings.buttons.";
|
||||
@ -82,5 +82,4 @@ public class AuctionButtons {
|
||||
public ItemBuilder getSwitchModeButton() {
|
||||
return switchModeButton;
|
||||
}
|
||||
|
||||
}
|
@ -14,10 +14,10 @@ import java.util.UUID;
|
||||
|
||||
public class AuctionHouse {
|
||||
|
||||
private String name;
|
||||
private FileConfiguration auctionFile;
|
||||
private InventorySettings inventorySettings;
|
||||
private List<AuctionItem> auctionItems = new ArrayList<>();
|
||||
private final String name;
|
||||
private final FileConfiguration auctionFile;
|
||||
private final InventorySettings inventorySettings;
|
||||
private final List<AuctionItem> auctionItems = new ArrayList<>();
|
||||
|
||||
public AuctionHouse(FileConfiguration file) {
|
||||
this.name = file.getString("auction-house.settings.name");
|
||||
@ -65,5 +65,4 @@ public class AuctionHouse {
|
||||
AuctionAddEvent event = new AuctionAddEvent(auctionItem.getSeller(), this, auctionItem);
|
||||
Bukkit.getServer().getPluginManager().callEvent(event);
|
||||
}
|
||||
|
||||
}
|
@ -4,8 +4,8 @@ import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
public class InventorySettings {
|
||||
|
||||
private String title;
|
||||
private AuctionButtons auctionButtons;
|
||||
private final String title;
|
||||
private final AuctionButtons auctionButtons;
|
||||
|
||||
public InventorySettings(FileConfiguration file) {
|
||||
String path = "auction-house.settings.";
|
||||
@ -20,5 +20,4 @@ public class InventorySettings {
|
||||
public AuctionButtons getAuctionButtons() {
|
||||
return auctionButtons;
|
||||
}
|
||||
|
||||
}
|
@ -65,5 +65,4 @@ public class BiddingAuction implements AuctionItem {
|
||||
public ItemStack getSellingItem() {
|
||||
return sellingItem;
|
||||
}
|
||||
|
||||
}
|
@ -45,5 +45,4 @@ public class SellingAuction implements AuctionItem {
|
||||
public ItemStack getSellingItem() {
|
||||
return sellingItem;
|
||||
}
|
||||
|
||||
}
|
@ -9,17 +9,9 @@ import net.dehya.ruby.common.enums.FileType;
|
||||
import net.dehya.ruby.files.FileExtension;
|
||||
import net.dehya.ruby.files.FileManager;
|
||||
import org.simpleyaml.configuration.file.YamlFile;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@FileBuilder(isLogging = true, isAsync = true, isData = false, fileType = FileType.YAML)
|
||||
/*@Header("""
|
||||
Discord: https://discord.gg/crazycrew
|
||||
Github: https://github.com/Crazy-Crew
|
||||
|
||||
Report Issues: https://github.com/Crazy-Crew/CrazyAuctions/issues
|
||||
Request Features/Support: https://github.com/orgs/Crazy-Crew/discussions
|
||||
""")*/
|
||||
public class Config extends FileExtension {
|
||||
|
||||
@Key("settings.prefix")
|
||||
|
@ -7,15 +7,6 @@ import net.dehya.ruby.files.FileExtension;
|
||||
import java.nio.file.Path;
|
||||
|
||||
@FileBuilder(isLogging = true, isAsync = false, isData = false, fileType = FileType.YAML)
|
||||
/*@Header("""
|
||||
If you notice any translation issues, Do not hesitate to contact our Translators.
|
||||
|
||||
Discord: https://discord.gg/crazycrew
|
||||
Github: https://github.com/Crazy-Crew
|
||||
|
||||
Report Issues: https://github.com/Crazy-Crew/CrazyCrates/issues
|
||||
Request Features/Support: https://github.com/orgs/Crazy-Crew/discussions
|
||||
""")*/
|
||||
public class Locale extends FileExtension {
|
||||
|
||||
public Locale(Path path) {
|
||||
|
@ -2,15 +2,8 @@ package com.badbones69.crazyauctions.utils;
|
||||
|
||||
import com.badbones69.crazyauctions.api.enums.ServerVersion;
|
||||
import net.dehya.ruby.items.ItemBuilder;
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.banner.Pattern;
|
||||
import org.bukkit.block.banner.PatternType;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.inventory.ItemFlag;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemUtils {
|
||||
|
||||
@ -50,7 +43,7 @@ public class ItemUtils {
|
||||
itemBuilder.setLore(Arrays.asList(value.split(",")));
|
||||
break;
|
||||
case "player":
|
||||
//itemBuilder.setp(value);
|
||||
itemBuilder.setTexture(value);
|
||||
break;
|
||||
case "unbreakable-item":
|
||||
//if (value.isEmpty() || value.equalsIgnoreCase("true")) itemBuilder.setUnbreakable(true);
|
||||
@ -89,11 +82,10 @@ public class ItemUtils {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
itemBuilder.setMaterial(Material.RED_TERRACOTTA).setDisplayName("&c&lERROR").setLore(Arrays.asList("&cThere is an error", "&cFor : &c"));
|
||||
ItemBuilder.setMaterial(Material.RED_TERRACOTTA).setDisplayName("&c&lERROR").setLore(Arrays.asList("&cThere is an error", "&cFor : &c"));
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return itemBuilder;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user