SideKickEconomy
SideKickEconomy - A new innovation.
About
SideKick originally had a built in economy system, with this plugin, we separated it so more users can use the economy system without having to download SideKick itself. Now what's the catch? Just another economy plugin? No! SideKickEconomy is a easy to use plugin, with a config to show you who registers the transactions; same features iConomy has!
For Developers
You can access our API through these java classes: Economy, Menu, and Permissions. This is a easy way to hook your custom plugins through SideKickEconomy to create your own Add-On.
Features:
•Full economy system.
•Super Permissions.
•Easy to use.
•Administration commands for managing the economy.
•Developer API
•Config showing all transations and user's balance.
Commands
Command | Description |
•/Economy | - Shows SideKickEconomy's command menu. |
•/S Pay [Username] [Amount] | - Pays a user |
•/S Give [Username] [Amount] | - Gives a user money |
•/S Set [Username] [Amount] | - Sets users money |
•/S Take [Username] [Amount] | - Takes money from user. |
Permission Nodes
•SideKickEconomy.balance
-Permission to use /S Money
•SideKickEconomy.pay
-Permission to use /S Pay [Username] [Amount]
•SideKickEconomy.give
-Permission to use /S Give [Username] [Amount]
-Usually for Administration or managing the economy.
-Recommended for Admins
•SideKickEconomy.set
-Permission to use /S Set [Username] [Amount]
-Usually for Administration or managing the economy
-Recommended for Admins
•SideKickEconomy.take
-Permission to use /S Take [Username] [Amount]
-Usually for Moderation
-Recommended for Moderators
Our GitHub
Developers may also help out on many of our projects by creating pull requests at www.Github.com/ProjectTeam
Code
Economy
String playername = //Get The Players name Economy.addMoney(playername, amount); //Adds money to current balance Economy.subtractMoney(playername, amount); //Subtracts money from current balance Economy.getMoney(playername); //Returns the players money Economy.setMoney(playername, amount); //Sets balance of a user Economy.hasMoney(playername); //Checks if a player has money Economy.hasAccount(playername); //Checks if a player has a Account Economy.createDefaultAccount(playername); //Sets a user a account with $30 Economy.removeMoney(playername); //Removes all money from a user
Permission
Permisssion.hasNode(node); //Sets if a player has permission node "SideKickEconomy.(Node), if player does not, returns a message saying so.
Menu
Player player = (Player)sender; //or for a event Player player = event.getPlayer(); Menu.EcoMenu1(player); //Sends EcoMenu1 to player
Not a single bit of Config info about settings on this page what is this? 1991?
/S seems stupid and clunky the lack of information revolving around how it saves the information and command usage is woeful at best.
@deniseee22
You can change the players amount in the config. Soon I will create a program that will do that for you.
Can i convert essentials economy to sidekick economy? Im having a lot of lag with essentials economy and i want to change.
@breezeyboy
Soon, what messages though?
Can u add mysql support?
Also can u make the messages configable?
@emericask8ur
I haven't made any economy plugins, just an interface. I'm just highlighting some things I see as red flags while it is in the development stages, and some things that irk me about what people write on their pages.
Don't call it innovative until it actually is (my opinion of course, but it seems like false statements). if you have something planned, say it's planned. if you intend for it to grow and have something awesome that's good, but you still have some critical things that are going to prevent it from working properly. The problems I listed are something that must (or just the first) be overcome for it to be even usable on a small server.
@Sleaker
Sleaker I admire your opinion. Yes, this is a basic economy system, yes you have created one of the best around. Yet, this of course is not for those "Huge" popular servers. Sure it can be used for it but there are others that do better. Also, this is very much in the beginning stage of development. Who knows if it will grow and become very useful. The only classes that others can use with proper purpose is Menu, Economy, and Permissions. This is going no where near Vault's standards. Plus more will be added soon.
If you want to improve it, your free to just create Pull Requests at any time.
I'm going to be brutally honest. saying it's unique/innovative doesn't mean it is. The class nomenclature is not very good, and conflicts/makes things more difficult for hooking as there's no distinctions. You're using 'Main' and 'Economy' rather than specific designations for your classes.
You don't actually have a 'full featured.' plugin. This is very basic (that doesn't mean it is bad).
Missing that iConomy has. Banks, Currency names, item conversions.
Things that could cause potential problems: You store all player data in a hashmap, nothing is actually persisted when it is changed, unless something specifically calls to save. Second, everything is in memory. That means if there are 1500 players that have joined the server at one time, they will all be loaded regardless of if they are on the server or not.
The first issue WILL cause data loss, the second issue WILL cause massive slowdowns.
tl;dr - Economy plugins don't need to be innovative to be good. They need to work. The current implementation you have here has some critical problems that prevent it from working under regular server operating conditions.
@Jdon278
Thanks !
Would be nice for vault to hook this. Apart from that it looks nice :D