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

    chopstick121

    i remove my playername.dat and start the server it didnt work
     
  3. Offline

    itsatacoshop247

    Then something else is wrong. Is permissions setup right? Is the config file setup? Do you have Vault? What version of bukkit? Have you read the entire thread to make sure you are doing stuff right? 90% of the problems people have seem to be solved by just actually reading, just sayin'.
     
  4. Offline

    chopstick121

    i didnt add anything at the permission caz im the owner, i didnt do anything with the config file my bukkit version is 1.2.4

    i got it nvm

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

    itsatacoshop247

    Updated to 2.1!
    • Added some stuff so that players will get items on first join after plugin is loaded no matter what.
    Download!

    Heh, what ended up being the issue? :D

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

    kahlilnc

  7. Offline

    cartmen180

    i have the same problem as above. there are 2 people online and when a third joins the servers ram usage shoots to 100%. When i take out this plugin everything works fine.
     
  8. Offline

    itsatacoshop247

    Damn I have no idea. Line 39 is the line that checks if a player has a certain permissions. What permissions plugins are you using? Maybe they don't like the 'dailybonus.tier.1' stuff. Oh, how many tiers are defined in your config?
     
  9. Offline

    kahlilnc

    THe default. Just edited tier 1. And using PEX.
     
  10. Offline

    itsatacoshop247

    Hmm, I use PEX too and had no issues. Using any other conflicting plugins? I'll put the plugin onto my pub server in a bit to see if I can replicate it.
     
  11. Offline

    kahlilnc

    23:46:59 [INFO] Plugins (50): Orebfuscator, VoxelSniper, ZombieTips, Vault, Multiverse-Core, CapsGuard, ZombieNoJL, Chairs, ExpBank, DisguiseCraft, Heroes, Citizens, WorldEdit, Multiverse-Inventories, FearTheReaper, SignShop, UtilityHats, PermissionsEx, CombatTag, WorldGuard, SignColours, Lottery, iConomy, PluginList, CoreProtect, ReportRTS, BKCommonLib, Lockette, Modifyworld, Herochat, FalseBookCore, CustomCrafting, Ports, Essentials, MobRider, HeroBounty, ServerSigns, Permissions, NoLagg, FalseBookExtra, DeathTpPlus, EssentialsSpawn, OtherDrops, FalseBookBlock, VanishNoPacket, WorldBorder, ecoCreature, SimpleClans, PreciousStones, ZombieInfection
     
  12. Offline

    itsatacoshop247

    Wow, that's a lot. There's one thing I can try, give me a bit to get it together.
     
  13. Offline

    Jeanzl2000

    Hey does this have permissions support because i want to have the Regular people get $100 daily and the supporters $500 daily and maybe the super supporters $1000 so like can you create diferent files so like it would look like this.

    Plugins>DailyBonus>Groups>Group1,Group2,Group3,Group4,Group5 and then the permissions to be so for regulars
    Dailybonus.Group1: true and like we put the ammounts of the money we want to give to a certain group inside the notepad called Group1. I think this would make this the #3 Most download Plugin and #1 and #2 being BOSEconomy and Iconomy because you need them to work. And about Vault how hard is it to install?

    Also can you make the permissions to support posibble instead of superperms? And does this work woith BOSEconomy?

    *with

    Can you add a Taco lottery? every X days a person gets X amount of money.

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

    itsatacoshop247

    Did you even READ the thread? Seriously, I don't even know what you are looking at. And yes, I will be adding random amount things.
     
  15. Offline

    chopstick121

    The permission and how can I make the VIP get more then default ?
     
  16. Offline

    itsatacoshop247

    Give the VIP group the higher Tier, aka 'dailybonus.tier.2' and just edit that to have better items. Seriously, PLEASE spend some time going over the threads main post, it explains EVERY question you have had.
     
  17. Offline

    PixelBurst

    Hey man, great plugin but getting the same memory leak problem as mentioned above. As soon as I start server it goes nuts!

    Plugins: Citizens, Spectate, DCReason, HeroSpawn, Safe Creeper, BKCommonLib, SimpleChestlock, Vault, SignLift, Seasons, PermissionsEX. motd, SmoothRide, TreeAssist. FoundDiamonds, MoneyDrop, Top PVP, Jobs, Dragon Travel, Train Carts, Boseconomy, Modifyworld and chestshop.
     
  18. Offline

    itsatacoshop247

    Noted, thanks. I'm trying to recreate it.
     
  19. Offline

    PixelBurst

    No worries, I'm not some dick here to shout "OMG WHY MY PLUGIN NO WORK?!" I just thought you might like a few more lists of other plugins running along side to help you figure out what's wrong :)

    Hope it goes well, the whole concept sounds like something awesome to reward players with! Great idea man.
     
  20. Offline

    itsatacoshop247

    Yeah, I actually made the original a year ago, but this new version is SO much better.

    And, I FOUND THE ISSUE! I fixed it and a couple others, will have new version and full changelog up in a minute!

    Update! Version 2.2
    • Fixed an issue where the plugin would enter an infinite loop when a player didn't have the highest tier of permissions
    • Fixed an NPE throwing when Vault is not properly installed, now shows the player a warning instead
    • Fixed an issue with the 'Items on First time after loading' system where it would error on trying to add a player to the list.
    • For the above fix, I SUGGEST LETTING THE CONFIG FILE REGENERATE! Just move your current one into a new spot, let a new one generate, then copy/paste the tier info into the new one.
    • Fixed an issue where the custom message would not display when an economy plugin was not being used.
    • Possibly added CraftBukkit UpToDate compatibility, can someone check it for me?
    Download v2.2 here!

    Fixed, had an infinite loop issue I didn't catch on initial testing.

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

    PixelBurst


    Working great man. I'd like to check UpToDate compatibility but I have no idea what that is. I'm running 1.2.4 but I don't know if its the latest build as I current can't get to the alternate version bit of dl.craftbukkit.org, just getting the "500 Bukkit is Holey" error.
     
  22. Offline

    itsatacoshop247

    Craft Bukkit UpToDate is a plugin that will automatically check if other plugins have a new version available, and if they do, it will download them. Cool stuff. I've always been asked to add it into my other plugins.
     
    PixelBurst likes this.
  23. Offline

    Kryssy

    I think im having a special moment but for some reason i cant get it to work that when they log in they get the bonus. I do as an owner but they dont ive added the permission of
    dailybonus.tier.1 up to 3 and tried dailybonus.tier.x but that seems to not be working. any suggestions?
     
  24. Offline

    itsatacoshop247

    Give a break from looking at it, then come back and check the spelling of permissions, check all the config files, and then recheck permissions. And make sure you have DailyBonus 2.2. If you need more help, post your DailyBonus config.yml and permissions config on pastebin.com and I'll help take a look at it.
     
  25. Offline

    itsatacoshop247

    Finally got GitHub working, source code link is in main post for those who want to see it.
     
  26. Offline

    Xanxix

    itsatacoshop247

    i am having the same issue
    my perms
    &
    config.yml

    im really interested on having this plugin work. it worked the first time i logged in and that was 3 days ago :(
     
  27. Offline

    itsatacoshop247

    Craftbukkit version? Lastest DailyBonus version? It looks okay otherwise. any errors in console, and does it say the plugin it loaded?
     
  28. Offline

    Xanxix

    here is a fresh server log

    dailybonus version is 2.2
    craftbukkit version is 1.2.4-R1.0


    no erros other then it doesnt give anything after the first time :(

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

    itsatacoshop247

    Really weird. I'll do some testing with 1.2.4-R1.0 and get back to you.
     
  30. Offline

    Xanxix

  31. Offline

    itsatacoshop247

    1.2.4-R1.0 should be fine. Maybe try making a backup of the server and removing most other plugins, it may be a plugin conflict.
     

Share This Page