HomeJavaModsMChestShop
MChestShop
Vorraussetzungen:

Features:

2025-02-05_21.27.27.png 2025-02-05_21.27.42.png 2025-02-05_21.27.54.png 2025-02-05_21.35.24.png 2025-02-05_21.34.13.png

Permissions:
Konfiguration (config.yml):
API-Dokumentation:

Einbinden per Maven:
Code (Text):
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.Daniel13850</groupId>
        <artifactId>MChestShop</artifactId>
        <version>1.1.1</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

Informationen eines ChestShops bekommen:
Code (Java):
MChestShop api = (MChestShop ) Bukkit. getPluginManager ( ). getPlugin ( "MChestShop" ) ;
ChestShopInfo info = api. getChestShopInfo (sign ) ; // Hier das BlockState vom Schild einfügen
if (info == null ) {
    // Schild ist kein Shop
} else {
    UUID owner = info. getOwner ( ) ; // Owner des Shops
    ChestShopType type = info. getType ( ) ; // Typ des Shops (alternativ gibt es die Methoden .isAdminShop(), .isBuyShop(), .isSellShop(), isPlotShop() und .isFreeShop())
    String description = info. getDescription ( ) ; // Beschreibung
    Location chest = info. getChestLocation ( ) ; // Ort des Containers (außer es ist ein Plot-Verkauf oder ein AdminShop)
    ItemStack item = info. getItem ( ) ; // das Item (außer es ist ein Plot-Verkauf)
    Double price = info. getPrice ( ) ; // der Preis (oder null wenn es ein FreeShop ist)
    FreeShopInfo freeinfo = info. getFreeShopInfo ( ) ; // Informationen über einen FreeShop, oder null wenn es kein FreeShop ist, enthält den Mindestrang sowie den Zeitabstand in Sekunden
}
ChestShop erstellen/aktualisieren:
Code (Java):
MChestShop api = (MChestShop ) Bukkit. getPluginManager ( ). getPlugin ( "MChestShop" ) ;
api. update (sign, info ) ; // Hier das BlockState vom Schild und das ChestShopInfo Objekt einfügen
// Es kann ein bestehendes ChestShopInfo-Objekt verändert werden oder ein neues ChestShopInfo Object erstellt werden
// Beispiel: new ChestShopInfo(ChestShopType.BUY, chest.getLocation(), item, 50, "Test-Verkauf", null, owner.getUniqueId());
// Das Schild wird automatisch aktualisiert

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MChestShop is a free Minecraft Java mod. Compatible with Minecraft 1.20, 1.21. Downloaded 109 times (via Spigot). Download it and open it directly in the game.

Explore more