Plugin to buy the sun

Discussion in 'Archived: Plugin Requests' started by drsprite, Oct 17, 2011.

  1. Offline

    drsprite

    Hello,

    I'm looking for a quick plugin that creates a new /buysun command which will turn night into day, and rain into sun. All in 1 command.

    When used will charge the user a determine amount of money from iConomy. Then have a cool down period of about 48 hours before they can use it again. Both settable through a config.yml for ease of use.

    I would like a server-based announcement when it starts raining, or when it's dusk time, to announce the usage of BuySun (again, verbiage can be configured in config.yml).

    And when someone uses the /buysun command, announce their name that they bought it (so people can thank them).

    Can anyone help?

    Thanks
     
  2. Offline

    King Rat

    ...You want to buy the sun?
     
    DrAgonmoray and Walker Crouse like this.
  3. Offline

    drsprite

    ..?

    Yeah.

    Charge players to stop rain and end night.
     
  4. Hahah
     
  5. Offline

    King Rat

    It didn't go too well last time Richard Branson tried.
     
  6. Offline

    drsprite

    Even he doesn't have enough money to buy the sun, eh? Blimey :/

    On a serious note, anyone able to help?

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

    drsprite

    Still don't have a dev yet! Anyone available to give it a stab?
     
  8. Offline

    Agil

  9. Offline

    drsprite

  10. Offline

    Agil

    Since it needs permissions, and I dare to say you use bPermissions or PEX or PermissionsBukkit, install SuperPermBridge which will function as a fake Permissions. Add Superpermbridge.<permission for plugin> or Superpermbridge,*

    That should work.
     
  11. Offline

    acuddlyheadcrab

    I could give you some alternative methods? Because personally, i would go to essentials and just add a cost to /weather or /time day . I wouldnt have both in one command, but it would work well enough for me.
     
  12. Offline

    drsprite

    @Agil Still can't get this to work. Yes, we use PEX and I installed SuperPermsBridge. Admin group has * for nodes and superpermsbridge.* as well. When I type /vhelp, or anything Vouchers related I am still getting an error when typing "Unknown Command. Type "help" for help."

    Thoughts?

    I'm curious to hear your alternative methods... Adding a cost to the commands in essentials doesn't allow for a cool down time. I'm also getting Critical errors when I give it a try, so that looks like a no-go as well.

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

    polaris120990

    @drsprite This plugin is very easy to make. If I have time in the midst of my other projects I will quickly whip it up for you.
     
  14. Offline

    drsprite

    I appreciate the help. I figured it was easy, but I lack the programming skills to accomplish it.
     
  15. Offline

    polaris120990

    @drsprite I have this just about done. I just need to know if you wanted to preserve whether or not a player could use the command across server restarts.
     
  16. Offline

    drsprite

    Good question. I would assume yes since our server is on a cron to restart nightly.
     
  17. Offline

    polaris120990

    @drsprite Ok I will add in that and send you a link as soon as it is done.

    @drsprite Sent you a pm with a link and info. Hope you enjoy :).

    EDIT: If anyone else is interested in this plugin I will be releasing it to the general population within a day.

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

    Karlkorv

    Hell yeah! ^^
     

Share This Page