Skip to content

PaperMC Plugin that allows selling items by CMI's worth rate in one configurable menu

License

Notifications You must be signed in to change notification settings

Anime-pdf/FastSellCMI

Repository files navigation

Modrinth | SpigotMC | Discord

FastSellCMI

PaperMC Plugin That allows to sell items by CMI's worth rate in just one menu

Version: Paper, Purpur and other forks of Paper, 1.18.2+

Java: 17+

Supports minimessages and has configurable menu!


Please join the Discord if you have questions!

Commands:

  • /fastsell
    • Aliases: /fsell
    • <no arguments> - open sell menu
    • reload - reload configs

Permissions:

  • fastsell.sell - Allows /fastsell command. Default: all
  • fastsell.reload - Allows /fastsell reload command. Default: op
  • fastsell.* - Allows all commands. Default: op

Config

config.yml

Variable Default Value Placeholders
config-reloaded <green>FastSellCMI config reloaded!
missing-permission <red>Not enough permissions!
sell-message <green>Items sold! You got {total} {total} - Total amount of received money
cancel-message <red>You canceled selling!
sell-sound ENTITY_VILLAGER_TRADE
cancel-sound ENTITY_VILLAGER_NO

sell_menu.yml

Variable Default Value Description
window-title <green>Fast sell you items!
inventory-map
- WWWWWWWWW
- W W
- W W
- W W
- W W
- WSSSPCCCW
Basically an inventory layout 9x6 size.
item-map
  P:
end_crystal 1:
name: '<blue>Sell for: <red>{total}'
S:
green_stained_glass_pane 1:
name: <green>SELL
C:
red_stained_glass_pane 1:
name: <red>CANCEL
W:
purple_stained_glass_pane 1:
name: ' '
Item properties corresponding to inventory-map characters, supports:
name: String
lore: List<String>
cmd(custom model data): Int
unbreakable: Bool
durability: Int
item_flags: List<String>
enchantments: List<String>. See Examples.
functional-map
  P: price-button
S: sell-button
C: cancel-button
W: wall-button
Button 'types', corresponds to inventory-map characters.

Notice

Config ItemStacks

ItemStack serializer supports durability, potions, fireworks, leather colors, skulls.

Examples:

General example:

general-example:
  diamond_sword 1:
    name: Green name
    lore:
    - Lore 1
    - Lore 2
    - Lore 3
    cmd: 6666
    unbreakable: true
    enchantments:
    - channeling 10
    item_flags:
    - hide_enchants
    - hide_dye
    durability: 781

Potion example:

potion-example:
  potion 1:
    potion:
      base: AWKWARD
      effects:
      - type: ABSORPTION
        duration: 100
        amplifier: 1

Firework example:

firework-example:
  firework_rocket 1:
    firework:
      effects:
      - flicker: true
        trail: true
        type: BALL
        colors:
        - hex: '#808080'
        fade:
        - hex: '#00ffff'
        - hex: '#ff0000'
        - hex: '#008000'
      power: 0

Leather color example:

color-example:
  leather_chestplate 1:
    color:
      hex: '#00ffff'

Player skull example:

skull-example:
  player_head 1:
    textures: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTcxNzA1NzY4NDY4ZWViNjM2NmYyYWVhODQ3YjBjNzI2NGUwNWYyNWZlMGZiNGMxZTNlNjYzN2I5NTQ1MjY1YyJ9fX0=

About

PaperMC Plugin that allows selling items by CMI's worth rate in one configurable menu

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages