Coder Social home page Coder Social logo

economyenchant's Introduction

General

EconomyEnchant Shop For Pocketmine 5.0.0, With Many features

Commands

Commands Default
/eshop True

Feature

  • Support Multiple Economys
  • Support Multiple CustomEnchant
  • Support EnchantTable Direct
  • Support Sound When Enchant Success
  • Auto Check Enchant Available in Hand
  • Blacklist System
  • Customable Message
  • Customable Form (GUI / UI)
  • Form
    • Configurable Form
    • Slide for Level
  • GUI
    • Configurable GUI
    • If the enchant exceeds 26 Will be Divided into Pages
    • Confirmation GUI

How to Registering Enchantment

Do you want to register your enchant Into this EnchantShop, Please follow this Wiki

API

First Import Class MulqiGaming64\EconomyEnchant\Manager\EnchantManager

  • Getting Item Flags
    • EnchantManager::getItemFlags(/** Items you want */);
  • Checking if Enchant Blacklisted
    • EnchantManager::isEnchantBlacklisted(/** Name the enchantment with Lower */);
  • Checking if Enchant blacklisted in Item
    • EnchantManager::isItemBlacklisted(/** The Item /, /* Name Enchantment with Lower */);

Screenshot

  • Form ( UI )
    • Selecting Form Screenshot
    • Confirmation Form Screenshot
  • InvMenu ( GUI )
    • Selecting GUI ( Page ) Screenshot
    • Confirmation GUI Screenshot

Supported Custom Enchant Plugin

Supported Economy Providers

Config

---
# Please don't edit this, only for internal use
config-version: 3

# Your Economy plugin name
# Available: BedrockEconomy, XP, Auto
# If you select auto but there is no Economy Plugin it will automatically use XP
economy: "Auto"

# Can EnchantTable Redirect to EconomyEnchant
enchant-table: true

# Add Anvil Sound to Player if Enchant is Successful
sound: true

# Form Type
# Can use UI or GUI
form-type: "UI"

# Form
form:
 # Buy Menu
 buy-shop:
  # Title for BuyShop
  title: "EnchantShop"
  # Content for BuyShop
  content: "Select Enchantment:"
  # Tag: {price} Price Enchantment, {enchant} Name Of Enchantment
  button:
   # Only can 0-1
   0: "{enchant}"
   1: "{price}"
 # Submit Menu
 submit:
  # Title for SubmitMenu
  title: "EnchantShop"
  # Content
  # Tag: {price} Price of Enchantment
  content: "§aYou will pay {price} Per Level"
  # Max Content
  max-content: "§aYour item has reached the level limit!"
  # Slider Content
  slider: "Level"

# GUI
gui:
 # Buy Menu
 buy-shop:
  # Title for BuyShop
  title: "EnchantShop"
  # Tag: {level} Level Enchantment, {enchant} Name Of Enchantment
  name: "§f{enchant} §b{level}"
  # Tag: {price} Price Enchantment
  # if you want to empty lore just put value []
  lore:
   - "Price for This Enchant {price}"
 # Submit Menu
 submit:
  # Title for SubmitMenu
  title: "EnchantShop"
  # Buy Item
  buy:
   # Buy Item Name
   # Tag: {level} Level Enchantment, {enchant} Name Of Enchantment
   name: "Buy §f{enchant} §b{level}"
   # Buy Item Lore
   # Tag: {price} Price Enchantment
   # if you want to empty lore just put value []
   lore:
    - "Are you sure to buy"
    - "This Enchant With price {price}"
   # Cancel Item
  cancel:
   # Cancel Item Name
   name: "§cCancel"
   # Cancel Item Lore
   # if you want to empty lore just put value []
   lore:
    - "Cancel buying Enchantment"

# Message
message:
 # Cannot Enchant On This Item
 err-item: "§cYou cannot add Enchantment to This Item!"
 # Exit Message
 exit: "§aThank you for visiting!"
 # Successfully Buy Enchant
 # Tag: {enchant} Name Enchantment, {item} Name Item, {price} Price Enchantment
 success: "§aSuccessfully Enchant {enchant} to {item}, with Price {price}"
 # Error Max Enchant
 max: "§cEnchant failed!, Your item is reached Max Level"
 # Error Money not Enough
 # Tag: {need} Needed Money
 enough: "§cYour money is not enough need {need}"

# Mode
# If false Enchantment those that are not set will not be in the shop
# If true Enchantment Auto added and price will be to Default ( Not Setted )
mode: true

# Enchantment
enchantment:
 # Name Enchantment
 sharpness:
  # Price
  price: 1000
 # Default, If the enchantment is not set above
 # it will be redirected here
 default:
  # Price
  price: 10000
  
# Blacklist Enchantment from Shop
# if you want blacklist just add
# example: ["sharpness", "silk_touch"] or ["sharpness"]
blacklist: []

# Blacklist Enchantment from Item
# if you want blacklist just add
# example: 
# blacklist:
#  sharpness: ["diamond_sword"]
blacklist-item: []
...

What's New

  • Remove Support Capital, EconomyAPI and PiggyCE until they update
  • Fix Remaining GUI Page
  • Fix wrong price in the GUI Page
  • Update To New PocketMine-MP 5.0.0

Additional Notes

  • If you find bugs or want to give suggestions, please visit here

economyenchant's People

Contributors

xanderid avatar xd-pro avatar poggit-bot avatar sof3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.