Inactive [ECON] WurkIt v1.2.0 - Let your players earn iConomy\BOSEconomy money for playing Minecraft!! [1000]

Discussion in 'Inactive/Unsupported Plugins' started by oz_revulsion, Jun 11, 2011.

  1. Offline

    oz_revulsion

    [ECON] WurkIt v1.2.0 - Let your players earn iConomy\BOSEconomy money for playing Minecraft!! [1000]

    Version: 1.2.0

    This plugin allows you to set a price to pay your players for every type of block that they could find in minecraft. Unlike other jobs plugins WurkIt gives you the ability to set everyone the same job meaning that everyone is on the same even ground to earn currency making for a more stable (all beit semi communist) economy.

    If you'd like to buy me a beer for staying up building you a plugin you can donate here:

    [​IMG]

    Because of Bukkit's BS adfly links ban that is the only way to support me, sorry.

    You can download WurkIt here:
    Download the Jar there
    Or the Zipped Jar here

    Requirements:
    - iconomy v5.0; or
    - BOSEconomy v0.6.2 or above only

    Optional:
    - Permissions v3.1.6 only any older versions will not work

    Compatible With:
    - ItemCraft v1.4.1

    Tutorial Videos:

    Watching these videos is highly recommended for all admins who have WurkIt whether this is the first time you are installing or you've been on board since 0.2. These videos outline all of the old and new features and how to use them. The first two videos have admin and player stuff and is all the stuff that WurkIt can do in game. The last two videos are admin only videos and go through how to configure WurkIt and all the funky new features for admins. The total running time is 40 minutes but that is a damn sight quicker than it would take you to learn it all by reading, plus you get to listen to my velvet vocals if you watch the videos :D

    Show Spoiler

    Part 1 of the Player and Admin Tutorial


    Part 2 of the Player and Admin Tutorial




    Part 1 of the Admin configuration Tutorial and overview of new admin commands




    Part 2 of the Admin configuration Tutorial and overview of new admin commands




    New Features in this version:
    Show Spoiler

    - Wurk places have been put in! With Wurk places you can set an area in your server where if players break or place blocks in that area you will automatically pay them extra for working in that area. In this way you can pay players for helping you will projects in your server.
    - Heaps of bug fixes include, spelling mistakes in WurkIt items. Beds and Iron doors not working is fixed. Fixed the anti farming being broken. Every bug that was reported in the thread before the 1.2 annoucement has been fixed.
    - Updated to work with RB #1000.
    - WurkIt can only use Permissions 3.1.6 and BOSEconomy 0.6.2 or above now.
    - Added in commands to fill in your config with all blocks available in WurkIt and another to remove all 0 valued blocks. So when you want to add heaps of blocks at once you can all available blocks to your config, change the values of the ones you want to add and then run the strip out command to get rid of the left over blocks you don't want.
    - WurkItItems and your config will now always be ordered by minecraft ID even if you take them out of order in your config if you run a priceset then they will be reordered again.


    Features:

    Show Spoiler

    - Set a break and a place price for the blocks you want to and a default price for every other block your players may break. All blocks in 1.7.2 supported!
    - In game commands to edit your price list in the config and also check the prices you currently have set for placing and breaking blocks you are near in game.
    - Players can choose whether they are notified about their payday or not.
    - Choose if you want to display to the player that they have been paid for their recent activity on the server. Also you can set the exact message that they see when they get paid.
    - Choose the frequency of when your players get paid. Anything from once a second to once a whenever the hell you want (in seconds!)
    - Players can't just place a block and then break it again for money or vice versa. There is a break, placed buffer which keeps a rolling window of the blocks placed and broken so once a block is placed or broken on a square that square will not give any money until the buffer has been reset or when the window moves off the square. This is all configurable
    - Debug mode can be turned on to make sure that your players are always getting paid correctly.
    - Latest versions of BOSEconomy and iConomy support.
    - Permissions v3.1.6 only support. Older Versions will not work.
    - This plugin is compatible with ItemCraft v 1.4.1 Please note that is compatible but not supported! What this means is that it will run without problems but you will not be able to set prices for custom blocks they will all just get the default price. One thing to note however was that the way I made this compatible was to make it so if your server is an ItemCraft server then WurkIt's support for long grass, trap doors and dead bushes had to be taken away because currently they are not supported within ItemCraft. So if you have an ItemCraft server then these blocks will only use the default price along with all the other ItemCraft blocks. I have changed the plugin to regenerate its WurkItItems.txt every time it starts up now so if you are unsure of what blocks are supported based on your server just check that. Also if you have a non ItemCraft server you can still use long grass, trap doors and dead bushes if you do want to make your players gardeners! LOL!
    - Put in functionality to pay for placing blocks. This has all been built into the anti farming functionality so you can farm with placing blocks.
    - Edited all the commands to involve this placing functionality.
    - WurkIt will now automatically edit your config so that you have all the necessary settings for it not to break when upgraded. All you need to do is stop your server, delete the old Wurkit.jar put in the new one and restart Wurkit will automatically upgrade your config file without blowing away your current settings!



    Installation:
    Simply place the jar in your plugins folder and reload your config. This will create the WurkItConfig.yml, WurkItVersion.txt and the WurkItItems.txt files in the WurkIt folder. If you have previously installed versions of WurkIt then all you need to do is replace your .jar file with the new one and Wurkit will do all the work of rebuilding your config to the latest version.

    Configuration:
    WurkIt.config
    Show Spoiler

    Code:
    # The pricelist is what you pay the player for breaking or placing certain blocks
    # default is what the player is paid if you don't specify how much a certain block is
    # For example if you only have Stone and default setup in your price list then your players
    # will get your set break price everytime they break stone and if they break any other block they will get your default price
    # default is mandatory and must be in the config, if you do not want to use it then set it to zero but
    # if you remove it you will crash the plugin.
    # The format is:
    # <item_name>:
    #      break: 0.0
    #      place: 0.0
    # the item names can be found in the items WurkItItems.txt in the plugin folder but generally
    # it is just the grammatically correct item name so stone is "Stone"
    # all spaces are replaced with _'s and word after also starts with a capital so cobbelstone stairs is Cobblestone_Stairs
    # if you are unsure check the WurkItItems.txt but to use an item it must be written in the config exactly as it is
    # in the WurkItItems.txt and it is case-sensitive so if in your config you do this
    # sToNe:
    #    break: 3.0
    #    place: 1.0
    # it's not going to work and your stone will just get the default value. It must be "Stone"
    
    PriceList:
       default:
          break: 3.0
          place: 1.0
    
    # Set your message in the message field. Use the text $$ where you want to put your amount
    # your currency units are automatically picked up. Coloured messages are currently not supported
    # set enabled to false if you do not want to get the payday messages sent to your players.
    
    PaydayMessage:
       message: "It's payday! You earned $$"
       enabled: true
    
    # The PaydayInterval is how often your players get paid and it is in second. Only put integers (whole numbers) in here
    # the buffer size dictates how many blocks are recorded as being placed or broken and thus have no value if broken or palced at any one time
    # now this buffer lives in memory on your server so if you don't want to pwn your server I suggest you keep this modest
    # at a guess I'd say 1000 is reasonable for most servers without causing too much trouble but if you find you are getting
    # performance issues after installing this plugin then I'd say reduce the buffer size
    # by default the buffer runs a moving window so when it hits the max size the first entry is deleted to make room for the last one
    # the buffer is cleared by default whenever there is a payday but if you want to keep your rolling window constant then change
    # your clearBufferOnPayday value to false. Its true by default to give your poor server memory a break from time to time
    # rather than being at max capacity all the time but if you think your server can hack it then you can set it there
    # debugType takes three different values and is just used to make sure that your payday is firing correctly
    # you can use none, simple or verbose. Simple will tell only when the payday task fires and verbose
    # will show you when it fires and also how much each player is paid
    
    PaydayInterval:
       interval: 60
       clearBufferOnPayday: true
       debugType: none
       bufferSize: 1000
    # This section sets out the wurkplace variables. The first variable wurkPlaceTool is the id of the tool that is to be
    # used to mark out the wurkplaces when creating a wurkplace. The next for default variables set out what a wurkplace
    # information will be set to when a new wurk place is first created on your server. It is important
    # that the break and place type variables are set to either flat or percent in lower case and not mispelled.
    # WurkPlaceGreeting and Farewell are what is displayed to the player when they walk into or out of a wurkplace
    # wurkPlaceSaveInterval is how often (in seconds) wurk it should save the changes made to the wurkplaces that are in
    # memory at the moment down to your server for safe keeping.
    # entryExitRefreshRate is how often in server ticks wurk it should be checking if a player has entered or exited if you
    # are experiencing any lag after installing wurkit you might try increasing this so you check players postions less often
    # Finally debugType takes two options either none or simple. If this is set to simple then a message will be logged in your
    # server log every time a save event is fired.
    WurkPlaceSettings:
       wurkPlaceTool: 268
       defaultBreakType: percent
       defaultBreakAmount: 10
       defaultPlaceType: percent
       defaultPlaceAmount: 10
       wurkPlaceGreeting: "You just entered a Wurk Place."
       wurkPlaceFarewell: "You just left a Wurk Place."
       wurkPlaceSaveInterval: 360
       entryExitRefreshRate: 10
       debugType: none
    
    There is a lot of documentation within auto generated config file but let me re-iterate here.

    The first section is:

    PriceList:

    This holds all the prices for the blocks that will be broken or placed by your players. You have to put them in the format of:

    <item_name>:
    break: 0.0
    place: 0.0

    This is where the <item_name> comes from the WurkItItems.txt and the price is a number with either one or two decimal places. The <item_name> must be the same as what is written in the WurkItItem.txt but is pretty intuitive basically you just start every new word with a capital letter and any space is replaced with a _ so a cobblestone stairs would be Cobblestone_Stairs. If you are ever in doubt then just consult the WurkItItem.txt for the correct case sensitivity and spelling. If you have misspelled or got the case-sensitivity wrong on an entry then it will get the default amount you have set rather than the price you have set for the block itself.

    default must feature somewhere as a block type. What default does is apply a price to any block that you have not applied a price to. If you don't want a price applied to EVERY block you haven't given a break or place price to then simply set default to 0.0. You must always have a default entry or the plugin will crash if you don't want to use it set it to zero.

    The second section is the PaydayMessage section.

    This contains two variables being message and enabled. The message is what you want to be displayed to the player when they get paid you can type any text here. If you want to have the amount to be paid displayed including the units of your iConomy currency put the symbols $$ so you could put "$$ earned today" and it would display "50 Dollars 20 Cents earned today" for example. The enabled property let's you dictate if you want to display to your players that they got paid or not if you have this set to false your players will not get the payday message. If you have the message disabled leave the message there as you may get unexpected results if you have no message and besides if you have it disabled it will not show anyway!

    The third section is the PaydayInterval section.

    The interval takes an integer (a whole number) describing how often in seconds you want to pay your players. Mind you the players will only get paid if they are online so if you set this to every 12 hours and they are not online when this ticks over on the server then they wont be paid so be good to your players when setting this. Do not set this interval to zero or you may find that the plugin acts unexpectedly. If you want to pay your players instantly then just set this to 1. The difference between instantly and after 1 second is barely noticeable but massively more reliable.

    If clearBufferOnPayday is set to true then the placed buffer is cleared down and started again after every payday. This is a good way to minimize the plugins memory foot print as you wont be constantly running at the full placed buffer size. If you have this set to false then you will a persistent moving placed block window.

    debugType accepts three different values: none, simple and verbose. None will obviously turn the debugging information off. Simple will place a line in the server logs every time the payday task fires successfully. Verbose will do the same as simple with the addition that it will also tell you how much it is paying the players that it pays. This is helpful if you aren't sure if your payday task is firing correctly or not or if you think it has stopped.

    The bufferSize refers to how many blocks you want to have in your moving window. The placed buffer keeps track of all the blocks placed by player if these blocks are broken again they do not give payment to the player this also works the other way around i.e. broken then placed. This stops Farming the same block for cash. This buffer is kept in memory so I strongly recommend you do not set this bazillion if you don't want to pwn your server. I have tested this on the default setting of 1000 and the memory footprint was minimal but I would say if you are going to increase this then do so in small intervals and observer what happens to your servers memory so that you don't chew through your RAM. 1000 is more than enough to avoid farming because a player would have to place a block, then guess when the 1000 blocks have been placed and then break it again. This functionality doesn't make farming impossible but it makes it impractical.

    WurkPlaceSettings holds all variables used by the wurk place functionality in WurkIt. Wurkplacetool is the minecraft id of the tool that you want to use to select the points that you want a new wurkplace to be built in.

    The next six variables are what the plugin uses as the settings for new wurk places that are created. It is important that for the Break and Place types that you spell this right or you may break wurkit. You must set this to either percent or flat in lower case. Percent means that players get paid a percentage of the amount they would normally get paid for breaking blocks that are in a wurkplace the percentage amount is held in the amount variables. Flat means that the players get paid a set amount for each block they break in a wurkplace once again the amount that is added in held in the amount variables.

    wurkPlaceSaveInterval is how often changes to wurkplaces are saved down to disk on the server. This is in seconds. This shouldn't really ever need to be changed. entryandexitrefresh is how often the player positions are checked to see if a player has just entered or exited a wurkplace. This is in server ticks so 10 is a half a second. Once again this shouldn't need to be changed but if you do change it then you should only increase it. You might do this if you are experiencing lag.

    Finally debugType takes either simple or none. Simple will log an entry in the server log every time the wurkplaces are saved down to disk.


    Commands:
    Show Spoiler

    /wurkit

    - Shows help for wurkit and the version info

    /wurkit - reload

    - Reloads the configuration file.

    /pricecheck <on: off>

    - Turns on and off the price check feature. When the price check feature is on any time you right click a block it will give you the price that you will be paid for breaking and for placing it. Just a tip here make sure you have an item such as a pickaxe in your hand when you right click and not a block. If you right click with a block in your hand your will still get a price check but you'll also place a block which is a bit annoying! Right clicking with an item in your hand avoids this.

    /paydaymessage <on: off>

    - Turns on and off the payday message on for yourself. This is a per player setting it will not affect the payday setting in the config file.

    /priceset <break: place> <newPrice>

    - This command will change your WurkItConfig.yml and will set the break or place price of the next block that you right click to <newPrice>. Obviously <newPrice> must be a number.

    /wurkplace create <newname>

    - This will create a new wurkplace with the <newname>. This will only work if you have two points selected with your wurkplace selection tool

    /wurkplace rename <oldname> <newname>

    - This will rename the wurkplace with <oldname> to <newname>. You can only do this if you own the wurk place or have the correct permissions to do so.

    /wurkplace delete <wurkplacename>

    - This will delete the wurkplace with the name <wurkplacename>. You can only do this if you own the wurkplace or have the correct permissions to do so.

    /wurkplace info

    - This will display information about the wurkplace you are currently standing in.

    /wurkplace set <wurkPlaceSetting> <value>

    - Use this command to set one of the wurk place settings for the wurk place you are currently standing in to

    /completewurkconfig

    - Use this command to rebuild your config adding in every block that you don't currently have in the config. The new blocks will have a zero break and place value

    /stripwurkconfig

    - Use this command to strip the current config of any blocks that have zero values against both their break and place values<value>

    Available wurk place settings:

    breakType - Can take either percent or flat. Percent to pay a percentage of the normal payment to the employees. Flat to pay them a flat rate for every block.
    breakAmount - The amount of percentage or flat rate to pay.
    placeType - Can take either percent or flat. Percent to pay a percentage of the normal payment to the employees. Flat to pay them a flat rate for every block.
    placeAmount - The amount of percentage or flat rate to pay.


    A quick word about pricecheck and payday message: Pricecheck defaults to off and payday message defaults to what ever is in the server config. Both of these settings are stored in memory for each user and are not saved down to file. So if you have a server that has the payday message turned on and you turn it off with the command this will only stay off during your current session. If you log off and log on again the payday message will turn itself back on. Also if the payday message is off in the config using the paydaymessage command will have no affect.

    Permissions Nodes:

    Code:
    ---Admin Permissions----
    wurkit.admin.* - all admin commands
    wurkit.admin.priceset - /priceset <newPrice>
    wurkit.admin.reload - /wurkit -reload
    wurkit.admin.completeconf - /completewurkconfig
    wurkit.admin.stripconf - /stripwurkconfig
    wurkit.admin.wurkplaces.* - all wurk place admin commands
    wurkit.admin.wurkplaces.rename - allows the player to rename any wurkplace even if they don't own them
    wurkit.admin.wurkplaces.delete - allows the player to delete any wurkplace even if they don't own them
    wurkit.admin.wurkplaces.editvars - allows the player to edit the wurkplace settings for any wurk place even if they don't own it.
    
    ----Player Permissions------
    wurkit.player.* - all player commands
    wurkit.player.pricecheck - /pricecheck <on:off>
    wurkit.player.paydaymessage - /paydaymessage <on:off>
    wurkit.player.allowpay - Players will only be paid by WurkIt if they have this permission
    wurkit.player.wurkplaces.* - all player wurk place commands
    wurkit.player.wurkplaces.create - /wurkplace create <wurkplacename>
    wurkit.player.wurkplaces.rename - /wurkplace rename <oldname> <newname>
    wurkit.player.wurkplaces.delete - /wurkplace delete <wurkplaceName>
    wurkit.player.wurkplaces.info - /wurkplace info
    wurkit.player.wurkplaces.editvars - /wurkplace set <wurkplacesetting> <value>
    Changelog:

    Show Spoiler

    v1.2.0
    - Added Wurk places
    - Heaps of bug fixes including item spelling mistakes, bed and iron doors not working and anti farming not working.
    - Upgrade to RB 1000 and compatible with 1.7.3
    - Upgraded to use Permissions 3.1.6 and new BOSEconomy.

    v1.1.1
    - Fixed the show stopping bug that was invluded in v1.1.0

    v1.1.0 [BUGGED]
    - Built in functionality to pay players for placing blocks.
    - Increased default buffer size after further optimizations.
    - Upgrade to RB 953 and made compatible with new blocks in 1.7.2.
    - Built better version control to help admins update their config file correctly.
    - Updated all commands to handle new placing functionality.

    v1.0.1
    - OMFG new release of Bukkit RB only hours after v1.0 release. Now 935 compatible.
    - A few other little buglets I cleaned up whilst testing new build.

    v1.0
    - Optimized code used around the placed block buffers in preparation for block placing functionality.
    - Optimized permissions and command related code.
    - Change the way that the payday task is scheduled to address payday task stopping periodically.
    - Added version control so that WurkIt wont blow away your config every time you upgrade WurkIt and it will add missing functionality when upgrading.
    - Updated to Bukkit RB[928].
    - Built in BOSEconomy support.
    - Added debugging in the PaydayInterval settings
    - Added the priceset function.

    v0.3
    - Made Wurkit compatible with ItemCraft v1.4.1
    - Made Wurkit support Permissions
    - Added /pricecheck and /paydaymessage commands
    v0.2
    - Added the placed buffer to stop "farming"
    - Added the help and version info commands
    - Added necessary changes to config file for the user to setup all the new functionality
    v0.1
    - Initial build


    Future Plans:

    - Upload source code to github for everyone.
    - More customization features for wurk places.
     
  2. Offline

    SynMonger

    Players on my server have been abusing WurkIt to get huge profits. When I looked into what was going on, I found WurkIt was paying out for block farming, regardless of the settings in the config file. I tested by placing the same iron ore block over and over, and received a payout each time I broke it.

    Here's the config I used: http://pastebin.com/yysdd2Z3
     
  3. Offline

    oz_revulsion

    Hmm from the sounds of it I've also messed up clearbufferonpayday I'll give it a test and have a look at the code tomorrow when I get home and let you know. I am actively working on the next release which has all the bug fixes reported above so I can add this to the list if it turns out to be one (which from the looks of things it almost certainly is) NOW I KNOW HOW BILL GATES FEELS!!

    Cheers
    Oz
     
  4. Offline

    SynMonger

    In the meantime I've just left it at zero for the payout.
     
  5. Offline

    oz_revulsion

    Quick Development update. I have entered the realm of 2D maths for the next release which has killed my brain! In the next release I will be introducing Wurk Places. The idea being you set two points and you can set a flat amount or a percentage that you want to add to every block broken or placed within the region you have marked out. The money will come out of your bank account or if you have the correct rights you can set up admin Wurk Places that conjur the money up for the player. With this addition players will able to focus the attention of other players to help with projects and it also gives players a way to hire other players to do jobs for them like mining or building. Should be fun! At this point I have the Wurk Places working and now I just have to put in the customization options in the configuration file and clean up the interface a little. We should be looking at another week or two development time.

    Also I looked into this and yeah the anti farming is bugged in 1.1.1 so I'm really glad you pointed that out. Sorry about that dude (and other users). I have fix this issue for 1.2.0 and that along with all the other bugs reported will be fixed when I release. I hope Wurk Places will be enough to make up for it ;)

    Cheers
    Oz
     
  6. Offline

    SynMonger

    Great! Looking forward to the update. The players are anxious to get paid for mining again too.
     
  7. Offline

    Tadas159

    Whi I don't get any money? I think it started when I installed Towny.
     
  8. Offline

    oz_revulsion

    Lol, worst bug report ever. Seriously tho, I need your Config, any error messages from your server log, your version of MC, Bukkit and Wurkit before I can help you dude.

    Cheers
     
  9. Offline

    Tadas159

    Sorry :) It started to work after about 1 hour.
    P.S no errors.
    Bukkit v1000
    And Wurkit is 1.1.1
    Config is the same as it was just changed the timer to 720
     
  10. Offline

    oz_revulsion

    If you're ever in doubt of whether the pay day is firing you can change the debugType to simple to show every time the payday process fires in your server logs. If you want to know who gets paid and how much every pay day then change the debugType to verbose and you will see every time the payday procedure runs as well who was paid.

    Cheers
    Oz
     
  11. Offline

    SVoyager

    FYI, just quickly saying that we have the same as what SynMonger reported about the ability to xploit wurkit to get profits. My users said they can place and destroy blocks over to get free profit$$$ . So I told my users to behave and not use the xploit so its fine over here, but I wanted to confirm what SynMonger said.

    Please note that I am running on CB 953 with Wurkit v1.0.1 (I know that there is version 1.1.1 but so far, evrything works fine with 1.0.1 besides the xploit which seems to be still there in v1.1.1 as SynMonger reported so i'll wait on v1.2 before upgrading. I am also waiting on CB 1000 , some plugins are not compatible with it yet.)

    Cheers, and nice work with wurkit, we really like what you did there!!!
    SV
     
  12. Offline

    oz_revulsion

    Thanks for the report SVoyager. Yup I have looked into this and I am sorry but I did break the anti farming that I so cleverly put in there (DANG!) I have already built the fix into 1.2 and I might as well throw in a quick development update here too. WurkPlaces are in and functional! You can create and delete them all based on permissions and they all save down to the server in a flat file for safe storage. Now all I need to do is make it so they can be renamed and set the percentages etc by the player, clean up the UI a bit and double check over the code and so forth and we are ready for release. The next build will be CB1000 compatible as well as I have mentioned before its now using the newest versions of Permissions and BOSEconomy (iConomy is obviously still 5.0.1). So yeah I reckon maybe another week and we can all start building our Wurk Places. I do hope you guys enjoy it.

    Thanks for the props too SV its all worth it when I hear people are enjoying the fruits of my labour.

    Cheers
    Oz
     
  13. Offline

    Macainian

    Dont know if it has been mentioned yet but Note_Block in WurkItItems.txt is put in as Note_block. Also why do you name things oddly? Yellow_Flower instead of Dandelion, but you put Red_Rose instead of Rose. Why not either Rose and Dandelion or Red_Flower and Yellow_Flower? You named Bookshelf as BookShelf. Another thing I think you should do is add every item to the config by default, but have them commented out. It is a hassle trying to add them all manually especially since I have to double check names constantly. All and all this mod is great and I appreciate it greatly. I saw when you posted this initially and have been waiting for it to come to this level. Good work. Oh and another thing, why don't you order your items by block id. It took me forever to find out that a crafting table is Work_Bench. Just found another weird one: Stone_Pressure_Pad and Wooden_Pressure_Plate.

    Just as a side note I am just editing the same post to save posts. I have a question on the item named Snow. Is that snow or snow block and either way why don't you have both? Found another typo, Jack_O_Latern should be Jack_O_Lantern. Ok you have Diode_Block_Off and you also have Diode_block_Off, but at the same time you do not have a Diode_Block_On.

    I have finally finished adding all of the items manually and am happy it is over. It took at least an hour but I didnt time it so I dont know. I havent come across any more problems......yet, but I will be on the lookout for more.

    Ok after getting everything working I started testing and so far I have found only 1 screw up and that is beds. Beds do not pay out money for placement. I dont know if they pay for break because I have break set to 0, but placing doesnt. Iron doors seem to have the same problem as beds. Jukebox is another one like Bookshelf where it is JukeBox and BookShelf. I have tested and found that "Snow" is Snow and not Snow_Block, which means there is no Snow_Block. Diode_Block_Off is Diode_Block_Off and Diode_block_Off is Diode_Block_On, so if you want to set a value to breaking repeaters, then you better remember that if it is powered you wont receive money for them unless you set it as Diode_block_Off.
     
  14. Offline

    oz_revulsion

    Wow! What a post I am glad to see someone going to so in depth in getting WurkIt installed on their server! Even I don't have that sort of configuration set up on my WurkIt version so my hat goes off to you good sir. I'll try to do your post justice and answer every question but for a lot of them the answers will be the same so sorry for that. Here we go!

    Yup, my bad, fixed it in the latest version.

    For this you will have to ask the great minds in the Bukkit team. You see the I named all blocks used in WurkIt directly after the name that was given to the enumeration name in the Materials Enumeration within Bukkit here is a link where you can see what I mean. I had no inspiration for why they were named that way other than I used the Bukkit Material enumeration name directly. This way programmers who might use WurkIt (once I release the source) can find these things more easily and smart cookies like yourself can work it out anyway.

    Guilty. Once again I have changed this to Bookshelf for the next version.

    Its a thought but it would clutter the initially generated config file immensely as well as the code because I have to procedurally generate that thing to begin with and also regenerate it whenever you make an in game change. Sorry man for the first time since WurkIt started I'm gonna have to say no to that one.

    Thanks for taking a props break lol! Seriously thanks for saying so dude, make all the salty tears worth it. Now back to it!

    I would but if I am honest I have no idea why they are out of order. I can see in my test bed they are so I don't doubt you but I don't understand what order they come out in. I insert them into my Items Hash in their correct data order but when I iterate through them they come out in the wrong order and its not even the Materials order either! I will have to look into this one. Don't expect it in the next version but I'll try and sort something out.

    Once again sorted in the newest version. I've changed the Pad to a Plate.

    Snow is dirt with snow on top from my understanding but I must admit I haven't tested it. Either way I have added snow block for you in the next version.

    I feel like mentioning at this point that, I'm not sure how much of the earlier posts you have read, but these are all hang overs from the infamous drunken programming session in the early versions of WurkIt and I am very surprised there aren't more of these than you have already reported LOL!

    Corrected the capitalization and also made it so there is a on and off.

    This makes baby Jesus cry and I suspect probably you too. You have misunderstood the purpose of the WurkItItems.txt. It is never read by the plugin, ever. It is only spat out for your reference so you can see what the plugin uses for its items names. If you have changed any of the names in that file none of them are going to be taken up in the plugin. So if you have changed Note_block to Note_Block in the WurkItItems.txt the plugin will still spit out an error if you use Note_Block because the plugin is looking for Note_block. Sorry if you wasted your time there dude but your changes wont have done anything. In fact if you restart your server they will all be blown away as the WurkItItems.txt will be recreated! You have two options at this point leave your config as is and accept the errors until I have released WurkIt v1.2 or keep your config in line with the original WurkItItem.txt and then change it when you upgrade.

    Hmm I'll test this but I don't expect it to be too hard to fix even if its broken I'm confident enough to say this will be fixed in the next version.

    Fixed in the new version.

    All the rest of your post is addressed earlier.

    Ok so there it is. Just so you know as well do I wasn't just giving you short answers because I was trying to fob you off or anything and I'm also not just "saying" its fixed. The reason I gave short answers is I actually went through your post just then and fixed everything item by item in the code so there was not point doing too much explaining if I had already fixed the problem eh?

    I'm glad you like the plugin and that I have finally made the standard for your server hopefully you'll continue to enjoy WurkIt as we iterate through the versions and get better with every post.

    Cheers
    Oz
     
  15. Offline

    Macainian

    Sweet, thanks a lot for the fixes and I will keep an eye out for more bugs. I spent the whole day yesterday working with your mod testing and configuring. I looked this mod up again after running into a dilemma on my server about money gaining. We only had MobBounty until now and people were making too much money from farming mobs and so I had to turn the numbers down and then everyone started complaining. After I saw that this mod was good to go I picked it up and everyone has hushed. So thank you for saving me from headaches :)

    As for changing the file, I knew better than to try editing the items' names so I just put it as you had it and was going to wait for 1.2 to fix it all back up. The order of the items in the txt file is at least halfway ordered, but I am not really sure what it is doing. Well I hope everything I found was helpful and I will continue to use this plugin. Thanks.
     
  16. Offline

    SynMonger

    In the meantime I've set up a config with nearly all the items in it.

    Here's a link to save a few of you some carpal tunnel: http://pastebin.com/HYLzWKWY
     
  17. Offline

    oz_revulsion

    Great work! Unfortunately your using an old version of WurkIt. That config will only work for v0.3 or below.

    Cheers
    Oz
     
  18. Offline

    Trollkemada

    Any link to dev version? Is wurkit 1.2 coming soon? My players are starting to farm blocks :\
     
  19. Offline

    oz_revulsion

    I'm gonna start a power session now. If I am lucky I might be able to get the rest of it knocked out. At very least it will help towards getting 1.2 out. Wurkplaces have become a mammoth task but everything is in there now I am just finalizing the permissions and configuration of it all so as I said I might be able to get it out tonight if I'm lucky.

    Cheers
    Oz

    Alrighty, well! I have been programming straight since my last post and I have managed to knock out the final pieces of 1.2! Well when I say the final pieces I sat down and realised that you guys were all desperately needing anti farming stuff back as well as the huge amount of bug fixes that are in 1.2 more than you needed the extra features on wurkplaces I had planned. So I decided to clean up wurkplaces up to the nearest usable state and just be done with this release. I can build in the other functionality I had in mind in the future anyway and you guys need 1.2 out now so that is what I have done.

    For any of you who were actually excited/waiting for wurkplaces they will still be in and will work just fine. Its just some of the customization options I would have liked to put in there had to get stripped out so I could release sooner.

    Anyway its 2 in the morning right now and I haven't got it in me to wrap up everything for the release I'm sorry. But it is done so I will update the thread and add a tutorial video as well as extra information on new setup options etc either tomorrow night or Sunday. Two days more at the most guys.

    Thank you all for being so patient and thank you again for choosing WurkIt.

    Cheers
    Oz

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  20. Offline

    Macainian

    You inspired me to do this (but correctly). I have made 2 versions. One with all the items commented out and one without comments. Also I have them all ordered by id so they are easy to find and they have comments to the right that number them by their id as well. 2 of them say THIS IS NOT IN YET and MUST remain commented until oz fixes those items. Also a few say DOES NOT WORK DOES NOT WORK and those obviously dont work. You can feel free to set them though, they just wont do anything. I went through the trouble to set all the values back to 0.00 so if you decide to use the uncommented one you wont have to set any you dont want to use to 0.

    Commented Version: http://pastebin.com/wHJPjZjw
    Uncommented Version: http://pastebin.com/jZtmMx4m

    Oh and also I couldn't remember what the original message was so I put "You made $$." I doubt you would like to use mine, "GET BACK TO WORK SLAVE AND HERE IS YOUR PETTY $$."

    Also remember to change the duration to what you want. I have mine set to 600 (10 mins).

    AND ONE MORE THING......Oz did you fix the iron door and bed yet......or did you forget? As a side question, do you nickname your manhood "the wizard?"

    We're off to see the wizard, the wonderful wizard of oz. I bet your girlfriend Dorthy was happy to find the wizard. Sorry for my bad humor, sometimes I just cant help myself. :)
     
  21. Offline

    Trollkemada

    Wow, thanks for the news, great job, don't get too exhausted ;))
     
  22. Offline

    oz_revulsion

    Well good sir you in turn inspired me. I had a spare hour today so not long enough to release but long enough to do a little bit of work on the plugin. I decided that it seems that quiet a number of people seem to want a config that has everything in it. To help you guys out so you don't have to spend hours working on things like this I built in two new commands. The first is /completewurkconfig. This rebuilds your current config and adds in any blocks that you don't already have in your config. The new blocks are all set to zero break and place values. The second is /stripwurkconfig this removes any blocks in you config that have zero values against both break and place values.

    What this means is that if you have first installed WurkIt or even if you are an old user and you just wanted to add a lot of values at the same time. You could run /completewurkconfig. This would add all values not already in your config, you could edit the ones you want, then run /stripwurkconfig to clean up the values you aren't using. Cool huh? I hope you think so.

    As a side note the config in 1.2 will always be in minecraft id order as well as the WurkItItems.txt. I worked out how to do it. (I know....I'm awesome....It's no big deal...)

    Yeah I posted above saying that it was fixed. So that is all good.

    We normally opt for "I'm the sick patient, she's the naughty nurse" but I'll have to give that one a try!

    Cheers
    Oz

    P.S. My wife and kid are going away for the day tomorrow so I will definitely release tomorrow. Can't wait!
     
  23. Offline

    SynMonger

    Odd then, that it worked without any issue in 1.1 .
     
  24. Offline

    oz_revulsion

    I guarantee you there will be issues using that config in 1.1. In 1.1 every time you go to break a block it looks for the break field and every time you go to place one it looks for the place field, in that config you posted you don't have either, you just have price which was what 0.3 and below used. Of course it will start up ok and it will say it enabled successfully but it will error whenever you try and break or replace blocks.

    One of two things has allowed you to do this. Either you set up the config in v0.3 and then upgraded to v1.1 and haven't looked at your config since then (WurkIt does this funky thing where it takes your current config values, saves them down and then upgrades your config file for you when you upgrade between versions so you always have an up to date version of your config when you got to update). The other thing is that you may not have looked at your server log in while because if you put the config that you posted in an install that is above v0.3 then it wont work without errors if at all.

    Cheers
    Oz
     
  25. Offline

    scar_

    im getting this. Im probobly doing somthing rong but i can`t find out what.
    CB1000
    Wurkit 1.1.1
    BOSEconomy 7.1
    BukkitContrib 1.7
    PermissionsBukkit 1.1
     

    Attached Files:

  26. Offline

    oz_revulsion

    Hi scar

    Thanks for choosing wurkit and also for the great bug report that really helped me out! It also helped you out because I was able to tell right away what is wrong :D

    You have no default in your price list. Add

    Code:
       default:
          break: 0.0
          place: 0.0
    and you will stop getting that message. WurkIt needs the default even if you set it to zero.

    Cheers
    Oz
     
  27. Offline

    scar_

    Thx for the quik reply
    cool i always seem to mess up somthing.
    and thx for this awsome plugin makes it fun to mine.!
     
  28. Offline

    oz_revulsion

    1.2.0 has been released! I have made some tutorial videos to show off all the new functionality etc. Please make sure you watch them if you have any questions. Enjoy wurkplaces and fixed anti farming guys!!

    Cheers
    Oz
     
  29. Offline

    Wiernusz

    The download links are still for 1.1... ?
     
  30. Offline

    oz_revulsion

    My bad. All fixed.
     
  31. Offline

    oqenscool

    is it possible, that if i kill a mob and gain money or also an item like an apple or something else?
     

Share This Page