v .8.6
Details
-
FilenameDynamicEconomy.jar
-
Uploaded by
-
UploadedJun 11, 2012
-
Size184.75 KB
-
Downloads813
-
MD5d2db59ec1adce52d40a7974dac866a36
Supported Bukkit Versions
- CB 1.2.5-R4.0
Changelog
I've been hard at work on this version, and this is a feature that I believe no economy plugin has, and that you've been requesting for a while.
So here it is, I deem it, ITEM GROUPS.
Item Groups, is, basically this: You can make groups in groups.yml, and in those groups you can put items. When you first use this version of DE, and groups.yml generates, you'll notice a sample group I made, group "ORES". This group contains all the ores, like diamondore, goldore, coalore, etc.
So, why do you care about groups and why is it so extraordinary? You can limit users to only purchasing or only selling items from particular groups. Your users.yml file will also look different. Users will have two new fields; "PURCHASEGROUPS" and "SALEGROUPS". These two fields indicate which groups this user can sell and buy.
You'll also notice, that users, by default, start off with the group '*'. This magical group lets them access ALL GROUPS. So if a user has this as a purchase or sale group, they'll be able to sell and purchase ALL items.
However, if you take away '*', then the fun begins. You can then assign particular users to only be able to access custom groups you've made. So, you can remove '*' from a user, and then write 'ORES' under 'PURCHASEGROUPS'. This means that now they can only purchase the items in the ORES group. You can give users access to multiple groups simply by adding another line, beginning with a hyphen and a space, followed by the group name "- ORES".
IN ORDER TO ACTIVATE ANY AND ALL OF THESE FEATURES, YOU MUST SET GROUP-CONTROL IN CONFIG.YML TO TRUE
Now, that's not all I added in this update. To complement this massive new addition to DE, I've added a load of commands so that you can make use of it from in-game. Here's the command and what they do:
- /canibuy [Item]
- This command lets a user see if they can buy a certain item. This is useful because your users may not be very clear on what they can and can't buy if you use groups. Also, if an item is banned, this will tell them they cannot buy it.
- /canisell [Item]
- Same as canibuy, except it'll tell a user if they can sell a particular item. Likewise, it'll say they cannot sell it if the item is in the list of banned sales items.
- /creategroup [ItemGroupName]
- This command is pretty self-explanatory. Given a name, it'll create a new item group in groups.yml with that name.
- /removegroup [ItemGroupName]
- This command deletes an existing item group from groups.yml.
- /addtogroup [ItemGroupName] [Item]
- This command will add a particular item to a particular item group. So calling /addtogroup ores diamondore would add diamondore to the group ores (assuming it isn't already there)
- /removefromgroup [ItemGroupName] [Item]
- This command will remove an item from an item group, if it's already there.
- /addgrouptouser [User] [ItemGroupName] [Purchase|Sale]
- This command will give a user access to a particular group. For example, if you wanted to let user BOB be able to SELL stuff from group ORES, you would call /addgrouptouser BOB ores sale. NOTE: While the group name and type (purchase/sale) are not case sensitive, USERNAME IS. You must write the users name in correct case (BOB is not the same as BoB).
- /removegroupfromuser [User] [ItemGroupName] [Purchase|Sale]
- This command will remove the ability of a user to purchase/sell items in a particular group. So, calling /removegroupfromuser BOB ores purchase would mean bob could no longer buy stuff from group "ores".
- /viewgroup [ItemGroupName] (Page)
- This command lets you view the items that are in a particular item group. It will show you only 5 items per page, so there's an optional page argument for groups that have over 5 items. If you call /viewgroup ores, it'll show you the first 5 items in the ores group. If the ores group has more than 5 items and you want to see the next 5, you'd call "/viewgroup ores 2" to view the second page (the next 5 items) and if it has even more then you can go on to view page 3, 4, 5, and so on.
Very Important Note: If you are going to manually edit groups.yml, your group names must be in ALL CAPS, and your item names must be in ALL CAPS and be the TRUE name of the item, as indicated by ITEMS.YML
* Pistons and Stickypistons, when sold, do not get removed from inventory. I recommend putting them on the banned list until this is fixed!