Unlocking/Purchasing commands via sign.

Discussion in 'Archived: Plugin Requests' started by Holgate, Feb 20, 2012.

  1. Offline

    Holgate

    Plugin category: Economy?

    Suggested name: CommandPurchase (I'm not very creative :p )

    What I want: Basically, you could purchase permissions with iConomy (Or other economies) off a sign. (Also possibly giving them a one time use?)

    Example : (Multiple use example) Lets say buying you want to buy ability to use MobDisguise, you would go up to the sign, right click the one you want (Which animal/mob you would prefer to be disguised as) And you would pay the fee on the sign, and be given the permissions to use it.

    Example 2 : (One time use example) Lets say your server has 2 factions, (Red and blue) You make your users pick early-on, however, if they want to change later in the game, they could pay the fee, and would be able to use the command once - (Possibly an auto-use of the command after they click the sign would be easier) So if they were on blue, right click the sign, $100 is deducted, and they're changed to red.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions:
    CommandPurchase.create
    CommandPurchase.purchase
    (Dont think you would need anymore, really late right now, though.)

    Willing to pay up to: $0, I do believe this plugin would be quite huge if done correctly.

    When I'd like it by: Anytime within a month really, I've got loads of patience. :)


    Thanks for reading to the end of this. Have any questions about my ideas? Ask away!
     
  2. Offline

    kanda

    I think you can get this working with serversigns (http://dev.bukkit.org/server-mods/serversigns/)

    You can make a sign with the command for your permission system to give the node to the player. The plugin already supports economies through vault.

    So making a sign with /svs <server> pex user <player> add permission.node would be an example for pex. and you can add a cost with /svs setprice 10.

    And you can put any text on the sign itself. It also supports a function for confirmation to make sure the person would really want it.

    As for the faction department. If those are just 2 groups or whatever. you can just create a sign with /svs <server> pex user <player> group set red as an example. and adding the price the same way as before. Also if there is a different command for it you could let these signs handle it as well.

    *might have screwed up some pex commands seeing I did it out of my head*
     

Share This Page