Sueta

Withdraw Variables

1.0

Allow your players to withdraw xp, money and your custom skript variables.

·Plugin

Introduction:
This skript allows your players to withdraw their experience, money and a custom variable. Each argument can be toggled on or off in the config section.

Every withdraw item has its own unique ID which will prevent players from duping their money, experience, etc. If an invalid withdraw is deposited, the value is cleared and all items with the same ID is cleared from their inventory.

This skript also has an easy to configure options section where you can customize a lot of features. If you need any help, feel free to ask.

How to install:

  1. install Skript
  2. restart your server
  3. drag and drop the WithdrawStat.sk file into the script directory in the skript folder
  4. reload the skript with /sk reload withdrawStat

Permissions:

  • withdraw.use

Commands:

  • /withdraw <xp/bal/?> - Withdraw experience, money or a custom variable and turn its value into an item. Each item displays check owner and value.
Config Section
# GENERAL
    cmd: withdraw                                     # The command prefix.
    perm: withdraw.use                                # Permission required to access the command.
    pmsg: &cYou do not have access to this command.   # If the player does not have the permissions.
    help: &c/withdraw <xp/bal> <amount>               # If the command is used incorrectly.
  
    # XP WITHDRAW
    xpenabled: true                                   # If the experience withdraw is enabled. (false is disabled)
    xparg: xp                                         # The argument for xp withdraw '/withdraw xp'.
    xpwithdraw: &aYou have withdrawn xp               # When you withdraw experience.
    xpitem: emerald                                   # The item for the xp withdraw.
    xpname: &2Experience Bottle &7(Right-Click)       # The name of the item.
    xplore1: &aOwner: &7                              # Line 1 of the item lore.
    xplore2: &aAmount: &7                             # Line 2 of the item lore.
    xpneed: &cYou do not have enough xp               # If the player does not have enough experience.
    xpinvalid: &cThis item is invalid                 # If the item ID has already been deposited.
    xpdeposit: &aYou have deposited xp                # When you deposit experience.
  
    # BAL WITHDRAW
    balenabled: true                                  # If the money withdraw is enabled. (false is disabled)
    balarg: bal                                       # The argument for bal withdraw '/withdraw bal'.
    balwithdraw: &aYou have withdrawn $               # When you withdraw money.
    balitem: paper                                    # The item for the xp money.
    balname: &3Cash Check &7(Right-Click)             # The name of the item.
    ballore1: &bOwner: &7                             # Line 1 of the item lore.
    ballore2: &bAmount: &7$                           # Line 2 of the item lore.
    balneed: &cYou do not have enough $$$             # If the player does not have enough money.
    balinvalid: &cThis item is invalid                # If the item ID has already been deposited.
    baldeposit: &aYou have deposited $                # When you deposit money.
  
    # CUSTOM WITHDRAW
    cenabled: false                                   # If the custom variable withdraw is enabled. (false is disabled)
    variable: {level.%player's uuid%}                 # The custom variable format.
    carg: lvl                                         # The argument for custom withdraw '/withdraw lvl'.
    cwithdraw: &aYou have withdrawn L                 # When you withdraw the custom variable.
    citem: diamond                                    # The item for the xp withdraw.
    cname: &5Level Pouch &7(Right-Click)              # The name of the item.
    clore1: &dOwner: &7                               # Line 1 of the item lore.
    clore2: &dAmount: &7L                             # Line 2 of the item lore.
    cneed: &cYou do not have enough level             # If the player does not have enough of the custom variable.
    cinvalid: &cThis item is invalid                  # If the item ID has already been deposited.
    cdeposit: &aYou have deposited L                  # When you deposit custom variable.

Similar projects

Plugin →