Kit Coupons not working

Discussion in 'Spigot Plugin Help' started by Thefirewolves, Jun 26, 2018.

  1. Theres no error message or anything. just random right-clicking with no expected result.

    Im using coupons or paperclip 1.12.2, how do I fix this?

    Config file:

    Code (YAML):
    coupons:
        'corporal'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&lCorporal kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        'sergeant'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        'lieutenant'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        'major'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        'colonel'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        'commander'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        '5-star-general'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
        'commander-in-chief'
    :
            item
    :
                type
    : "PAPER"
                data
    : 0
                name
    : "&e&l%coupon% kit &r&7(Right Click)"
                lore
    :
               - "&fRight click to redeem your %coupon% kit!"
            settings
    :
                useLimit
    : false
                limit
    : 5
            actions
    :
           - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
    messages
    :
        noPermission
    : "&cYou do not have the required permissions to perform this action!"
        noPermissionCouppon
    : "&cYou do not have the required permissions to use the %coupon% Coupon!"
        atRedeemLimit
    : "&cYou have reached the redeem limit of %limit% for the %coupon% Coupon!"
        cannotFindCoupon
    : "&cThat Coupon (%coupon%) does not exist!"
        cannotFindPlayer
    : "&cThat Player (%player%) is not online!"
        notANumber
    : "&c%number% is not a number!"
        incorrectSyntax
    : "&cIncorrect usage! Please type /coupons for help!"
        reloadSuccess
    : "&aSuccessfully reloaded the plugin!"
        receivedCoupon
    : "&aYou have received %amount% of the %coupon% Coupon from %sender%"
        gaveAllCoupon
    : "&aYou gave everyone online %amount% of the %coupon% Coupons!"
        gaveCoupon
    : "&aYou gave %player% %amount% of the %coupon% Coupon!"
        help
    :
       - " "
        - "&aCoupons &f- &cBy Gianluca"
        - " "
        - "&c/coupons &f- &aBrings up this message"
        - "&c/coupons list &f- &aLists all of the created Coupons"
        - "&c/coupons reload &f- &aReloads the configuration file"
        - "&c/coupons giveall <coupon> <amount> &f- &aGives everyone online <amount> of the <coupon> Coupon"
        - "&c/coupons give <player> <coupon> <amount> &f- &aGives <player> <amount> of the <coupon> Coupon"
     
  2. DavidDevelops

    Supporter

    First what plugin is this can't help without knowing this?
    second, is it indented properly or was this a pasting error?
    Code (Text):
            settings:
                useLimit: false
                limit: 5
            actions:
            - "[console] pex user %player% timed add essentials.kits.%coupon% ‪86400‬"
            - "[player] kit %coupon%"
            - "[message] &eYou redeemed the kit %coupon%"
            - "[effect] FIREWORK_SHOOT;0"
    First line in "actions" was 1 space behind, the rest
    third what is "not working" iis nothing at all working? and you're sure there is 0 errors? if its a config problem there has to be a error somewhere... send logs of using it and startup maybe?
     
  3. 1. I use the 'coupons' plugin...yes ik very useful but its actually the name. Coupons.jar.
    2. that is a pasting error. I checked and there is nothing like this in the file I pasted from.
    3. nothing at all. rightclick, nothing. I dont even think I can get the startup logs but when I start my server theres no errors pertaining to coupons. Not even joking I cant make this up if I tried.