Sueta

EXPBank

6.0.0

Versatile XP storage and sharing plugin.

·Plugin

**Feature Update - 1.14**
- Ability to change GUI info text in config.yml
(You need to add the following lines to your config.yml if you're using an older version, or allow the plugin to generate a new file)


- Added Placeholders
(PlaceholderAPI is REQUIRED.)

https://www.spigotmc.org/resources/placeholderapi.6245/

For use with any plugin that uses only PlaceholderAPI (PAPI):
{expbank_totalpoints} - Gives the total amount of stored XP points.
{expbank_levelsfromxp} - Gives the total amount of levels from stored XP.
{expbank_bottlesofxp} - Gives the approximate amount of bottles of XP from stored XP.

For use with Featherboard or other MVdW plugins (REQUIRES having PAPI also):
{placeholderapi_expbank_totalpoints}
{placeholderapi_expbank_levelsfromxp}
{placeholderapi_expbank_bottlesofxp}

This is a Featherboard config example:

This is the result:


**1.14 Update - Use version 5.0.0**
Your current config.yml should work without any issues

Version History is not correct.
- Use the June 16, 2019 version for 1.14
- Use the March 9, 2019 version for 1.13


EXPBank is a versatile XP storage and sharing plugin, with SQLite, MySQL, and Yaml database support.

I wrote this plugin out of the want and need of a more interactive and easier XP plugin for my server network. Though I decided that there may be other owners or admin that could use it on their servers.

With EXPBank you can allow your players to: Deposit XP , Withdraw XP , and Give XP or Bottles o Enchanting

All aspects are controlled by permissions as listed below, along with all the player interaction messages are able to be customized to fit your server needs.

USAGE:
- Place a sign, and enter [exp] on the top line. It will change into a EXPBank sign, that you can interact with.

- Normal click on Deposit, puts all the players current XP, from their bar into their bank account.

- Normal click on Withdraw, pulls the set amount of withdraw levels (based upon EXP points) from bank account. (This setting is in config.yml, default is 5 levels).

- Shift-Click on Withdraw, pulls all the players XP from their account and puts it into their XP bar.

● /xpbank
- Opens the EXPBank GUI

● /xpbank reload
- Reloads config files

● /xpremove
- Removes the EXPBank sign that you are looking at

● /exp
- Database converter command.

v4.0.0-Config.yml

## Config for EXPBank v4.0.0

## DB type sqlite | mysql | yaml
database-type: 'yaml'

# Use the follow settings for MySQL databases only
mysql:
host: '127.0.0.1'
user: 'user_name'
pass: 'password'
name: 'database_name'
port: '3306'

sign-top-line: '[&aEXP-Bank&0]'

expbank-title: '&9EXPBank'

info-item:
id: BOOK
displayname: '&7Stored XP Info:'
deposit-item:
id: GREEN_CONCRETE
displayname: '&aDeposit XP'
withdraw-item:
id: RED_CONCRETE
displayname: '&cWithdraw XP'
give-item:
id: BLUE_CONCRETE
displayname: '&9Give XP'

## Approx amount in levels to withdraw when player normal-clicks.
## When player shift-clicks it withdraws all their xp, this setting does not affect that.

withdraw-amount: 5

## Change the type of XP given here
## give-type: 'points'
## give-type: 'bottles'
## When set to bottles, the EXP cost to give a bottle is 7 points each
## This is because the possible XP return from a bottle o enchanting is
## between 3 to 11 points, and 7 being the middle of that.

give-type: 'points'

1.13 - config.yml
##  Config for EXPBank v3 
sign-top-line: '[&aEXP-Bank&0]' 

expbank-title: '&9EXPBank' 

info-item: 
  id: BOOK 
  displayname: '&7Stored XP Info:' 
deposit-item: 
  id: CONCRETE 
  displayname: '&aDeposit XP' 
withdraw-item: 
  id: CONCRETE 
  displayname: '&cWithdraw XP' 

##  Approx amount in levels to withdraw when player normal-clicks. 
##  When player shift-clicks it withdraws all their xp, this setting does not affect that. 

withdraw-amount: 5 
give-item: 
  id: CONCRETE 
  displayname: '&9Give XP' 
##  Change the type of XP given here 
##  give-type: 'points' 
##  give-type: 'bottles' 
##  When set to bottles, the EXP cost to give a bottle is 7 points each 
##  This is because the possible XP return from a bottle o enchanting is 
##  between 3 to 11 points, and 7 being the middle of that. 

give-type: 'points'
config.yml
##  Config for EXPBank v2 
sign-top-line: '[&aEXP-Bank&0]' 

expbank-title: '&9EXPBank' 

info-item: 
  id: BOOK 
  durability: 0 
  displayname: '&7Stored XP Info:' 
deposit-item: 
  id: CONCRETE 
  durability: 13 
  displayname: '&aDeposit XP' 
  
withdraw-item: 
  id: CONCRETE 
  durability: 14 
  displayname: '&cWithdraw XP' 

##  Approx amount in levels to withdraw when player normal-clicks. 
##  When player shift-clicks it withdraws all their xp, this setting does not affect that. 

withdraw-amount: 5 
  
give-item: 
  id: CONCRETE 
  durability: 11 
  displayname: '&9Give XP' 
  
##  Change the type of XP given here 
##  give-type: 'points' 
##  give-type: 'bottles' 
##  When set to bottles, the EXP cost to give a bottle is 7 points each 
##  This is because the possible XP return from a bottle o enchanting is 
##  between 3 to 11 points, and 7 being the middle of that. 

give-type: 'points'
messages.yml
##  Message file for EXPbankV2 
makesign-noperm: '&cYou do not have permission to make an EXPBank sign.' 
breaksign: '&cTo remove a EXPBank sign, use /xpremove while looking at the sign' 
usesign-noperm: '&cYou do not have permission to use a EXPBank sign.' 
command-use-noperm: '&cYou do not have permission to use the EXPBank command.' 
breaksign-noperm: '&cYou do not have permission to use this command.' 
not-a-xp-sign: '&cThis is not a EXPBank sign' 

depositxp-noperm: '&cYou do not have permission to deposit XP.' 
withdrawxp-noperm: '&cYou do not have permission to withdraw XP.' 
givexp-noperm: '&cYou do not have permission to give XP.' 
reload-cmd-noperm: '&cYou do not have permission to use that command' 
invalid-cmd: '&cInvalid command' 
no-console-cmd: This command cannot be ran from the console 
files-reloaded: '&6EXPBank files have been reloaded' 
sign-removed: '&6EXPBank sign has been removed' 
must-be-survival: '&cYou must be in survival or adventure mode' 

prompt-cancel: '&cType exit to exit, or complete the transaction' 

deposit-prompt-positive: '&cYou must enter a positive amount of XP' 
deposit-prompt-whole: '&cYou must enter a whole number of XP' 
deposit-prompt-notenough: '&cYou do not have enough XP to deposit that amount' 

withdraw-prompt-positive: '&cYou must enter a positive number of XP' 
withdraw-prompt-whole: '&cYou must enter a whole number of XP' 
withdraw-prompt-notenough: '&cYou do not have enough XP to withdraw that amount' 

# 
#   The {toplayer} placeholder is for the player getting the XP 
#   The {fromplayer} placeholder is for the player giving the XP 
#   The {giveamount} placeholder is the amount that {fromplayer} gave {toplayer} 
# 

give-prompt: '&aEnter the players name that you want to give XP to' 
give-prompt-notonline: '&c{toplayer} is not online right now' 
give-prompt-who-points: '&aHow many EXP points do you want to give {toplayer}' 
give-prompt-who-bottles: '&aHow many Bottles o'' Enchanting do you want to give {toplayer}' 
give-prompt-cant: '&cYou cannot give yourself XP' 
give-prompt-positive-points: '&cYou must enter a positive amount of Bottles' 
give-prompt-positive-bottles: '&cYou must enter a positive amount of EXP points' 
give-prompt-whole-points: '&cYou must enter a whole number of EXP points' 
give-prompt-whole-bottles: '&cYou must enter a whole number of Bottles' 
give-prompt-notenough: '&cYou do not have enough stored XP give that amount' 
give-prompt-to-donor-points: '&aYou just gave {toplayer} {giveamount} EXP points' 
give-prompt-to-donor-bottles: '&aYou just gave {toplayer} {giveamount} Bottles o'' Enchanting' 
give-prompt-to-receiver-points: '&a{fromplayer} just gave you {giveamount} EXP points' 
give-prompt-to-receiver-bottles: '&a{fromplayer} just gave you {giveamount} Bottles o'' Enchanting'

Permissions:
• exp.sign.make : Access to make EXPBank signs.
• exp.sign.use : Access to use EXPBank signs.
• exp.sign.remove : Access to remove EXPBank signs.
• exp.command.use : Access to use /xpbank command.
• exp.deposit : Access to deposit xp into an account.
• exp.withdraw : Access to withdraw xp from an account.
• exp.givexp : Access to give xp to another player.
• exp.command.reload : Access to reload config files.
• exp.use : Includes all permissions except for exp.command.use and exp.command.reload
• exp.conversion :
Access to /exp command.

You can find updated files, and conversion instructions HERE

By downloading and / or using this plugin in anyway, you agree to the following terms.

●
Simple, don't decompile and use any code within, unless you give specific credit to the original developer & don't distribute this plugin with the claims that you are the author.

Similar projects

Plugin →