Minecraft Leaks

Bank [Updated for 1.11]

Submitted by dodo, , Thread ID: 51198

Thread Closed
15-10-2017, 01:20 PM
This post was last modified: 15-10-2017, 01:21 PM by dodo
#1
[Image: 7p4yMdN.png]
Note: When updating, please stop your server before uploading the updated plugin, then start it again, otherwise banks wont save

[Image: JBWr86r.png]

NEW: Slot permissions use bank.slots.<i>
NEW: Players can set tab items:
[Image: cf4ebb8c20.png]

Youtube Video by DiamondRushXD:


Youtube Video by LBEGaming:


Heaps of Features, even more coming! Please comment/review to request a Feature.

[Image: eEt9i4N.png]

Portugueseby @MarcoG
Chineseby @Apple_Sa
Frenchby @Ziel
French(old) by @Lunatik934
Germanby @X00LA
German(old) by @X00LA

When using special chars like surround the whole line with '' eg:

EXAMPLE: 'Exmple'

And save the file as UTF-8 (in notepad++ encoding menu/encode in UTF-8)

[Image: tgNEIGX.png]
This plugin saves either to File or MySQL. All item information like custom names, lore, enchantments, attributes and unbreakable tag's are all saved as well so no need to worry about that.

File:
For File it will create 2 files per players under /plugins/Bank/players/banks/<uuid>.bank and /plugins/Bank/players/config/<uuid>.yml the .bank file stores all the players items and the yml stores the players bank size. I use a bank file because I save the Items just likehow minecraft saves themwhich is very compressed and results in avery small fileeven if you have hundreds of items. It will also create a usernames.db which will store past usernames/uuids so that you can open players Banks when they are offline.

MySQL:
For MySQL it will create 2 tables in your MySQL database bankplayers and usernames, bankplayers will store their info and usernames will store past usernames/uuids so that you can open players Banks when they are offline.

The MySQL lock system works like this. A player joins a server via bungee-cord, it creates the info in the database for them and locks them in it. When the player connects to a different server via the bungee-cord, they connect to the other server before the last can save. So on the new server it will see the player in locked and wont load anything. Once the server they left finishes saving it will then unlock the player. When the player tries to open the bank it will see that it is unlocked and will then load the player and lock them. If for some reason they are locked and shouldn't be, if it has been more than 10 seconds it will automatically unlock and load the player.

Converting:

To convert savetype's go into the config.yml set Convert to true, make sure the mysql.yml is correct and reload/restart the server.

When converting it will kick everyone and start converting, it will display in console how far through converting it is.

[Image: YyMMJgp.png]
GUI:

Money/Exp interest:
Players can earn interest on their Money/Exp deposits, interest rates can be set in config.

Note:
I am unable implement MySQL Interest is because each server would be able to give online interest to its players, but then would give offline interest to all others which wouldn't work cause then it would give offline interest to players on other servers.

Slots:

There are 4 ways players get slots.

When player first join the server they get the default amount set in config.

If enabled players are able to buy slots from the gui.

Slots can be given by commands.

Slots can also be given by permissions bank.slots.<i>

[Image: u7c873P.png]
This plugin requires my core pluginDabCore

Normal Setup:
1. Download the plugin and drop it into your plugins folder.
2. Restart your server and your good to go

MYSQL Setup:
1. Download the plugin and drop it into your plugins folder.
2. Restart your server
3. Edit the config.yml SaveType to "MYSQL"
4. Edit the mysql.yml to your MySQL information
5. Restart your server again

(Note: Depending on how big the bank sizes are and how many items are in them, with mysql it may take a while to save the bank, please consider this when setting the default slots and max slots in the config.yml)

Entities:
Install citizens (then run the command '/bank add citizen <name> [type]').

Chests:
Run the command '/bank add chest' and click on a chest to make it into a bank chest.

Signs:
Put down a sign and put [bank] on the first line and it will become a sign that you can click and open your bank.

Converters:
This plugin can convert information from other plugins to this one:


Post a request on the discussion page for other converters.


[Image: HljJTh9.png]

[Image: vpuALGJ.png]

[Image: ZzINyWS.png]
Please request features in the discussion area and I will do my best to add them

* Loans
* Towny/Faction Bank
* Test server
* Exp/Money Conversion
* Add items to bank via command

Not doing unless someone has ideas on how to make them work:
* StackableItems support

[Image: u2ruwEs.png]
[b]By downloading/buying this plugin you agree to the following:
1. You will not redistribute/resell/forward/send this plugin to anyone for any reason
[/b]
2. You will not get a refund under any circumstances
3.[b]You may not decompile or attempt to look at the source code
4. This plugin may only be used on one server/network, unless you have a statement from me stating that you may use it on more
5. Any plugin made which uses this plugin must be made private or accessible free of charge or you must provide a statement from me stating you may charge for said plugin
[/b]


[b]Download[/b]

Content locked
This content has been locked. Please login or register in order to unlock it.

Users browsing this thread: 1 Guest(s)