DailyBonus
DailyBonus- Daily Login Bonuses
Want to help update DailyBonus? Contact gomeow
This plugin give a bonus once a day to players who log in. The amount is configurable.
There is an option in the config file for a delayed time until they get the bonus. If the player logs out before getting the bonus, then it will remember that they didn't get the bonus yet for that day, and attempt to make them wait the time again.
You can also give items based off a list in the config file.
The plugin uses SuperPerms (all permissions plugins will work, is what this means) for Permissions and Vault for economy, so all plugins that support those will work with DailyBonus!
Watch the video!
The Tier system:
The tier system allows you to have as many tiers as you want, as long as you change the "Number of Tiers" option in your config.
How tiers work:
- Tier number, 1 being the lowest tier
- So the highest admins/ops/VIPs will be given the highest Tiers, while defaults/noobs get the lowly Tier 1.
Economy Bonus
- The economy amount will be given as long as Vault is enabled. If you don't use an Economy, then set the values to 0.
- Again, you NEED Vault to give an economy amount with DailyBonus.
- To have a random amount of economy, put the "base-values;random-amount" down. So "20;5" would give a random amount between 5 more or 5 less than 20, aka 15-25 currency.
Message:
- This message will be sent to the player when they get their DailyBonus. Color codes such as &6 and &4 work.
- (Full list here!).
- !amount will be replaced with the economy amount given.
- !type will be replaced with your currency, if available.
Items:
- This is a list of items the player will be given. "x;y" -> x being the item ID and y being the amount to give. So "266:5" would give 5 Gold Ingots!
- If you don't want to give any items, set one ID of 0 or just leave it empty.
- To give random items, set the line to "x;y;z", with x and y the same as above, and z being the max or min that will be added/subtracted from the y.
- To give items with a data value add a "-d" to the end of the item line, with the d being a data value.
- Example - "5;10;5-1" - This would give 5 to 15 wood planks (ID 5) with a data value of 1 (Darkwood).'
- Item Give Delay (In Seconds): This is how many seconds the plugin will wait to give the bonus. So if you set it to 5 minutes (300 seconds), the player must login and stay online for 5 minutes before getting the bonus. If they log out early, the timer will stop and they must wait another 5 minutes to get it for that day.
Permissions:
- dailybonus.tier.#
- # being the tier number. So 'dailybonus.tier.1', 'dailybonus.tier.2', 'dailybonus.tier.3', and so on.
- You can have an unlimited amount of tiers, just change the "number of tiers" option in the config accordingly.
- Players will not inherit the other tiers. For example - even if admin's with tier.2 were set to inherit the default groups tier.1 they would not get items from both sections.
Features:
- Daily amount given (configurable) when a player logs in each day.
- Permissions based on tier systems
- Custom message for each tier
- !amount is replaced by the actual amount in the message
- Item giving
- If the player's inventory is full, items will drop at their feet!
Commands
- '/DailyBonus reload' - Reloads the plugin - Permission 'dailybonus.reload'
Get Vault here if you are using an Economy plugin!
Roadmap:
- Suggest Stuff!
2012-10-08 09:49:09 [INFO] [DailyBonus] Enabling DailyBonus v3.1 2012-10-08 09:49:09 [SEVERE] Error occurred while enabling DailyBonus v3.1 (Is it up to date?) java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path; at me.itsatacoshop247.DailyBonus.DailyBonus.firstRun(DailyBonus.java:163) at me.itsatacoshop247.DailyBonus.DailyBonus.onEnable(DailyBonus.java:84) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Hi, thanks for your plugin! But I have a problem... I have a MultiWorld plugin (Multiverse) and when the players are on the Creative world, they receive their bonus... But the inventories are not shared from Creative to Survival world... Can I bypass this problem?
I tested with a world permission but when they come in the Survival mode for the first time of the day, they don't receive their bonus...
Thanks for your help :)
Hi there,
I'm interested in your plugin but it doesn't seem to come up on my server. I have not configured it yet (thought the default was fine for testing), but have added dailybonus.tier.1 to my default users. Please check my server output and let me know if I can do something to fix it: http://pastebin.com/zGKH849c
Thanks!
You should add Multi-World Support. That could help, because i have to change permissions for every world and im not even sure if it will work or not...
Getting this error with the newest version with the newest version of craftbukkit.
http://pastie.org/4464824
@itsatacoshop247
OK, I'll do that soon as I re-install the plugin. Thank you
Getting this error in craftbukkit 1.3.1 R-1:
18:43:40 [SEVERE] Error occurred while enabling DailyBonus v3.1 (Is it up to dat e?) java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path; at me.itsatacoshop247.DailyBonus.DailyBonus.firstRun(DailyBonus.java:163 ) at me.itsatacoshop247.DailyBonus.DailyBonus.onEnable(DailyBonus.java:84)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247 ) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:567) at org.bukkit.Bukkit.reload(Bukkit.java:183) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java: 21) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 8) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:4 92) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler. java:878) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Please help?
I just noticed the infinite bonus bug and was about to report it, but you already fixed it. Thanks! :P
Getting this error with the newest version with the newest version of craftbukkit.
http://pastie.org/4464824
@markdf
Get me some more information and then make a ticket and we can try to figure it out.
Make sure to include your config.yml and what permissions plugin you are using in the ticket.
Still getting multiple daily bonus with 3.1. Doesn't happen every log in though.
@jessefjxm
DailyBonus only uses player.getName(), not player.getDisplayName()
I don't know what plugin changes the actual player of the name, but whatever it is, it's bad coding and I will be unable to support it.
It seems that people can change the letter in their names from capital to lowercase to get another Daily Bonus ... permutation and combination .....:(
Version 3.1 fixes a rare but possible infinite bonus glitch we found on my server, make sure to update!
http://dev.bukkit.org/server-mods/dailybonus/files/9-daily-bonus-3-1/
@HockeyMike24
"Caused by: java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path;"
What Java and OS are you on?
Just got this error. With 3.0 and RB 2320.
Thanks for updating! :D
Updated to Version 3.0 with full 1.3.1 support.
@MCmatt42
Link Removed: http://www.mediafire.com/?39qmow8h8lx0ohe
DailyBonus 3.0-Pre
Contains 1.3.1 safe methods, tested a bit. The main change is that each player gets a <name>.yml folder in the DailyBonus/players/ folder, rather than having one massive file of all players. More changes coming tomorrow. Probably going to break old config files.
Has this been updated for 1.3?