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

  1. Download and install LoginReward.jar.
  2. Start and stop the server.
  3. 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

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of robotnikthingy robotnikthingy Oct 24, 2012 at 15:11 UTC - 1 like

    does this plugin still work with bukkit?

    BFAK:90691927,07571dc2c72cb17766fe413c26d50bbbee919222c04d99b88bcb407f992b3c11

  • Avatar of anrexicPanda anrexicPanda Jul 27, 2012 at 00:13 UTC - 0 likes

    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

  • Avatar of Fr0zenFr0g Fr0zenFr0g Jun 23, 2012 at 08:51 UTC - 0 likes

    Working?

  • Avatar of GeneralShep GeneralShep Jun 15, 2012 at 23:33 UTC - 0 likes

    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://i638.photobucket.com/albums/uu106/jerredwer/BrowserPreview_tmp.gif

  • Avatar of mrcheesete0 mrcheesete0 Apr 15, 2012 at 03:43 UTC - 0 likes

    http://pastie.org/3790181

    No matter what I do it won't enable that config. What is wrong?

    <<size 0px>>BFAK:mrcheesete0,90630417,786766185412edcd5073d5d6338ecaa67d9596bbff54c34e675edf468ebf1e2b<</size>>

  • Avatar of allix8 allix8 Apr 06, 2012 at 09:12 UTC - 0 likes

    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

  • Avatar of np98765 np98765 Mar 31, 2012 at 23:45 UTC - 0 likes

    Would be nice to have this update!

  • Avatar of itsatacoshop247 itsatacoshop247 Mar 25, 2012 at 03:57 UTC - 0 likes

    Hello, this doesn't seem to be supported anymore, if you are looking for an update, I am updating the original plugin again, DailyBonus!

    See my other plugins here.

    Check out my custom CookieSlap PvP Server - CookieSlap.net

  • Avatar of Shooty_ Shooty_ Mar 18, 2012 at 01:18 UTC - 0 likes

    could update?

  • Avatar of lambik lambik Mar 17, 2012 at 12:20 UTC - 0 likes

    @Shooty: It may be cause using craftbukkit version 1.2.3

Facts

Date created
Jan 05, 2012
Categories
Last update
Mar 11, 2012
Development stage
Beta
License
All Rights Reserved
Curse link
LoginReward
Downloads
1,856
Recent files
  • B: 0.65 for CB 1.1-R7 Mar 11, 2012
  • B: 0.6 for CB 1.1-R6 Mar 01, 2012
  • A: v.50_alpha for CB 1.0.1-R1 Jan 05, 2012

Authors