[ADMN/MISC] ButtonControl v3.0 - Control the weather/time with buttons [Vault] [1531]

Discussion in 'Inactive/Unsupported Plugins' started by Johni0702, May 27, 2011.

  1. Offline

    Johni0702

    ButtonControl
    v3.0
    BukkitDev (download here)



    As of the fact i recoded the whole datastructure of the plugin, all configfiles before 3.0 are NOT compatible with newer versions!


    A simple plugin to control the weather or time with buttons. Your servervisitors can switch the weather and time for free or for items (Vault economy is supported too). You can use Buttons or Pressure Plates. I´ll include new things too, simple write it in the comments.

    Features:
    • Control weather or time using buttons
    • Control weather or time can cost something
    • You can use (Stone) Pressure Plates too
    • All messages can be modified
    • Vault economy support
    • MultiWorld
    • BukkitPermissions support
    • Cooldown
    How to set buttons:

    The command depends on wheather Vault is installed or not.
    With Vault (open)

    1.type (buttoncontrol.set Permission needed)
    "/buttoncontrol <sunny/rain/thunder/day/night> <Money> <Receiver>"
    or
    "/bc <sunny/rain/thunder/day/night> <Money> <Receiver>"

    <Receiver> is the person who gets the money whenever some uses the button/pressureplate

    Without Vault (open)


    1.type (buttoncontrol.set Permission needed)
    "/buttoncontrol [sunny/rain/thunder/day/night] <amount> <item>"
    or
    "/bc [sunny/rain/thunder/day/night] <amount> <item>"


    2.You´ll get a message "Press a button!"
    3.Do what the message says.
    Press the button/pressure plate which should become the rain/thunder/stop/day/night button.
    4.If you get an other message, the creation was succesfull

    How to remove buttons:
    Destroy them ingame and they´r gone. (if you have permission to do so)

    How to use buttons:
    1(only without Vault).Take the required items in your inventory.
    2.Click the button./Walk on the pressure plate.
    3.You get a message and your "money" was take away
    4.Look at the sky -> the weather/time changed

    Permissions:
    To set Buttons: buttoncontrol.set
    To destroy Buttons : buttoncontrol.destroy
    To use buttons:
    -day: buttoncontrol.time.day
    -night: buttoncontrol.time.night
    -sunny: buttoncontrol.weather.sunny
    -rain: buttoncontrol.weather.rain
    -thunder: buttoncontrol.weather.thunder

    Configuration:
    Default conig file:
    Code:
    Cooldown: 0 //time in sec you have to wait befor an button can be pressed again
    Buttons: []          //DO NOT CHANGE ANYTHING HERE (exept you know what you do)
    Duration:              //how long the changed weather MUST be in secounds(if not changed again)
        thunder: 10
        rain: 10
        sun: 10
    messages:  //a lot of configurable messages
        ...
        ...
    
    Github

    Todo:
    • Add iConomy support(Vault)
    • Add permissions support
    • Add Essentials support(Vault)
    • Add MultiWorld support
    • Search bugs
    • Fix bugs
    • Add BOSEconomy support(Vault)
    • You can set the money for every button different
    • add an account that earns money when a player pushs an button
    • add an cooldown
    Changelog:

    v 3.0:
    • Recoded the inner data structure of the plugin
    • Updated to new Listener API
    • Updated to BukkitPermissions
    • Added Vault support instead of only iConomy
    v 2.3:
    • Added an Cooldown
    • Added an account that earns money if an player pushs an button
    • fixed "No Permissions" message
    Older Changes (open)

    v 2.2:
    • Addded Permissions support (thx to flames)
    • Fixed: If a button is free , now you can hold anything in your hand
    • Fixed: All the time MultiWorld didn´t work
    v 2.1.1:
    • Fixed Bug: iConomy takes one prize even if the buttons have all different
    v 2.1:
    • All buttons can cost different
    v 2.0:
    • Renamed the plugin from "ButtonWeather" to "ButtonControl"
    • Added: control time by buttons/pressure plates
    • fixed one very little bug
    v 1.5.2:
    • fixed bug again: changed messages didn´t load from the config
    v 1.5.1:
    • fixed bug: changed messages didn´t load from the config
    v 1.5:
    • fixed bug: if you hold the exact amount of money it won´t disapear
    • added Pressure Plates support
    • fixed bug: if you break an button and anyone (without he´s OP) place it again, the button works
    v 1.4:
    • all messages can be changed in the config now
    v 1.3:
    • now you haven´t to take the EXACT amount of money in your hand
    v 1.2.3:
    • fixed error if klick in the air
    v 1.2.2:
    • fixed an bug in the savesystem that saved the count of the stop/thunder buttons wrong
    v 1.2.1:
    • fixed an bug on the stormbutton
    • fixed an bug in the savesystem
    v 1.2:
    • added MultiWorld support
    • fix a lot of bugs
    • now unlimited buttons can be set
    • changed weather is now longer (configurable)
    v 1.1:
    • added iConomy support
    v 1.0:
    • Main plugin
     
    nicoxxl, vrox and Lolmewn like this.
  2. Offline

    Draconicus

    Seems quite broken now.

    Any price I try to set in 2.1 for a button becomes the price for all buttons, despite what the config says.
     
  3. Offline

    Johni0702

    did you delete your config before updateing?
    set "amount" in the config will not change anything. i simple forget to remove it
    if the problem is still there after you delete the config and restart the server please post your config.
     
  4. Offline

    Draconicus

    I've got a fresh config in now, but I'm still having trouble.

    Your new design lets use make a button with a cost, right? A different price for every button?
    This is my problem (iConomy):

    1. Create day button that costs 5
    2. Create clear-skies button that costs 1
    3. Test the day button
    4. Only 1 is removed from iConomy money.

    Whatever I set last becomes the price for every button.
     
  5. Offline

    Johni0702

    that´s possible because i don´t test EVERY version of the plugin with iconomy. i will look if i can find the problem
     
  6. Offline

    Draconicus

    It doesn't seem to be something specific to iConomy. I'm just mentioning iConomy.
    What's happening is that if you set 10 buttons with different prices, the last button will change the price for all 10 buttons. I assume they're meant to have different prices. All buttons always have the same price for me - whatever price I set last.
     
  7. Offline

    Johni0702

    it IS because of iConomy. on the Parts in the code where the money (iConomy-Money) should taken away from the user, i used the same variable every time instead of using the price for the button the user clicked.
    with v2.1.1 it should work
     
  8. Offline

    Draconicus

    Whoops! I thought it might be something like that.
    Thanks a lot for the fix. :)
     
  9. Offline

    Lhjnhnas

    The button is still there, everything is still there, just my cost has been erased.
    b860
    v2.0
    And both my server providers editor and my textedit.
     
  10. Offline

    Johni0702

    1. Update to 2.1
    2. In this version your problem can´t happen because every button can cost different and you don´t have to set it in the config
     
  11. Offline

    Underkover

    When i try to make it free I still need to hold the redstone?
     
  12. Offline

    Johni0702

    i think you hate to hold the thing you hava written in your config but nothing will taken away. if you want not to have hold anything in your hand set the item to 0 but than nothing can cost anything. will change this soon
     
  13. Offline

    Underkover

    I've changed it to amount: 0 and item: 0 but now it says "You don't have enought money" all the time :S
     
  14. Offline

    Johni0702

    i don´t know your version of the plugin but since 2.1 to make a button free to these steps:
    (1. If you had an older version please delete your config)
    2.change the config to item: 0
    3.go ingame and type "/buttonrain 0"
    4.press a button
    The "amount: 5" in the config won´t do anything. I forgot to remove them.
     
  15. Offline

    Underkover

    I had done all that but i notice now that after i changed the config to 0 i must make a new "/buttonday" :p
    thanks
    really like this plugin :)
     
  16. Offline

    Joeyderijk

    How do i Install this one? :$
     
  17. Offline

    Johni0702

    1. move the ButtonControl.jar form the ButtonControl.zip into your plugins folder
    2.restart the server
    3.nothing more
    4.didn´t you read 3. there is nothing more
    5. see 4.
     
  18. Offline

    Joeyderijk

    huh? i saw a meta inf folder, a me (?) folder and a plugin.yml :S
     
  19. Offline

    Tehminecraft97

    Great plugin, love it! ;D ;)
     
  20. Offline

    Johni0702

    If you downloaded from File-Upload you got a ButtonControlv2.2.zip. In the .zip folder is a ButtonControl.jar.
    Move the ButtonControl.jar into your plugins folder.
    If you downloaded from DropBox (the secound link in the threat) you got the ButtonControl.jar.
    Move the ButtonControl.jar into your plugins folder.
    But don´t open the ButtonControl.jar. It is the plugin, there´s nothing inside you have to take out. So DON´T OPEN IT.
     
  21. Offline

    Inf

    I would love to see a cooldown on these. Onbig servers its a problem if ppl can change it every 2 sec... a configurable CD would be the best!

    Btw, nice plugin!
     
  22. Offline

    fsmain

    how do i control which iConomy account the proceeds go to? didn't find that option anywhere, would be great if it were possible to give the money to our "city" account. Really great plugin though, at first thought of making one myself but seeing this was already here ;) huge thanks!
     
    sbeex likes this.
  23. Offline

    ThaRebel

    Awesum, can i ask you if you can put players that push buttons put in certain groups? would be awesum!
     
  24. Offline

    Johni0702

    sorry but i didn´t understand what you mean (maybe because my english is not very good).
    do you mean something like permissions?

    will add this with the next version i hope :)

    no account will get the money the plugin eats it alone.
    but i think i´ll add this feature with the next version

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

    fsmain

    that'd be really cool, thx :)

    nebenbei, woher aus deutschland kommst? raum stuttgart hier ;)
     
  26. Offline

    Johni0702

    nähe Nürnberg,Bayern
     
  27. Offline

    Linkage

    This is exactly what I need, but do you think you could add BOSEconomy support?

    EDIT: Also, your download is broken.
     
  28. Offline

    Johni0702

    Will take a look at BOSEconomy.

    will fix the link thx for report ;)
    but my other dowloadlink worked all the time :p
     
  29. Offline

    BloodyDie

    Awsome Plugin !!!
    I'm Use This !!!
     
  30. Offline

    matiyarosz

    I can't download from this link. Please help me
     
  31. Offline

    Johni0702

    sorry instead i fixed it i broke that linke too :oops:
    try it again, now it works
     

Share This Page