Premium Vouchers [Paid]

Discussion in 'Resource Discussion' started by BadBones69, Oct 23, 2015.

  1. How to remove these lines

    [​IMG]
     
  2. I've been trying to tinker with this for about an hour now and have finally given up.
    I guess I'm missing something... probably something really simple. What I'm trying to do is offer a shop that sells vouchers that give certain permissions to my players. I'm trying to test it with the /fly command but nothing seems to be working. I imagine it's just the placement of the permission 'essentials.fly' within the config. Or it's something to do with the command '/pex user {username} add essentials.fly'. I can't imagine it has anything to do with anything else... but I could be wrong. Where do I put these in the config because I've tried a bunch of combinations and none seem to work.

    This is what I have now for example:

    Fly:
    Item: '331'
    Name: '&8&l>&7&l>&cFly Voucher&7&l<&8&l<'
    Lore:
    - '&7Use this voucher to get the /fly command.'
    - '&7&l(&6&l!&7&l) &7Right click to redeem.'
    Glowing: true
    Commands: 'pex user {username} add essentials.fly'
    Options:
    Message: '&7Congratulations, you now have the /fly command.'
    Permission:
    Whitelist-Permission:
    Toggle: false
    Node: ''
    Blacklist-Permissions:
    Toggle: false
    Message: '&cYou already have this permission and can''t use this voucher.'
    Permissions:
    Limiter:
    Toggle: false
    Limit: 10
    Two-Step-Authentication:
    Toggle: false
    Sound:
    Toggle: true
    Sounds:
    - 'CLICK'
    Firework:
    Toggle: true
    Colors: 'Black, Gray, Red'

    I just noticed the blacklist is missing the node. I'll have to replace that so people don't keep trying to give themselves fly. lol.
    But what am I doing wrong? It doesn't give fly to anybody. Thank you in advance for your help!
     

  3. {username} => %Player%
     
  4. thank you. :) problem solved
     
  5. Is there anyway to add kits to the commands?
    I did: 'kit kitname {NAME}' and the player doesnt recieve the kit from the voucher!
    Please help!!
     
  6. There is a point in which you can not use the vouchers, theres no erros in console. Basically giving the item and then you are not able to use it.


    Config: The First one is working EntElite but the EntVip it is not working at all.

    Code (Text):
    EntElite:
        Item: '421'
        Name: '    &b» &dRango &c%Arg% &b«    '
        Lore:
          - ' &7&l(&6&l!&7&l) &7Click derecho para reclamar!'
        Glowing: false
        Commands:
          - 'pex user %Player% group set EntElite'
        Options:
          Message: '&7Felicidades, has sido rankeado a &6%Arg%&7'
          Permission:
            Whitelist-Permission:
              Toggle: false
              Node: 'entvip'
            Blacklist-Permissions:
              Toggle: false
              Message: '&cYa tienes este rango! No puedes reclamarlo.'
              Permissions:
                - 'entvip'
          Limiter:
            Toggle: false
            Limit: 10
          Two-Step-Authentication:
            Toggle: true
          Sound:
            Toggle: true
            Sounds:
              - 'CLICK'
          Firework:
            Toggle: true
            Colors: 'Black, Gray, Red'
      EntVip:
        Item: '264'
        Name: '    &b» &dRango &c%Arg% &b«    '
        Lore:
          - ' &7&l(&6&l!&7&l) &7Click derecho para reclamar!'
        Glowing: false
        Commands:
          - 'pex user %Player% group set EntVip'
        Options:
          Message: '&7Felicidades, has sido rankeado a &6%Arg%&7'
          Permission:
            Whitelist-Permission:
              Toggle: false
              Node: 'entvip'
            Blacklist-Permissions:
              Toggle: false
              Message: '&cYa tienes este rango! No puedes reclamarlo.'
              Permissions:
                - 'entvip'
          Limiter:
            Toggle: false
            Limit: 10
          Two-Step-Authentication:
            Toggle: true
          Sound:
            Toggle: true
            Sounds:
              - 'CLICK'
          Firework:
            Toggle: true
            Colors: 'Black, Gray, Red'
     
  7. Sorry about that, that is because of how I coded the %arg% placeholder. Ill be fixing it as soon as I can.

    If anyone else needs help Please PM me because that is where I reply to all PM's I get.
     
  8. I am still having this issue when a player uses a Voucher, I am worried it is affecting performance. Using v1.6.4.1

    https://pastebin.com/y22n996V
     
  9. PM me a pastebin of the config. I reply to all my pm's and not really the discussions.
     
  10. can u guys tell me how to make the voucher work with amount of time then the perms you gived take off ?
     
  11. Having some issues with the plugin. When I enter a rank into the config and reload the server it just gives me an internal error message in game when trying to use any voucher command. This is all I added to the config
    Nomad Rank:
    Item: '339'
    Name: '&6Nomad Rank Voucher'
    Lore: 'Nomad Rank'
    - '&7Use this voucher to get Nomad Rank.'
    - '&7&l(&6&l!&7&l) &7Right click to redeem.'
    Glowing: true
    Options:
    Message: '&7You Have Redeem The Nomad Rank Voucher'
    Permission: false
    Whitelist-Permission:
    Toggle: false
    Node: 'Nomad'
    Blacklist-Permissions:
    Toggle: true
    Message: '&cYou Already Have This Rank!'
    Permissions:
    - 'voucher.blacklist.Nomad'

    Errors in console:
    org.bukkit.command.CommandException: Unhandled exception executing command 'voucher' in plugin Vouchers v1.6.4.1

    06.08 17:16:25 [Server] INFO at me.badbones69.vouchers.Methods.color(Methods.java:61) ~[?:?] 06.08 17:16:25 [Server] INFO at me.badbones69.vouchers.Methods.getPrefix(Methods.java:49) ~[?:?] 06.08 17:16:25 [Server] INFO at me.badbones69.vouchers.Main.onCommand(Main.java:129) ~[?:?]
     
  12. It looks like you missed some lines. If you want to use the command to add the line: "Commands"

    [​IMG]
     
  13. Awesome Plugin just looking at it!
    Planning to purchase very soon!
     
  14. I don't quite understand what the voucher code does lol.
     
  15. This may not be possible but is there a way to make items drop through command or cancel the right click if you do not have 2 free spaces or 1 free space? it's become a problem i've noticed.
     
  16. Hey it seems that once right cicked, it executes the next item on that slot instantly like it's clicking twice. Should be looked into.
     
  17. If I may suggest something you should make it so we can edit the message when we do /vouch :p