Skip to content

YKDZ/HyphaShop

Repository files navigation

HyphaShop

English | 简体中文

Intro

A SpigotMC plugin inspired by DailyShop. Pursuing ultra customizability and efficiency.

Document

You can find document in: https://ykdz.github.io/HyphaDocs/.

Todo

  • Dynamic pricing based on market feedback
  • Total market volume
  • Transaction log
  • SQL Support
  • Random amount and amount-based price
  • List product by condition
  • Discount
  • Manually specifying restock results
  • Transition limit
  • Cart
  • Merchant
  • Buy more
  • More gui type
  • Cart Collection & Order again
  • Gui icon condition
  • Folia Support
  • Document

API

Maven

<dependencies>
    <dependency>
        <groupId>cn.encmys</groupId>
        <artifactId>hyphashop-api</artifactId>
        <version>{VERSION}</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

Gradle (Kotlin)

repositories {
    mavenCentral()
}

dependencies {
    compileOnly("cn.encmys:hyphashop-api:{VERSION}")
}

Example Usage

public class MyPlugin extends JavaPlugin implements Listener {
    @Override
    public void onEnable() {
        // Get a shop instance by shop id
        Shop shop = DailyShop.SHOP_FACTORY.getShop("black_market");
        // Restock a shop
        shop.getShopStocker().stock();

        // Get a product by product id
        Product product = DailyShop.PRODUCT_FACTORY.getProduct("DIAMOND_ORE");
        // Restock a product
        product.getProductStock().stock();
    }
}

Thanks to

that make this plugin possible.

About

An ultra-customizable and high-performance shop plugin featuring a powerful custom scripting system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages