LoginReward
LoginReward takes the idea that was started in DailyBonus, LoginBonus, RewardMe, etc. and extends it for full control and customization.
What it does
At its most basic level, LoginReward rewards players with either money and/or items when logging into the server. Reward groups are created and configured in the plugin's configuration, and any user who has the appropriate permissions will receive those rewards when logging in. Groups are dynamically created and configured, allowing any number of arbitrary groups, in many different configurations.
LoginReward uses either iConomy5 or iConomy6 to do payouts. If neither are found, a dummy economy will be used. Vault (with its multiple economies) and items will be supported soon.
Installation
- Download and install LoginReward.jar.
- Start and stop the server.
- Edit and customize the config.yml found in the plugins/LoginReward directory.
Configuration
The following default configuration will be created the first time the plugin is loaded:
Cumulative: true RewardGroups: Normal: Amount: 15.0 Message: BONUS! You earned $amount$ for logging in today! Rank: 0 VIP: Amount: 5.0 Message: VIP, you earned an additional $amount$ bonus! Rank: 1
Cumulative: True/False. All rewards will be cumulative (true) or unique (false). Unique rewards be the last, highest ranked reward that the person has permissions for. Default: true
RewardGroups: This is where you define your reward groups. The format for each group is as follows:
<name>: //one word, used in the permission needed to get the reward Amount: <#.##> //amount in decimal Message: <message> //to display to user Rank: <rank> //higher numbers outranks lower for unique rewards
Two groups are provided by default. They can be modified or deleted. In order for a player to receive the reward, they must have the loginreward.get.<name> permission. <name> should match the name of the group defined under RewardGroups. So, based on the example above, users that get the Normal reward need to have the loginreward.get.normal permission, and VIPs would need to have the loginreward.get.vip permission.
Now REQUIRES Vault. If Vault not found, it will use a dummy balance handler.
To Come
- Per group cumulative or unique settings
- Item rewards
Vault Support
@robotnikthingy
I'll test it.
Jack
does this plugin still work with bukkit?
This will be the ULTIMATE plugin when it supports item bonuses and randomness (items and/or money)! GREAT work on the plugin! Can't wait till the next update :D
Working?
It would be cool to allow us to set a range of numbers in which a player will randomly get, I.E. I set the range for money with $100-$200 and they will get a random number in between those, just a thought
http://pastie.org/3790181
No matter what I do it won't enable that config. What is wrong?
2012-04-06 13:01:54 [SEVERE] Could not pass event PlayerJoinEvent to LoginReward org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132) at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:94) at net.minecraft.server.Packet1Login.handle(SourceFile:68) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:48) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at com.noheroes.LoginReward.LRPlayerListener.onPlayerJoin(LRPlayerListener.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 12 more
Would be nice to have this update!
Hello, this doesn't seem to be supported anymore, if you are looking for an update, I am updating the original plugin again, DailyBonus!
could update?
@Shooty: It may be cause using craftbukkit version 1.2.3
With latest version (i'v vault) http://pastie.org/3598941
Do you have a version that supports vault? your like the only plugin I;ve found that is even close to working that is doing this.
Using 0.65 and vault Still get no payout with the configs set correctly. No errors just a 0.0 payout
last version.
log :
[INFO] [LoginReward] Gamer received a daily bonus of 100.0 for being in the Normal group [INFO] [LoginReward] Gamer received a daily bonus of 10.0 for being in the VIP group
He began to give out money, but with such a config setting:
Print the money only if specified in Type - an item
Uploaded a new version that requires Vault.
If you still have problems, create a ticket, and include your server log (from startup).
In the server log, the startup portion will contain the amounts, groups and permissions LoginReward sets up. For example:
@Shooty_
A similar problem
You earned 0,00 Dollars for logging in today! You earned 0,00 Dollars for logging in today!
2 times writes :(
Don't works for me, i have perms "loginreward.get.normal" with permissionsEx, and when i'm log i'v got this message "BONUS! You earned 0 Or for logging in today!" (i'v set aomunt to 3.0) and "VIP, you earned an additional 5 bonus!" (i'v set vip amount to 0 and i don't have the permissions) also, Cumulative is set to "false".
Does it support essentials economy? If not then ill pass.. Im kinda looking for something to hook into essentials economy?
Waiting for approval for R6.