Karmiconomy
Karmiconomy
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.
About
This plugin allows for an Action-based economy by giving / taking money based on a players actions, with a daily limit per action. It can also act as an action limiter, by having actions being denied once a player hits the daily limit or cannot pay for that action.
Originally made with the idea of making an active cash flow system. Action denial and daily limits were added during initial planning and design.
This plugin is NOT a standalone economy bank plugin. You will need a Vault-supported economy plugin for this to hook into.
Features
- Highly configurable settings for a vast array of player actions / events.
- Deny player actions based on lack of money or the daily limit for the action.
- Per-item configuration for associated events
- Per-command configuration
- MySQL / SQLite database storage
- Vault support
- mcMMO support
- PlayerPoints support
- Heroes support
- Multiworld support
- Custom localization
Example use cases
- Reward players for being active on the server
- Fine players for specific actions
- Daily bonuses for any action
- Create block-type build challenges, limit the number of times they can use any block
- Make incentives for players to care about their money.
- Create a player-driven cash flow for your economy.
- Blacklist any supported action
This plugin is in active development.
Commands & Permissions
Configuration
Supported events:
- Active (Cancellable)
- chat
- block place
- block destroy
- craft item
- enchant item
- create portal
- shoot bow
- tame ocelot / wolf
- painting place
- bed enter
- bucket empty / fill lava / water
- item pickup
- item drop
- game mode change
- sneak
- sprint
- mcMMO:
- Party join
- Party leave
- Party kick
- Party change
- Party teleport
- Heroes:
- Class change
- Experience change
- Join party
- Leave party
- Health regen
- Mana regen
- Skill use
- Passive (Listen only)
- enter portal
- bed leave
- world change
- death
- respawn
- egg throw
- join
- kick
- quit
- mcMMO:
- Skill level up
- Skill experience gain
- Heroes:
- Level change
- Combat enter / leave
- Hero kills
- Skill complete
TODO:
- In-Game commands
- Handle vehicle economy / limits
- Handle enchantment type
- Handle egg type?
- Add any missing events
- Multiple location / area of effect
Trello Dev board
Visit the Trello board to see the current todo list for all projects.
You can comment and vote on any of the topics there.
All changes on the Trello board are in real-time.
Feedback is much appreciated :P If this plugin has helped you, please consider donating.
@BONNe1704
I could add support, but I doubt it would be any use to you...
After looking at the latest beta of RpgEssentials (1.3), there is literally only 4 custom events in all their modules:
Without any other events, this is the extent to which I can hook into RpgEssentials. If there was something you wanted to control or know about that isn't in the list, then you need to tell the developer to add that in. Otherwise, I won't have any idea about what is going on with the plugin when it occurs.
I mean, if those four are all that you need, then sure, I can add it in... but those are the only ones I can support until they add more events.
Could you add RPGESSENTIALS support?
@Mitsugaru: Thanks for the quick reply! Currently we are using ecotp with a BetterAlias for the tp requirement. Not as nice as I'd like and I'm hoping to move to KarmicIconomy when I get a chance.
I have been looking for a gamemode timed switch for a few days now, but with no luck. Anyone that knows of one feel free to PM me or post on here. Otherwise well I'll let you all know :D
Thanks again!
@Mayhem777
Sorry for the late reply, the new version (v0.17) should fix your problem. You can grab it from the GitHub downloads page or from the Jenkins server while it is awaiting approval.
@surfarcher
The new version, v0.17, includes per-command rules. You can grab the latest version from the same links as above, while it is still in the process of being approved by BukkitDev. The new feature should make it easy to apply for your first one. In your commands.yml for the plugin, you'll want to set it to the following:
That should follow the guidelines that you gave me. Also, make sure in the main config.yml to enable player.command, or else it won't pay attention to commands at all. As well as make sure to set the default pay to what you want and set static to false.
The game mode one is currently available in the main config, under player.gamemode.creative. What it doesn't have is the timer that you seek. I could consider adding it in, however, I'm sure that there's a plugin out there that does this already...? If you can't find one, I'll think of adding it in in a later release.
Looks like this does what we need... But trying to work through a couple of specific applications. Any chance of assistance?
1) Allow players to /tp 5x per day at a cost of 100 money per tp
2) Allow players to /gamemode 2x per day at 500 dollars per and switch them back to survival after 10 minutes, with a message when they issue /gamemode
Any assistance would be most gratefully received.
Getting this error:
http://pastebin.com/0zNYQks5
What about group payments based on time?
Thanks, now gb rewarder is getting errors with other plugins, the authors of blacksmith entered my server to fix an error and was a colision with gbrewarder... also the authmed reloaded did and same problem :/ Like i said before i like karmiconomy much more, and don't have problems with othe plugins :)
@Mayhem777
Um, you can customize the message in the localization.yml.... however I understand that its somewhat limited in that you can't do it per-event or per-item. Right now, its an all-encompassing message.
I'll consider adding xp once 1.3 comes out, as they'll have changed the logic of how levels increase in proportion to xp.
1- Any way to set up custom messages? 2- I'm using another plugin plus karmiconomy to give exp to players for actions (plant seeds, mine some blocks) and give money with karmiconomy, it should be a good idea adding this function to karmiconomy too :) I preffer karmiconomy so if it gives xp in a future i'll remove other plugin :D
Thanks!
@harryjamesuk
Yup, pretty much my plan on that. I've just been really busy with other plugins.
What would be useful is if you could have certain usergroups getting certain amounts of money. E.G: I want my V.I.P's to get 3 dollars for joining and want normal users to just get 1 dollar for joining. Hopefully, this could be done with permissions: karmiconomy.onjoin.3 and karmiconomy.onjoin.1
@Cardanis
From what I can tell from looking at the source code for ChestShop, they haven't included events for each transaction made...
If you can get the devs to make appropriate events for shop transactions, then yes I could make Karmiconomy hook into it.
At this point of time, the most I could do is determine when a shop is created and potentially who made it... that's about it. :\
Would it be possible to implement ChestShop purchases and sales? We're trying to promote using player-owned shops on our server, and giving people a percentage of what they spend/receive is one way we thought of being able to do this.
Thanx for fixes, i'll try :)
@Mayhem777
Sorry for the late reply. Not sure why that one isn't working...? Tested death and it should work out, message and taking money both.
@Mayhem777
I see that I did something wrong with the tame events. I'll push a fix on those soon.
EDIT: Submitted v0.161 that fixes the error from taming animals for approval. If its not readily available, you can also grab it from the GitHub download page: https://github.com/Mitsugaru/Karmiconomy/downloads
Also...
tame:
ocelot:
enabled: true
limit: 2
pay: 10
localMessage: true
wolf:
enabled: true
limit: 2
pay: 5
localMessage: true
Don't works too :(
Ok thanks :) anyway why the death don't works? here's my config-->
death:
enabled: enable
limit: 100
pay: -5
localMessage: true
So the limit is 100 and every time u die y should lost 5 right? but no message... no costs... :)
@Mayhem777
Err, suppose I skipped over it or something? I'll add it in once I figure out what events are tied to it.
Although, I feel like when they harvest crops that should fall under block break... That is, if the player breaks the crop, not if something else broke it.
And crop placing should be either block place, right?
Nothing for crops ? :(