šŸ’°Autosell

Coral features an autosell module, allowing you to customise material prices and economy. The autosell module supports any and all economy plugins currently supported by AbyssLib, as well as any and all currencies from the in build economy module.

Configuring Autosell Prices

In order to configure different prices on autosell you must first head over to CoralPrison/modules/autosell/configs/settings.yml. Here under the blocks: section you can add more materials to the already extensive list. The field type: should specify the spigot material ID. The economies: sub-section, specifies the currency to gain when selling the material, as well as the price per block, separated by a semi-colon.

You may also edit how often the autosell will occur, and thus how often the summary will appear. This can be found in the same file next to sell-interval:, which must be specfied in seconds.

Configuration Files

configs/settings.yml
blocks:
    "emerald-block":
        type: "EMERALD_BLOCK"
        economies:
            - "vault;50"
            - "tokens;25"
            - "experience;5"
    "redstone-block":
        type: "REDSTONE_BLOCK"
        economies:
            - "vault;15"
            - "tokens;10"
            - "experience;3"
    "diamond-block":
        type: "DIAMOND_BLOCK"
        economies:
            - "vault;10"
            - "tokens;5"
            - "experience;1"
    "gold-block":
        type: "GOLD_BLOCK"
        economies:
            - "vault;5"
            - "tokens;3"
    "iron-block":
        type: "IRON_BLOCK"
        economies:
            - "vault;3"
            - "tokens;1"

settings:
    sell-interval: 10 #seconds
lang.yml
messages:
    "sold":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&6&m--------------------------------------"
                - " "
                - "&e&lCoral&6&lPrisons &8&lā†’ &eAutosell"
                - "&7&oOverview of the last &f&o1 minute&7&o."
                - " "
                - "&e&lBLOCKS SOLD:"
                - "&e&lā†’ &7Money: &f$%vault%"
                - "&e&lā†’ &7Tokens: &f%tokens%"
                - "&e&lā†’ &7EXP: &f%experience%"
                - " "
                - "&6&m--------------------------------------"

Last updated