Wiipay
Features:
- pay groups and players at a regular configurable interval.
- set the interval between payments.
- set the salary per group
- set the salary per user
- set a popularity bonus, awarding players for the number of players online.
- a nice payslip is displayed on the players screen every time a payment occurs.
- the default payment interval is 1 minecraft day (1200 seconds)
- Uses Vault for permissions and economy handling.
Compatibility
This plugin has been tested to work on craftbukkit [1.4.5][1.3.2], [1.3.1], [1.2.5], [1.2.4], [1.2.3] [1.1]. You must install the latest Vault plugin version, since wiipay uses it for economy and permissions.
Download
Click here to download wiipay
Commands:
- /wiipay interval <interval in seconds> : Set the interval in seconds between payments
- /wiipay setgroup <groupname> <salary> : Set the salary members of this group will receive.
- /wiipay setuser <username> <salary> : Set the salary this user will receive every payment.
- /wiipay list : Show all configured groups and their salaries.
- /wiipay pay <number of payments> : Execute 1 or more wiipay days manually.
Usage:
users: To set the salary of individual players use: /wiipay setuser <username> <salary>
groups: This plugin does not create groups, it lets you set an salary for existing groups. You need to create user groups (like admin,mod,builder etc) with permissionsEx or another permissions manager that is supported by Vault. Then use the /wiipay setgroup <groupname> <salary> command of wiipay to set the salary for that group.
Configuration
You can edit all variables set by commands in the config file: wiipay.yml. You can also set a server name in the config file. example wiipay.yml that belongs to the screenshot on top of this page:
servername: minecrafters.nl # The name of your server. currency: euros # The name of your currency. interval: 1200 # The number of seconds between wiipay payments. bonus-per-player: 0 # The number of euros every player gets for every player online during a payment. show-payslip: true # Set to true if the payslip should be shown to the users when payment occurs. show-details: true #true: Show a breakdown of the salary per group or false: show only the salary total. salary: group: # The salary of members of the listed group names, the group names must exist in your permissions plugin. builder: 100.0 kilobuilder: 240.0 player: # The salary of the player with this name. wiigor: 10.0
Background:
WiiPay is a Minecraft bukkit Plugin Made By Wiigor for the Minecraft Alliance. (minecrafters.nl and minecarts.nl)
Like many servers minecrafters.nl needed an automated system to grant players money at regular intervals. Since i couldnt find a working plugin anymore or the plugins if found were very complex, faulty or inefficient I decided to write one from scratch.
I had 3 requirements for this system:
- It should be straightforward and simple to configure. (not loads of similar commands that have a complex syntax)
- The system should be efficient and not some hog that keeps hanging when I reload. (Like some alternative timed pay plugins do)
- It will be kept simple (only one timer/ only online players get paid)
Todo:
- -improve this plugin page.
- -make a /wiipay help command to show the possible commands.
feature requests
- -add a variable per user and per group to indicate who will pay the salary of the group/user.
- -make a command for settings this variable: like /wiipay setgrouppayer <group_name> <acount_name_of_payer>
Wont do list:
- -make payment facilities for offine players.
- -add complex commands/facilities.
Changelog:
- 2012-12-08 1.1 - Compiled for java 6 (will work on java 6 and 7) Tested on 1.4.5
- 2012-12-08 1.0 - broken - Do not use Removed because of missing library file: .
- 2012-11-16 beta 0.9 - updated for craftbukkit 1.4.5
- 2012-10-09 beta 0.8 - removed the new feature of taking the currency name from economy plugin thorugh vault, due to incompatiblities of these. - made the plugin stop the task when reloading. (more reload proof) -made the commands more resilient, will give a nicer formatted error message if wrong syntax -compiled and tested on the latest versions (craftbukkit 1.3.2 R1.0, Vault 1.2.19 and iconomy 6.0 and 7.0) -/wiipay pay can now be executed more than one time. by giving the number of executions. All quantities will be multiplied. -compressed the code for even better performance.
- 2012-09-23 beta 0.7 -Wiipay will try to take the currency name you have configured in your economy plugin.
- 2012-07-23 beta 0.6 -negative salaries now possible. Displays negative values in a red and displays " You Pay". -added property show-payslip: true/false to config.yml: this turns on or off the showing of the payslip. -added property show-details: true/false to config.yml: this turns on or off the showing of details on the payslip.
- 2012-05-28 - beta 0.5 - added currency variable to config file so admins can set their own currency name. (you must manually add the currency variable it if you already had a config file) - added a popularity bonus system to reward players for the server being filled.
- 2012-03-26 - beta 0.4 - added variable servername to wiipay.yml so a custom servername can be set for display on the payslip. - compiled on java 1.6 for compatibility with people running their servers on java 1.6
- 2012-03-24 - beta 0.3 - posted on bukkitdev.
can you add color support to the currency name if it can be added
thx :)
@epictrance @tesha
I have rollbacked the addition of taking the currency name through vault from your economy plugin since there seems to be some compatibility issues in that coupling. Its not much work to put it in the config.yml of wiipay anyways.
I have improved the below issues:
- made the plugin stop the task when reloading. (more reload proof) -made the commands more resilient, will give a nicer formatted error message if wrong syntax -compiled and tested on the latest versions (craftbukkit 1.3.2 R1.0, Vault 1.2.19 and iconomy 6.0 and 7.0) -/wiipay pay can now be executed more than one time. by giving the number of executions. All quantities will be multiplied. -compressed the code for even better performance.
I hope people having problems now can run wiipay.
On my server wiipay doesn't seem to be able to initiate the payment interval on its own. I always have to manually type in one of your commands (/wiipay interval 600 for example) for it to work, although I configured the interval in the config.yml.
(Versions: WiiPay 0.7, Vault 1.2.19-b248, iConomy 7.0, bukkit 1.3.2-R1.0-b2377) config.yml: interval 600, bonus per player 0.1, show-payslip: true, show-details: false, salary: groups: rankname: number
Btw: After enabling MySQL on iConomy i get the same error as EpicTrance.
im using the 1.3.2 r1.0 of vault which is the latest
im using iconomy 7 which is the latest too
this is the config:
interval: 2500 salary: player: epictrance: 10.0 group: Owner: 40.0 Builder: 5.0 Girls: 5.0 Admin: 30.0 Moderator: 25.0 HeadAdmin: 32.0 HeadMOD: 27.0 MasterBuilder: 7.0 Donator: 35.0 ServerOP: 37.0 Founder: 39.0
@EpicTrance
Wiipay is asking the currency name to Vault, but Vault gives an error, while trying to get the currency name from economy 6.
I need 3 things from you to be able to fix this error.
the new wiipay doesnt work for me'
2012-09-28 18:14:44 [SEVERE] Error occurred while enabling WiiPay v0.7 (Is it up to date?) java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at net.milkbowl.vault.economy.plugins.Economy_iConomy6.currencyNamePlural(Economy_iConomy6.java:121) at me.wiigor.wiipay.WiiPay.reloadConfig(WiiPay.java:87) at me.wiigor.wiipay.WiiPay.onEnable(WiiPay.java:75) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:266) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:248) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:297) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:276) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:226) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:377) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Good to see you used my idea of getting the Economy name with Vault :)
@Malvagio87
it works on 1.3.2
what about updating to 1.3.2?
@rodier
link
Click the link this should work for any bukkit version from 1.1 to 1.2.5...
where is files for 124 r4?
@MCPanem
-negative salaries are now possible. The plugin will display negative values in a red color and display " You Pay" instead of " You get"
@ExDomino
-added property show-payslip: true/false to config.yml: this turns on or off the showing of the payslip. -added property show-details: true/false to config.yml: this turns on or off the showing of details on the payslip. Known caveats
If you already had an existing config you need to manually add show-payslip: false and show-details: false to disable displaying (parts of) the payslip.
Hi ! How to hide the payslip ?
I am having a small issue, I want to be able to use this plugin to take money as well as to add it so I was wondering if you could input a way so that negative numbers like -50 would make it take 50 from the account and a positive number would add it? I know you don't want to add complex things but this seems like it would not be hard to add.
Thanks!
@ToXcWaStEBoY1
Hi There is a plugin like wiipay that has many more options like multiple timers offline pay etc. I found it some months ago but forgot the name but plz search it and post the name here then i will include it in my description of the plugin for people searching for more complex functionality
I know you said " It will be kept simple" but i can't find any other plugins that pay people every now and then when their offline... I make some plugins and if i can have the code i may be able to make it work for players offline. Just asking, your choice if you want me to
If i was you, on your Todo list, put change currency name 1st because as you can see people are asking about changing currency. /wiipay help 2nd because mostly owners or admins can do it in console or have every command and can read it off this. Plugin page 3rd, get the main 2 things done first. Personally i wouldn't do a reward system because EcoCreature is a mob killing Economy reward plugin. But its your choice! ToXc :P
No way to change the currency?
Could you maybe add option to give items? And is there a way so player can miss the payout?