ControlProduction
Control Production v2.0.0 - Easy production control!
Originally requested by Lummox, this plugin aims to remove the unbalanced nature of active players against those who do not play that often.
How it Works
ControlProduction works based of configured values. Values are under a group name, which has a corresponding permission node. Players with this permission node will have the limits set in the configuration for that group, and players without a group permission node will have no limit to what they can do. See below for instructions on how to configure.
Players' limit data is stored in a YAML file in /player. You should be able to edit it without causing any errors.
Configuration
Time Restriction
This value (configured in hours) is the time delay each player limit will be reset back to zero. The default value is 24, which means that players can do an action with a block as many times as configured in a day. After the day is passed, their limits reset.
The timer now records how many hours have passed in data.yml (which you shouldn't edit). This allows for the timer to keep track of how many hours have passed so that it can be resumed after a reload / shutdown. However, if the server reloads before an hour passes, that hour essentially never happened, causing the timer to be inaccurate.
Groups
Groups must be under the groups section of the configuration. To configure a limit for an action with a block, you will need to specify the action, the item ID, and the limit. The default configuration should guide you through how to configure.
The actions you can limit are break, place, craft, smelt, drop and pickup. You should not configure the same item under pickup and break, as items have to be picked up after they've been destroyed. When configuring items for smelting, you limit what it is prior to cooking, as it actually limits what you can and can't put in the furnace, but for crafting you limit the result.
Group Stucture
groups: groupname: action: item/blockid: limit
Commands & Permissions
Permission | Description | Default |
---|---|---|
controlproduction.groups.GROUPNAME | Sets player in GROUPNAME | op^ |
controlproduction.reset | Allows use of /controlproduction reset | op |
controlproduction.nogroup | No limits | false |
controlproduction.infoof | Allows use of /controlproduction infoof | true |
Command | Description | Usage |
Reset | Resets limits for players | controlproduction reset [player] [action] [item] |
Info | Shows your limits | controlproduction info <action> |
InfoOf | Shows limits of other players | controlproduction infoof <player> <action> |
^ Because the permission is unregistered. Assign controlproduction.nogroup to give ops no group.
To-do List
- Permission nodes for actions in /controlproduction info
Have I missed something? PM or submit a ticket for help!
can you tell me why im getting this error:? http://pastebin.com/PZwztqph using bukkit 1.4.6 r3
@JazzaG
Well, wouldn't it be possible to assign a sign (exemple: ' * ' ) that means any ID? I've seen this in permissions systems so I thought if it can be used for this plugin.
-Sicarius531
@Sicarius531
Sorry, that can't be done with this plugin.
Configured groups are set to players by giving the permission node 'controlproduction.groups.GROUPNAME'. With the default config, all the limits set to group1 will be given to players with the permission node 'controlproduction.groups.group1'.
Is there a way to put ''Can break a
total number of blocks, regardless of wich type?''. Also, I do not understand anything about the permissions of this plugin....
-Sicarius531
I will try to have the new version out by the end of the year, if not by the end of the first week of the new year. It will have some back-end changes and features, but it will probably not have the smelt action complete.
Oh i seen the permission nodes for this.So i got it to work. But on a server restart the time is reset. :(
OMG! This plug in would be great fro Tekkit. However, I just tested it, and as OP it limits what i have in the config file as far as groups but as a member of that group it does not limit me.IE:
groups: Citizen: break:
Now as a Citizen it does not stop me. but if im op it stops me.
Can this be fixed? PLEASE....
You can add to the list of actions, the melt / cook a maximum of X blocks / items? For example:
smelt:
15: 100
14: 50
Cook:
365: 80
363: 20
Another thing, where she keeps the "plugin" the information of the blocks that a player has broken (for example)? If I want to reset the counter of a specific player, or all in general, how could I? It would possible a command to reset the counter of a player, or all in general?. And if possible, a command for each thing, for example:
/control reset player testplayer break 1
# Reset the counter of the player "testplayer" for action to "break" the block "1" (stone).
or
/control reset allplayers place 1
# Reset counter for all players, to the action of putting blocks, block 1 (stone)
It is possible some command to view information of the blocks / items that can break, put, crafting, etc ... ? For example:
/control break info
And you leave the info (of the blocks / items, configured) like this:
Stone: You can break still 100 blocks of Stone
CoalOre: You can still break 40 blocks of CoalOre
/control info place:
Stone: You can still put 200 blocks of stone.
Wood: You can still put 30 blocks.
Okay, more stuff, you can create a file of "translation"?, I would like to put the messages that I want, in my language, for example the "You have Reached your limit for this block / item today", also the other messages that can appear.
GREAT JOB!