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!
I meant to give a permission as the bonus. For example a person logs in and will receive the permission 'random.permission.node' personaly.
@Aya1379
Could you try re-explaining that? I don't get it.
Hello! All of my server citizens love it. I commented to ask for one simple feature that might save our server, that is giving a permission node as a player logs in. So I can reward players who join In a certain day a certain permission. Please keep up! Thankyou.
Hello! Can you make a tutorial how to change the config file properly? I mean how do you make it work? I would like to work this plugin but I can't work it coz I dont know how to set configs properly :\ on my private server to play with my friends! Thank you have a good day!
Great plugin.
Feature suggestion:
Add the ability for players to automatically progress through tiers by logging in for consecutive days.
Ex. For every 3 days in a row a player logs in, they will go up one tier. If the player does not log in for a day, they drop back to tier 1.
Hello, it's me gomeow.
I will be taking over DailyBonus.
You may see additions in future versions :D
@ElectronTowel
Yes this was a concern of mine not yet addressed - would integration with a plugin like http://dev.bukkit.org/server-mods/mcftprofiler/ work for you? Adding in tracking just for DailyBonus is a bit out of it's scope.
Some server admins might not have thought about this but users might have so called "ALT Accounts" and use them to get free items, maybe you could add a system where they can only get it 1 per day per IP.
I have been waiting for a plugin like this forever. I am so inlove with this plugin
@superboyman
Yes and yes
Does this work with PermissionsEX for example i'm a diamond rank and I logged in and since i'm diamond i should get more money can i do that and make it compatible with the essentials version of Iconemy
YES IT UPDATED
I would love for this to be updated
So if you experience this Kind of Error:
2013-01-29 19:04:16 [SEVERE] Error occurred while disabling DailyBonus v3.5 (Is it up to date?) java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path; at me.itsatacoshop247.DailyBonus.DailyBonus.onDisable(DailyBonus.java:54)
Try my build of this great plugin: https://github.com/xidus/DailyBonus/blob/master/dist/DailyBonus.jar
Sorry guys, meant to reply about this earlier.
Between work, school, and my minecraft server, I really don't have time for my public plugins right now. I also don't really get anything out of making them anymore - my server doesn't use them, I don't get money, I mostly just get people getting angry with me when they can't figure out a config file..
So I will not be doing more updates - I am however looking for someone to take over my plugins (one or all of them), so anyone intrested may contact me, I can just add them as an author to the project.
@CarrotPCdude
3.5 Works fine on 1.4.6 r3 beta... still has the same bug I reported ages ago though (unable to exempt people from daily bonus w/ bpermissions)
Nevermind...
-14.895801919629129, 64.0, 341.54449367010267) 2013-01-05 17:06:43 [SEVERE] Could not pass event PlayerJoinEvent to DailyBonus v3.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_4_6.PlayerList.c(PlayerList.java:156) at net.minecraft.server.v1_4_6.PlayerList.a(PlayerList.java:95) at net.minecraft.server.v1_4_6.PendingConnection.d(PendingConnection.java:130) at net.minecraft.server.v1_4_6.PendingConnection.c(PendingConnection.java:45) at net.minecraft.server.v1_4_6.DedicatedServerConnectionThread.a(DedicatedServerConnectionThread.java:44) at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:29) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: org.bukkit.configuration.InvalidConfigurationException: unacceptable character '' (0x0) special characters are not allowed in "<string>", position 0 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) at me.itsatacoshop247.DailyBonus.DailyBonusPlayerListener.CheckLastLogin(DailyBonusPlayerListener.java:215) at me.itsatacoshop247.DailyBonus.DailyBonusPlayerListener.onPlayerJoin(DailyBonusPlayerListener.java:37) 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:425) ... 14 more Caused by: unacceptable character '' (0x0) special characters are not allowed in "<string>", position 0 at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ... 23 more
@CarrotPCdude
20:24:52 [SEVERE] Error occurred while enabling DailyBonus v3.5 (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:237 ) at me.itsatacoshop247.DailyBonus.DailyBonus.onEnable(DailyBonus.java:90)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java :282) at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.j ava:264) at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:32 1) at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:30 0) at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:25 9) at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java :149) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java: 399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84 9)
@d4rkpow3r
Could you confirm this plugin actually doesn't work for 1.4.6 please? I'm very busy setting up permissions for a new server, and I need to know if this works. Have you actually tried it with the latest beta build of 1.4.6? Thanks, John.
Waiting for an update for 1.4.6! =(
What makes daily bonuses great, is that they give progressive rewards for consecutive days joined. I also request for there to be a new line character.