Buying Permissions With Commands

Discussion in 'Archived: Plugin Requests' started by iWillis, Jul 25, 2014.

  1. Offline

    iWillis

    Plugin category: RANK

    Suggested name: PermBuyC

    What I want: I'd like players to be able to use a command and buy a permission with a simple command. I'd like there to be a config file so that I can configure prices... Here's an example of a config:
    Code:
    Mobs and Permissions
    # Ability-<Name of Sign> (case sensitive)
    # permission: <group/ALL>
    # permissionNode: permission node to give to the player when the sign is purchased
    # Add multiply permissions to one sign by adding ',' after each permission as seen in 'DPack'
    Ability-Rank2:
      permission: All
      permissionNode: kingkits.kits.Slimeman, kingkits.kits.Brewer
     
    Ability-Rank3:
      permission: All
      permissionNode: kingkits.kits.Nightcrawler, kingkits.kits.Yet, kingkits.kits.Acrobat
     
    Ability-Rank4:
      permission: All
      permissionNode: kingkits.kits.Speedster, kingkits.kits.Angel, kingkits.kits.Jumper
     
    Ability-Rank5:
      permission: All
      permissionNode: kingkits.kits.Destroyer
    
    (Config From PermBuy Plugin)
    Something like that. But they need to have the previous rank before they get the next one.

    Ideas for commands: /pbuy <perm> (ex: /pbuy essentials.msg), /pbuy reload (reloads config)

    Ideas for permissions: pbuy.perm (Allows Player To Buy a Permission), pbuy.reload (Allows Operators To Reload Configurations.)

    When I'd like it by: A week or less.
     
  2. Offline

    timtower Administrator Administrator Moderator

    iWillis CommandSigns might be easier for this.
     
  3. Offline

    iWillis

    timtower I need commands because I need to put that into a hologram, and I can't put the sign layout into a hologram.
     
  4. Offline

    au2001

    iWillis Buy it with what? How much? Any permission? etc. please be more precise.
     
  5. Offline

    iWillis

    au2001 Updated, please take another look. This is from another plugin, but you have to use signs with this one. I want one that doesn't require any signs, please. If you could make this it would be greatly appreciated.
     
  6. Offline

    au2001

    iWillis Hmmm might be doing it but I'm really not sure if I would have time :/
    But wouldn't that config fit more the plugin?
    Code:
    # Config File
    
    # The message when a player buys a permission
    broadcast: &9[PBuy] &3{PLAYER} bought the permission &7{PERMISSION}
    
    perms:
      1:
        cost: 200
        permission: Essentials.home.setmultiple
      2:
        cost: 500
        permission: Essentials.warps.bank
      3:
        cost: 2000
        permission: Essentials.home.cooldown.bypass
      4:
        cost: 5000
        permission: Essentials.warps.premium
    
    I think this one would be more adapted to this plugin
    So you have to buy 1 to buy 2 and buy 2 to buy 3 etc.
    And the command would be "/pbuy Essentials.home.setmultiple"
     
  7. Offline

    Syd

  8. Offline

    iWillis

    au2001 I think that looks great! If you could do this I don't know how hard it could be considering I'm only a server owner not a developer. If you have the time it would be greatly appreciated if you could make it.
     
  9. Offline

    Anil235

    It may be easier to install Essentials and CommandSigns, and then use Essentials currency and run all of your commands with CommandSigns. You could subtract money from Essentials, and use your perms plugin to add the permission to the player.
     

Share This Page