EconomyGold
WE HAVE MOVED TO SPIGOT!!!
https://www.spigotmc.org/resources/economygold.77543/
Economy Gold
A payment and economic system!
EconomyGold is a payment and an economic system. It uses a database connection to display the number of gold that players have online. The owner can access the database anywhere, allowing easy configuration and moderation. EconomyGold also comes with a completely customizable GUI that can be edited in the config.yml file. The customization uses four factors: The material of the item, the display name, the cost, and the command that will be run when a player clicks the item. How to edit/use it will be displayed below.
If a player wants to help another friend out, he/she can use the command /epay to send some gold over. To access the shop window, you can use /eshop to display all the items available. The player can buy whatever they want in the shop.
EconomyGold is also compatible with the Master which allows you to add gold to other players. The plugin is also available in the File tab.
I hope that this plugin was useful. If you have any questions be sure to leave a comment below. Thanks!
-Xp10d3
Commands:
/eshop: Opens up the GUI to buy items.
/epay <user> <amount>: Pays another user an amount specified. The player has to be online.
/eadd <user> <amount>: Gives another player a certain amount of gold.
Permissions:
master.economyadd: Allows a player to execute the command /eadd. Default permission is OP (means that any OPed player can do /eadd).
About the Master:
The Master is a separate plugin that does a few things differently. It is called a Master for a reason. The one command it has is /eadd, which allows an Administrator/Owner/OPed player to add/subtract gold from another user. It has the same setup as the regular EconomyGold plugin, requiring a database connection to work. There is a permission (see the Permissions above) that allows a user to use the command.
How to set up EconomyGold:
I suggest using XAMPP to set up the database. These are the instructions on how to set it up.
- Download XAMPP. When setting up, you must have Admin permissions for this to work. Be sure to save XAMPP to your C:/ drive.
- Install the MySQL and Apache service. Click Admin.
- Set up the password if needed.
- Click New on databases and name it economygold.
- For the table name, name it player_data. There should be 3 columns.
- For the first row, call it UUID. The type is VARCHAR and the length/value is 60. It has to be 60 or more. Next is NAME. The type is also VARCHAR and the length can be 20 or more. Finally, there is GOLD. The type is INT and the length 5 or more. I personally wouldn't set 5 or more; 5 sets the limit to 99,999 gold, and I don't expect someone to have more than 99,999 gold.
- Save it then close out the tab.
- OPTIONAL: Port-forward the database using the port you set up to access the database from your server hoster (don't use localhost) or to access it from anywhere.
- Drag EconomyGold into your test server. Run it then stop it.
- Open up the folder for EconomyGold and open the config.yml.
- The config should have a couple of lines like this:
host: 0
port: 0
database: 0
username: 0
password: 0
table: 0
shop:
items:
For this next part, you need to use some kind of text editor. I use Sublime Text. Don't use Notepad. Change host: 0 to host: localhost. If you port-forwarded your database change localhost to your IPv4 address.
12. Change port: 0 to port: 3306, change username: 0 to username: root, password: 0 to password: <your password>, and table: 0 to table: player_data.
13. If
shop:
items:
Looks like:
shop: {}
Then, delete the curly brackets, press enter, and type items:
It should look like:
shop:
items:
21. Press enter after items:. This is an example of one of the units. Fill in all the necessary information.
shop:
items:
BLACK_WOOL:
name: Shepard | Cost 10
cost: 10
command: give @p black_wool
22. Repeat the same thing 18 times if you want to fill the whole shop. If you want nothing, for the material just do AIR or LIGHT_GRAY_GLASS_PANE or whatever the material is.
If you run into any issues, join the Discord link below for some help.
YouTube Link Here:
Discord: https://discord.gg/SHsPsDw
Updated all the plugins. Once they are accepted /epay will be fixed and permission nodes added. If there are any bugs comment and I can try and fix them.
Glitches have been found in v1.0. /epay doesn’t work for some reason. Dupe glitches don’t happen, don’t worry; it just won’t work for certain players for some reason. I’ve fixed that in 2.0 and will likely add a few commands like /freeze and /esubtract.
Master is out! Currently working on some more permissions to make things more customizable for Admins ;)
First release! Check out v1.0 :)
Huge update coming to EconomyGold. It will now be moderated through a database rather than a config file. I'll be posting a video on my YouTube channel on how to use it.
Basic Premise:
You'll be able to create a literal virtual currency using this method. The shop will be completely customizable, as well as what happens when you click the item. When you click an item in the shop it'll run a console command which will also be customizable. In order for this plugin to work, though, you'll have to use a database. Peferribley XAMPP. In the database, you will be able to see every player's UUID, username, and gold amount. You can check your gold using /gold. Using a master plugin which will be separate so you can manage the perms, you can add gold to a user and subtract gold. Players will also be able to do /pay <user> <amount> to send gold to their friends.
What will be removed:
/nugget
Right-clicking a nugget to see the shop.
Editable configs to see a user's gold.
The shop will be revamped.
Withdrawing and depositing.
Player death giving you a gold nugget.
What will be added:
Database support.
/pay <user> <amount>
Customizable GUI through the config.
Host, port, username, password, table name, and database name will be editable in the config to support wherever the database is.
Through the master plugin /add <user> <amount>.
Hopefully permissions for the master plugin.
/eshop to view the shop.
Editable click events for every time a user clicks an item it will subtract a certain amount and run a certain console command.
Editable prices for each item.
What's Required
A database with a username, password, host, port, table name, and database name. All can be acquired through XAMPP.
Admin username and password on your computer depending on what database you're using.
Master plugin if you want to add/subtract values from another user.
Hopefully, this will be a much better update then the current plugin I have. Let me know what you guys think :) The update will hopefully be released by Christmas or January 2020.
-Xp10d3