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

    oz_revulsion

    I'll give it my best shot dude but can you please post your config as well?

    Cheers
    Oz
     
  3. Offline

    Cellybeans

    I'm getting that error as well. It spams the console I guess when someone breaks a block! This is my first time using the plugin.

    Edit: I'm getting two error messages. One for BLOCK_BREAK and one for BLOCK_PLACE

    Code:
    2011-07-04 11:34:58 [SEVERE] Could not pass event BLOCK_PLACE to WurkIt
    java.lang.NullPointerException
    	at me.ozrevulsion.WurkIt.WurkItBlockListener.onBlockPlace(WurkItBlockListener.java:134)
    	at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:427)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    	at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:90)
    	at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:74)
    	at net.minecraft.server.ItemBlock.a(ItemBlock.java:81)
    	at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
    	at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:223)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:552)
    	at net.minecraft.server.Packet15Place.a(SourceFile:57)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-04 11:35:06 [SEVERE] Could not pass event BLOCK_BREAK to WurkIt
    java.lang.NullPointerException
    	at me.ozrevulsion.WurkIt.WurkItBlockListener.onBlockBreak(WurkItBlockListener.java:56)
    	at org.bukkit.plugin.java.JavaPluginLoader$35.execute(JavaPluginLoader.java:483)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    	at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    	at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:460)
    	at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    My config file is (I cut out the default comments for posting).
    Code:
    edit:
    -snip-
    I linked my players to this and I'd rather them not know  the exact numbers on stuff. :3
    
     
  4. Offline

    oz_revulsion

    Bad news. Firstly can I say, thank you for posting everything I needed first time! Secondly, I'll check this out when I get home and hopefully get to the bottom of your problem then.

    Cheers
    Oz
     
  5. Offline

    Pymous

    Like I've said, I have the same error with the default config (generated by the plugin himself) that's why I thought it wasn't necessary to give it :)

    But here she is ! http://pastebin.com/bV2e6erN

    Hope you will find the issue :3
     
  6. Offline

    oz_revulsion

    Once upon a time there was a dashing (and handsome) plugin developer who toiled in the code caves of Minecraft Pluginia. One day he emerged with a glow gem of WurkIt awesomeness, +1 agility. He raised it triumphantly above his head and proclaimed "HERE BE THE MOST PERFEC.....what's that...." upon closer inspection the great (and did I mention handsome?) plugin developer found a minor imperfection in the gem. His mind raced as he realised that he couldn't show off an "almost" perfect gem to the entire world of Minecraftia. With a quick swipe of his code sword he smoothly hacked off the imperfection and marched to Bukkit city to show off his prize.

    On arrival the citizens marvelled at his handwork (and though they denied it, also his handsomeness) and begged "May I have a copy of the gem to show my township" the plugin developer laughed a hearty laugh "Of course my friend take your copy and enjoy". The citizens laughed and sang all the way home only to find that when they got there the gem was missing a piece and from the hole within climbed the despicable and evil bug beast of "The developer is a complete idiot"!

    The citizen's screamed and ran back to the developer and with tears they humbly requested "Please oh mighty and skillful (and handsome) developer please slay our beast". With that the developer unsheathed his epic purple code sword of +1 awesomeness and for many hours he hacked and screamed and slashed at the beast. Needless to say many magic potions of the crimson bovine were opened and consumed to sustain the developer during battle. The plugin developer returned bloodied and bruised from battle. The citizen's hushed as it appeared that he had returned with nothing. then from beneath his armor of epic skillfulness he produced an even more perfect gem than the last. The citizens cheered and all left with their new copies of the gem. And they all lived geekily ever after.


    Yeah basically I made a last minute change before release that broke everything, sorry. Just pick up the new jar and put it in instead of the old one and all will be well. Sorry for inconvenience and I hope you enjoy the plugin now with 100% more "actually working" goodness.

    Also I tested both of your config's before I released just to make sure that you wouldn't have any more problems and all is well with you CellyBeans. As for Pymous I understand what your trying to do by setting your interval to 0 i.e. you want your players to paid instantly. You are going to find that you get unexpected errors if you set it to zero I know I didn't explicitly say it in the help and stuff but yeah. If you want it paid instantly just set it to 1. The difference between completely instant and having to wait 1 second is unnoticeable but is epically more reliable. There's my pro-tip of the day!

    Unfortunately the new version wont fix your problem so I still need your config and if you can also post what version of WurkIt you are running.

    Cheers
    Oz
     
    Rytharr and Cellybeans like this.
  7. Offline

    Cellybeans

    Wow. That is the best and most epic reply I could have ever never expected to get from reporting a bug.

    that alone has convinced me to stick with this plugin. [diamond]
     
  8. Offline

    Pymous

    I just droped dead from laughing (it's actually my dog writing) ! \o/

    Thanks for the (awesome, never forget) work ! :)
     
  9. Offline

    phrstbrn

    I don't see a source code release.
     
  10. Offline

    Kattalassien

    Is there any way to set how much each group gets per day? I have a little rpg server and we have guards who need to get extra cash everyday.
     
  11. Offline

    oz_revulsion

    I'm glad you both liked it and (I assume) I was also able to find your problem quickly enough to keep you as WurkIt fans. Enjoi guys!

    You highly, highly underestimate exactly just how lazy I am. At the moment I am too embarrassed of my code to release it but I will make sure that for the next release I clean it all up and put the source out on show. I'll let you know when I've done it. Thanks for the interest. May I say I am very impressed with your jobs plugin its really great work. I had it installed on my own server before I put WurkIt on, no reflection on your own plugin just that once again I got too lazy to use all that configuration you put in, it really is great how finely you can tune it and there are obviously a lot of people with more motivation than I doing great things with it. Anyway before I suck up any more lets leave it at I'll PM you when the source goes up.

    No but in the next version you will be able to setup jobs throughout the world where if they are in the region marked out by the job then you can pay them a bonus for working in that region. Read the previous posts for further details on this as it was one of our users ideas but that is what I will be working on next.

    Cheers
    Oz
     
  12. Offline

    MalcolmLC

    I visted a server and saw that this plugin was on there, im sorry if im a little dum but what does it do?
     
  13. Offline

    oz_revulsion

    Umm, the first post explains in full what this plugin does but in short WurkIt gives you the ability to pay your players in iConomy money or BOSEconomy money for breaking or placing blocks. Thanks for the interest.

    Cheers
    Oz
     
  14. Offline

    MalcolmLC

    o_0 sweet now I can get rid of jobs, this makes more sense to me anyways now :D
     
  15. Offline

    oz_revulsion

    Awesome dude! I hope you have fun with it!

    Shake ya groove thang!
    Oz
     
  16. Offline

    MalcolmLC

    Will do . Im switching over to this from jobs after I set up a few things on my server.
     
  17. Offline

    MalcolmLC

    I have only one thing to request... An ability to choose times when wurkit is in use. Like if the plugins would disable payment at certain times of the day.. So i can kinda force the players on my server to do more than try to earn money.
    or something like required breaks .
     
  18. Offline

    oz_revulsion

    Its a definite possibility. I'll add it to the ever growing development list.

    Cheers
    Oz
     
  19. Offline

    Trollkemada

    It's a awesome plugin, i really like it :D

    Could you please add the posibility of set a maximum money earned per day?
    Thanks :D
     
  20. Offline

    Trollkemada

  21. Offline

    oz_revulsion

    T
    Yep you found a bug. Luckily its not show stopping. I have put in a code fix that will be released with my next release of WurkIt. It's going to be a pretty big release release and there is a work around so I wont release a bug fix right now.

    Until the next version the in game command /wurkit -reload is broken if you have permissions 3.1.5. If for some reason you don't have permissions then (why?) congratulations you can still use the reload command if you are an OP. If you do have permissions then you wont be able to use this command in game. Luckily you can still use it in the server console command if you type wurkit -reload you can reload wurkit and it works no worries. It's not ideal I know and I apologize but as I said the next version is going to be a pretty big release and you can expect a fix then. In the mean time just typing /reload in game will still reload WurkIt. To clarify its not the reload procedure itself that it is broken it is the command so if you can get it to reload in the console or by typing /reload in game it will still reload the way it should.

    So basically the answer is, yes its a bug, yes it will be fixed in the next version (I have already fixed it), yes there is a work around and thanks for choosing WurkIt!

    Cheers
    Oz
     
  22. Offline

    Trollkemada

    Okey, good to know. Im looking forward the next release :)
     
  23. Offline

    Kararty

    You like writing storys....CAN YOU MAKE ME A QUEST!!?? joke Anyways i gonna try this plugin! :D
     
  24. Offline

    oz_revulsion

    Good to hear, have fun!
     
  25. Offline

    Blkdragon112

    I just installed this and for some reason I can't destroy blocks, they refresh themselves and don't drop an item but I still get money at payday time, I haven't changed any settings yet so there is only default in the price list.
     
  26. Offline

    oz_revulsion

    Can you please check and see if you have any errors in your server log and post them if there are any and also post a list of the plugins you have installed on your server.

    Cheers
    Oz
     
  27. Offline

    Blkdragon112

    sure I've got iConomy, Permissions, Wurkit, and Bettershop
    and here is the error code

    Code:
    [SEVERE] Could not pass event PLAYER_INTERACT to WurkIt
    java.lang.NullPointerException
        at me.ozrevulsion.WurkIt.WurkItPlayerListener.onPlayerInteract(WurkItPlayerListener.java:45)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:552)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  28. Offline

    Ratty18

    Hey oz,iv been using this for a while,after like,a LONG time of using it,it just keep saying you earned 0.0 money bla bla bla,reinstalled,works fine for me,and my friend,but for my 3rd friend,she isnt getting any money,using default config,and i can post other mods also. i have like 20 some xD--edit--the wurkit message saying how much money you have earned today doesnt pop up for her...im using permissions,but im pretty sure this did it before i installed that. is there any nodes i need to give them to get money?

    Nvm,read the nodes. haha,thanks for the awsome plugin ^.^

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

    oz_revulsion

    Ok cool man. Well I have investigated the problem that is in the error that you have reported there dude but you know what I really wish you guys would stop pointing out what an idiot I am! The error log there is actually talking about a different bug with the priceset function. If you don't have a price in your config for a material and you try to set its price you will get the error you have reported. I will fix this in the newest release which I am going to start working on tonight. This doesn't solve your block recreating itself problem though. What I need you to do is stop your server then either rename or delete your server log then restart your server, log on and make the problem your having happen. Then put your entire new server log in a paste bin. That will tell you whether there is actually something wrong with wurkit that is causing the blocks to reappear and I will have the correct error message from the logs so I can go hunting down the other bug that is making me red in the face. If you do this quickly I will be able to include a bug fix for your problem in the next release as well and you will be up and running.

    Glad to hear it dude, thanks for the props.

    Cheers
    Oz

    [EDIT] Quick Development update I have just finished fixing the bugs that have been reported as well as updating the plugin to work with Permissions 3.1.6 and BOSEconomy 0.7.0. Because of the massive changes in both these plugins as far as interfacing with them goes I the next version of WurkIt will only work with Permissions 3.1.6 and BOSEconomy 0.6.2 or 0.7.0. So you might want to get updating your servers now!

    Cheers
    Oz
     
  30. Offline

    SynMonger

    Does
    Does this mean you're dropping support for iConomy, or that those using BOSEconomy need to update?
     
  31. Offline

    oz_revulsion

    Absolutely not. iConomy support will remain (in fact I personally run WurkIt on my server using iConomy so it's definitely not going lol!). All I am saying is that because of the changes to the way the methods in BOSEconomy I have had to program it so the next release of WurkIt will only be compatible with 0.6.2+ so if anyone have and older version than 0.6.2 they will need to upgrade to at least 0.6.2.

    Hope that clears things up and I didn't give you too big a heart attack! Lol.

    Cheers
    Oz
     

Share This Page