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

    itsatacoshop247

    Um, you can just not give them in permissions with a stealth group when they are invisible? Some plugins use a 'isInvisible' hook, and I could cancel the the broadcast if they are invisible. Which plugin are you using?
     
  3. Offline

    Stragis

    VanishNoPacket
    PermissionsEX:
    I think the issue is some of the players in question (me) have a wildcard permission ( - '*'). I am getting the 'default' items (gold netherwart etc) even though there is no tier defined which has such items as a reward. Would you like to see my configs?
     
  4. Offline

    itsatacoshop247

    Yeah I use Pex as well, the '*' or OP gives you all permissions. Try giving '- -dailybonus.tier.*' to the mods and such to stop them from getting rewards.
     
  5. Offline

    Theo647

    i don't understand why it isn't working... I have group manager and i added the node "dailybonus.tier.x". I have Vault but i want to use iConomy to give money to the players, can it work?

    Anyways, here is my config file (on my server, i use it converted into UTF-8 format):

    Code:
    Main;
      Number of Tiers; 5
      Item Give Delay (In Seconds); 0
      Global Message; "&9[CadeauDuJour] &6!playername a obtenu un bonus pour s'etre connecte aujourd'hui!"
      Global Message is Enabled; true
    Tier;
      1;
        Economy Amount; 20
        Message; "&6&4!amount Francs vous ont etes offerts &6pour vous etre connecte!"
        Items;
        - 265;10
        - 17;10
      2;
        Economy Amount; 40
        Message; "&6&4!amount Francs vous ont ete offerts &6pour vous etre connecte!"
        Items;
        - 265;22
        - 266;3
        - 17;12
      3;
        Economy Amount; 125
        Message; "&6&4!amount Francs vous ont ete offerts &6pour vous etre connecte!"
        Items;
        - 266;8
        - 265;30
        - 17;12
        - 264;3
      4;
        Economy Amount; 180
        Message; "&6&4!amount Francs vous ont ete offerts &6pour vous etre connecte!"
        Items;
        - 266;8
        - 265;30
        - 17;12
        - 264;3
        - 306;1
        - 307;1
        - 308;1
        - 309;1
        - 276;1
      5;
        Economy Amount; 225
        Message; "&6&4!amount Francs vous ont ete offerts &6pour vous etre connecte! Jackpot! ;)"
        Items;
        - 266;8
        - 265;30
        - 17;12
        - 264;4
        - 306;1
        - 307;1
        - 308;1
        - 309;1
        - 276;1
        - 347;1
        - 345;1
    The plugin doesn't appear in the console and it isn't red in the plugin list. I don't understand, please, help me :/ I need it for my server... When i join, it doesn't send any message or any items ... like if the plugin wasn't installed.

    Thanks,

    Theo647

    EDIT: i tried to use the config file in the ANSI format and it didn't change anything.
     
  6. Offline

    itsatacoshop247

    Heh, you don't add 'dailybonus.tier.x'. You add 'dailybonus.tier.1' or 'dailybonus.tier.2'. The X signifies the different tiers it could be. SO in your config you have 5 tiers, so the highest players would get 'dailybonus.tier.5' while the noobs/regulars would get 'dailybonus.tier.1'
     
  7. Offline

    Theo647

    Ok i added the node dailybonus.tier.2 for Citizens of my server and i tried to connect as a Citizen, without any op permissions. I wasn't in gamemode and it didn't work. Before my connection, i tried to delete my theo647.dat account and i removed my name from the players list (because i aldready joined the game today) and nothing happened ... I tried to use the default config and nothing happened too ...

    I use iConomy, not Vault... Is it a problem?
     
  8. Offline

    itsatacoshop247

    You need Iconomy and Vault. Also it doesn't use the player.dat anymore, I changed it around. But yeah, Vault is a passive plugin, meaning besides it being loaded, it doesn't do anything besides being a helpful bridge between Economy plugins and plugins like mine.

    So just install Vault and clear the data.yml file (Don't delete it - open and delete the contents) and then you should be good.
     
  9. Offline

    Theo647

    Thanks it works :) nice plugin! and nice support too ;)

    PS: tree assist is a nice plugin too man! :D
     
  10. Offline

    itsatacoshop247

    Hey all, slight delay in the next update, I'm adding optional mySQL support into it for those who want it.

    Thanks for your support!
     
  11. Offline

    spike1985

    Question: If a user is in multiple groups, with different tiers, would the user get bonus from all tiers? or just highest?
     
  12. Offline

    itsatacoshop247

    Just the highest one.
     
  13. Offline

    spike1985

    mhhh. thats bad, because I have general user ranks but users can be in multiple groups as extra if they do additional tasks. "IronAger" is my default group, for example but same time user can be in "Workers". But some workers are in "GoldMember" as well. So I want:
    "IronAger"= get 5 items
    "GoldMember"= get 7 items
    "Worker"=+2 items (users in this group are always in another group as well) so
    Iron+Worker=7
    Gold+Worker= 9

    I think i have to adapt my intended system then.

    :-(
     
  14. Offline

    itsatacoshop247

    Oh, so you WANT them to get all the items? Would a "Give all ranks: true" option in the config work for you?
     
  15. Offline

    spike1985

    cool! One question: Group inheritance, will it be applied as well? or would it give just the items of the groups the user is in? It is just a question of I have to config it.
    Will/Would it be:
    Iron+Worker=Iron+Worker
    Gold(inherits perms from iron)+worker=gold+worker or would it be
    =gold+iron (because of perms inherited)+worker?
     
  16. Offline

    itsatacoshop247

    It would work off default inheritance. So if worker has dailybonus.tier.1 and Gold has dailybonus.tier.1 and inherits worker, then gold would get ranks 1 and 2 etcetcetc.
     
  17. Offline

    spike1985

    Ok. As said, it is just a question of how to config it. Any thought on how much time it needs to implement this?
     
  18. Offline

    MartyComplex

    Hey just pointing out a little typo there. The semi-colon ("x;y") should be a colon ("x:y:").
    I love you and this plugin 4E!
     
  19. Offline

    nappy87

    is it possible to bind the bonus on rightclikin a sign??
     
  20. Offline

    DaEgo

    is it compatible with authme ?
     
  21. Offline

    Oland3

    Hi,I like the plugin but I've got a question: Is it possible to make so all players/admins get money when logged in without using any permissions plugin?
     
  22. Offline

    Oland3

    Okey,so I got a little problem. I downloaded permissionsbukkit and tried to give my players permissions to get money. I tried with some permission nodes but none of them seem to work.
    Here's the nodes I tried to use.

    dailybonus.tier.1
    dailybonus.tier.1: true
    dailybonus.tier.1*: true


    I would really like some help if you know how to do and please let me know if I've done anything wrong.
    I can post my config file if needed.
    I would really like to be able to use the plugin on my server!

    Thx! :)
     
  23. Offline

    Oland3

    Could someone please help me?
     
  24. Offline

    Oland3

    I guess I won't get any help then. It's sad cuz I would really like to use this plugin.
     
  25. Offline

    itsatacoshop247

    Version 3.0
    • Updated to 1.3.1
    • Added option to run commands from console on player bonus
    • Added option for data-values on items
    • Changed it so player data is saved in <playerName>.yml instead of one massive file
    Download: http://dev.bukkit.org/server-mods/dailybonus/files/8-daily-bonus-3-0/

    Do not post here on bukkit.org. please use the ticket system or comments on the devBukkit page for all issues/questions/requests!
     
  26. Offline

    itsatacoshop247

  27. Offline

    ownsyouhard

    One question that anyone here haven´t probably ever asked before about this plugin, what happens if your logs in to the server and you already have a full inventory? Will some items in the inventory be replaced or does you don´t get and dailybonus at all?
     
  28. Offline

    itsatacoshop247

    The items pop out of you and fall to the ground. So the player can pick them up later.
     
  29. Offline

    ownsyouhard

    Nice that you have got that problem fixed. Thanks man for making this plugin it would really help a lot of differnt servers. :cool:
     
  30. Offline

    hadriel

    Is it possible to add a check to see if a player is afk. So if they are trying to get rewarded while being afk they wont?
     
  31. Offline

    Tanite

    Post your permissions file and your config file (use pastebin.com and give us the resulting link).
     

Share This Page