Inactive [ECON] DailyBonus 3.5 - Get an economy or item bonus once a day! [1.4.2-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by itsatacoshop247, Apr 13, 2011.

  1. Offline

    itsatacoshop247

    Version: v3.5
    Suggested Here
    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).
    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'
    Download Jar
    Source Code.
    See the full change-log here!
    Get Vault here if you are using an Economy plugin!
    Roadmap:
    • Suggest Stuff!
     
    thernztrom, efstajas and AS1LV3RN1NJA like this.
  2. Offline

    Xanxix

  3. Offline

    itsatacoshop247

    Heh, not really, sorry.
     
  4. Offline

    Xanxix

    @itsatacoshop247
    ugh would be to much of a pain to disable and reenable each plugin day by day to see if i get the bonus. is there a way u can add in a 5 min debug option? i have 45 plugins and this is the only one that has any issues as of right now :(
    if there was a debug option say overriding the 24 hr format to every 5 mins it would make this task managable
     
  5. Offline

    itsatacoshop247

    I guess I could add that, usually I just backup the player.dat and delete it for testing.
     
  6. Offline

    Xanxix

    @itsatacoshop247

    well it does give the money and the items when u first log on for the first time but nothing after that :( so deleting the player.dat file wont change anything in my case :(
     
    kahlilnc likes this.
  7. Offline

    kahlilnc

    Hm doesnt seem like this plugin gives them the prices daily only happens the first time they log in. :O
     
  8. Offline

    itsatacoshop247

    Some people are having errors, I'll load a server on a separate computer and force change the system clock for testing tomorrow. I have some other Updates planned for this as well as building against 1.2.5 planned for tomorrow too.
     
    Xanxix and kahlilnc like this.
  9. Offline

    itsatacoshop247

    Version 2.3
    • Switching to different file setup, so just need to change it around one more time :D
    • Fixed the plugin. The method I was using to get the players last login time was apparently not actually working. So sorry about that.
    • Added option to have players wait for the bonus X amount of seconds (option in config)
    Download here!
    I found the massive issue that was causing no bonuses - I didnt test the plugin enough, so sorry. Did a bunch of testing today on this version, so it should be good it go. You can now edit a player's last login time in the players.yml for testing, or simply change 'Logged Early" to true.
     
    Xanxix and kahlilnc like this.
  10. Offline

    Xanxix

    @itsatacoshop247

    great work, keep it up!!!

    works on the true setting now to wait a full 24 hrs for the real test :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  11. Offline

    itsatacoshop247

    If you want, you can change system clock to a day ahead to test it :D
     
  12. Offline

    Xanxix

    mean /time day?
     
  13. Offline

    itsatacoshop247

    No, I mean like changing the computers internal clock. It's quite simple on most OS's if you google it.
     
  14. Offline

    Xanxix

    oh ok i know how todo that XD i was just confused lol
     
  15. Offline

    Me_

    Great Idea,
    I will be testing it out on my server tonight
     
  16. Offline

    Xanxix

    works like a charm, thank you !!!
     
  17. Offline

    itsatacoshop247

    So glad it's working now!
    Cool, let me know if you have any issues!
     
  18. Offline

    robot56

    Would it be possible to have a timed function that would give you money for example every 20 minutes, and customizable w/ specific groups? I've been looking for a plugin like this :)
     
  19. Offline

    itsatacoshop247

    It's possible yes, but not exactly what I had in mind for this plugin. I could add it in un-enabled I guess, since it would only take 2 config lines.
     
  20. Offline

    Jeanzl2000

    Hey taco I was wondering if I have Permissions Bukkit do i need Superperms too.
     
  21. Offline

    itsatacoshop247

    Superperms is a catch all for permissions plugins, so when a plugin says it uses superperms, it means it works with all permission plugins.

    So no, your fine!
     
  22. Offline

    Jeanzl2000

    i feel dumb now :(
     
  23. Offline

    robot56

  24. Offline

    Corez3

    is there a way to make an item list so that a random one will be selected as item bonus each day?
     
  25. Offline

    itsatacoshop247

    Not yet, but In the next update I plan on adding ways to have random amounts and random items. Just gotta figure out how to make it look nice still.
     
  26. Offline

    itsatacoshop247

    Version 2.4
    • Added a command '/DailyBonus Reload' that will reload the config file.
    • Fixed players not getting items if they were logged in between days (so it would save their last time online as the next day even though they hadn't gotten items for that day yet)
    • Fixed an issue where it would not give a player items on the first day of the next year
    • Fixed player not getting items with a full inventory (it now drops at their feet)
    Download Here!

    Version 2.5
    • Fixed an issue with shutting down the server before a player got a delayed bonus
    • Fixed delayed bonus task not starting and stopping correctly (I used the bukkit scheduler wrong at first)
    Download here!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  27. Offline

    itsatacoshop247

    V2.6
    • Fixed bonus being given twice (and a few other not-giving issues, though kinda untested)
    • Added random item amounts (see config info in main post)
    • Fixed Thread Access Errors
    Download
     
  28. Offline

    YoFuzzy3

    Hey, I was wondering what item ID I need to put in if I want DailyBonus to give an item with an external ID. I tried using 373:1;1 which is 1 45s regeneration potion but it gave me an error in the console every time a player logged in and the player only got the economy bonus, not item.

    Code:
    2012-05-07 16:45:46 [WARNING] Task of 'DailyBonus' generated an exception
    java.lang.NumberFormatException: For input string: "373:1"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at me.itsatacoshop247.DailyBonus.DailyBonusItemDelay.run(DailyBonusItemDelay.java:59)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:517)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Hopefully you can help me as this plugin became awesome after you fixed the double bonus bug in V2.6 :)
     

    Attached Files:

  29. Offline

    itsatacoshop247

    Yeah I need to add in the data amounts, will be done in the next version. Need to play around with setting data for potions still, its very oddly done.
     
  30. Offline

    YoFuzzy3

    Ok sounds good and thanks for the quick reply!
     
  31. Offline

    Stragis

    itsatacoshop247 is there no way to exempt certain people from daily bonus? We like using the broadcast feature, but its revealing our staff when they are 'invisible' (apparently not online).
     

Share This Page