BankX
BankX is an economy RP plugin that allows you to manage the economy of the server from NPC. It also allows you to store your inventory in a bank. All this from NPC Citizens.
May 20th 2017 : Hi Everyone, I won't continue this plugin. If someone wants to continue developping this plugin, I release the source code on my github account at this link : https://github.com/como89/BankX
Thanks to everyone who used my plugin!
-==-==-==-==-==-==-
Everyone who ask me to make a link between BankX and other economy plugins, I won't do that, because BankX is an economy plugin. I will add further some script to convert some economy data to BankX data. Thank you for your understanding!
-==-==-==-==-==-==-
@Thanks to KingFaris11 for saving inventories in a file and get them back.
@Thanks to KILL3RTACO for his lib include in my 0.4b version. This lib is to serialize inventories into files.
- Allows you to manage its economy on its server.
- Allows you to store inventory in the bank vault.
- Allows you to create npc and use them to interact in your bank.
- You can manage the economy and inventories in a MySQL database.
- The plugin includes an API that can be used by developers.
Thanks for 3000 downloads! :D
Dependence: It is a RP plugin, you need to use Citizens to create a Banker NPC.
You need :
- Citizens Version 2.0.10 and +.
Videos:
If someone wants to make a video for this plugin, you can! You just have to give me the link by pm and I will post it on the main page. :)
French Tutorial Video :
Questions or suggestions?
Please leave a message on this post if you have any questions or suggestions.
You found a bug?
If you found a bug, please leave a ticket with all information of the problem.
The log of your server , the config file,etc.
Copy paste it to http://pastebin.com/ and add the url to your ticket.Thanks.
Donation:
If you want to support the development of the plugin, click on the donate button at the top of the project page. Thanks! :)
0.5b (Book System)
See here the todo list for 0.5b version : https://docs.google.com/spreadsheets/d/1xc2uYRY7PoS8b3yVbZSAB03gBiP-KhSW78JwudiMzLU/edit?pli=1#gid=959961342
Read this before download dev build :
Quote:Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Dev build of 0.5b version are available here!
Todo:
- Add in config a amount to pay when you add a chest for a inventory. - Idea from deadykass
- Add upgrade button for chest slots. - Idea from madtomic
- Add optional PIN for bank account. - Idea from CommodoreAlpha and me
- Add configurable bank menu - Idea from CommodoreAlpha
- Limit which items can be stored in bank. - Idea from nullschritt
- Add a wallet item where hold the cash and can be drop on death(optional). - Idea from nullschritt
- Adding an interest rate for the money of the bank account. - Idea from aberts10
- Your suggestions :)
@madtomic
Thanks! :)
@como89
Great! mysql is a must for backups and data management. I am glad you are working on it. Yes, you are right. BankX is an economy plugin and I see it will become popular once everyone see what it can offer server owners. Keep up the good work!
@madtomic
My plugin will have is own mysql database. BankX is an economy plugin, not a plugin which just add an interface to interact with bank account and inventory account.
@como89
You are right. I forgot vault don't use database. It is the other plugins that created the database. What about reading the database of another plugin economy or plugin? Can this be achieved with same effect? Just wondering.
@madtomic
The script will convert one time the data when you put the options to true. It will transfert all the data of the economy plugin to BankX data. After that, you will use the BankX data.
Vault didn't have a mysql database. Vault is a plugin which link every economy plugin with some plugins who use economy like Jobs. I'm am currently creating the link with Vault. In the next version of Vault, it will have the support of my BankX economy.
@como89
The upgrade button would be nice. I hope it is increment of 9 slots per chest upgrade. So a max upgrade of 6 times per inventory chest to 54 slots. This would be nice feature to have! I think the current fee based is nice but buy inventory chest and pay to upgrade chest size would be even nicer. ;)
How the script would work? Will it be updating at a interval to convert and update that set of data into BankX data?
If you are currently working on implementing mysql update to BankX. Can you look into the possibility of just reading the mySQL data table for vault for money? I think it's easier to read the data from the database than hooking the whole plugin? My thoughts...
@madtomic
If you want to have a different slot, add the correct permission. (Just add one permission not all ... )
I will add a upgrade button in the bank inventory menu, in 0.5b version.
I have already answer this and i will not include a support for other economy plugins. I work on script to convert some economy data like essential ,iconomy, etc to BankX data.
@como89
Cheers! I had been playing around with BankX. I really like it! I do have a few questions though. Is there a way to make inventory chest(s) purchasable instead of fee based? I see we can have up to 9 inventory chests. It all controlled by bank.objects.slot.# for slots. Currently, all have the same slots. Can each inventory chest be configurable so it have different slots in each chest or another way to upgrade by paying money for each increment of 9 slots for each inventory chest? Maybe start each chest with 9 slots. Just a thought.
BTW, can this be hook to vault or any economy plugins? I just noticed that It don't read vault/economy plugin for money.
@madtomic
Thanks! :) I work hard on the mysql support ;)
This looks promising! Keep up the good work. I can't wait for the mysql support!
@CommodoreAlpha
Ok thanks! :)
@como89
Oh, sorry for not having responded sooner! I forgot to check back on this page in the case that you commented. If you want my personal opinion, you should try PMing me, as that catches my attention better.
But yeah, if they don't have enough money on hand to put an item into their bank account, it should just deny them entirely from putting in the item to begin with until they have enough funds to do so.
@CommodoreAlpha
I have a question for you, if the player don't have enough money, what the plugin should do? My suggestion : -> not allow to put the item if you don't have enought money on you.
@MedievalMinecrafters
Ok :) Normaly the attribute like damage work, but i will verify this.
@como89
Hey well the lore and names are working fine, its just the attributes, for example if i have a sword with 20 damage, when its usually 5, when the server restarts or reloads, they get set to default but keeps the name and lore exactly how it was. only thing effected is Attributes, but thanks ill be watching for an update :)
@CommodoreAlpha Ok, I will verify the Fee system. I think, i will modify the system like you said.
MYSQL will be an options, it will be optional.
Configurable Inventory menu -> I will work on this after the version 0.4b ;)
Optional PIN is already in my to do list. ;)
Thanks for all of your suggestion! :)
@gentleman67880
Re-bonjour, ton erreur me dit que le trait de "banker" est déjà initialisé dans le plugin citizens. Essai peut-être d'autres version 1.7.2 de citizens pour voir si l'erreur se répète. Je vais faire quelque test de mon coté et je te redonne des nouvelles.
@MedievalMinecrafters
@CommodoreAlpha
I'm agree with CommodoreAlpha, i will not do a dependency for MythicMobs. But i will rework on the save inventory method of my plugin to add the lore and names of the custom items. ;)
@MedievalMinecrafters
I don't see the necessity of having a specific dependency for MythicMobs. That plugin either directly edits the vanilla attributes of items, or alters item-behaviour by reading its lore/name. In either case, the support should allow for more "thorough" data-saving on items, NOT for supporting a plugin (else you'd have to go out of your way to support many more plugins which doesn't make sense).
@como89
Thank you for the fast response because this is an awesome plugin and i dont want to see it fail. :D an idea if its for roleplay trying adding a dependency of mythicmobs, because thats what im using and it wont save the attributes. :)
Je viens de réésayer avec le craftbukkit 1.7.2 R03 bêta et toujours la même erreur :
[12:24:26 INFO]: [BankX] Enabling BankX v0.3b [12:24:26 INFO]: [BankX] Use Citizens! [12:24:26 ERROR]: Error occurred while enabling BankX v0.3b (Is it up to date?) java.lang.IllegalArgumentException: trait name already registered at net.citizensnpcs.npc.CitizensTraitFactory.registerTrait(CitizensTraitFactory.java:146) [?:?] at net.como89.bankx.BankX.onEnable(BankX.java:64) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:389) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:439) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:375) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
Instead of a "fee" system where you delete items if the player can't pay up (this could be extremely counterproductive, economics-wise, and annoying from the standpoint of a player), you could perhaps just charge them for depositing items, with the price dependent on the type of item (with a fallback flat price).
For instance, say you have a fallback price of "10", and you decide to charge 20 for depositing golden ingots. Everything you don't specify in the config will cost $10 to deposit, but specifying $20 for golden ingots will charge that amount instead of $10.
On your to-do list, when you say "integration of MYSQL" database, does that mean we would be required to use MYSQL? If so, could you add an option to just use flatfile instead?
I know using an inventory-based menu with emeralds, redstone, chests, and such is fine already, but could you make the type of item used in the inventory-displays configurable? For example, I may not want the "keypad" to be represented by iron ingots, but rather, carrots.
And speaking of a keypad, perhaps you could also implement an optional PIN system players can use.
All in all, this plugin looks incredibly well thought-out and well-designed. :)