Sueta

SimpleCoupons

1.7

Get items with custom rewards!

·Plugin



Fully customizable!
Custom commands reward!
Custom messages reward!
Custom items reward!
Custom money reward!
Custom XP reward!
Custom permission per coupon!
Specific amount of uses per coupon!
In-game configuration!
Custom model data support!

Screenshots












/simplecoupons - Main command.
/sc list - Open GUI list menu.
/sc get <coupon-name> <amount> - Get entered coupon.
/sc give <coupon-name> <player> <amount> - Give entered coupon to another player.
/sc edit <coupon-name> - Edit rewards, item, and more in entered coupon.
/sc delete <coupon-name> - Delete entered coupon.
/sc create <coupon-name> - Create a coupon with the entered name.
/sc reload - Reload messages, config, and coupon files.
/sc help - Show command list.
/sc version - Show plugin version.

simplecoupons.admin - Access to all commands.
simplecoupons.get - Access to /sc get command.
simplecoupons.give- Access to /sc give command.
simplecoupons.list - Access to /sc list command.
simplecoupons.edit - Access to /sc edit command.
simplecoupons.delete - Access to /sc delete command.
simplecoupons.create - Access to /sc create command.
simplecoupons.reload - Access to /sc reload command.
simplecoupons.help - Access to /sc get command.

config.yml
menu:
  list:
    title: "Coupon List"
    rows: 1
    items:
      fill:
        material: GRAY_STAINED_GLASS_PANE
        display-name: "&f"
      close:
        material: BARRIER
        display-name: "&cClose menu"
        lore:
          - '&f'
          - ' &f- &7Left Click to close menu'
      information:
        material: PAPER
        display-name: "&6Information"
        lore:
          - '&f'
          - ' &f» &aCoupons: &2%coupons_amount%'
      coupon:
        material: MAP
        display-name: "&9%coupon_name%"
        lore:
          - '&f'
          - ' &f» &aMoney: &2%coupon_money%'
          - ' &f» &aXP: &2%coupon_xp%'
          - ' &f» &aItems: &2%coupon_items%'
          - ' &f» &aMessages: &2%coupon_messages%'
          - ' &f» &aCommands: &2%coupon_commands%'
          - '&f'
          - ' &f- &7Left Click to get coupon'
          - ' &f- &7Right Click to edit coupon'
      next-page:
        material: ARROW
        display-name: "&6Next page"
      previous-page:
        material: ARROW
        display-name: "&6Previous page"
        lore:
          - '&f'
          - ' &f- &7Left Click to g'
  edit:
    title: "Editing coupon"
    items:
      close:
        material: BARRIER
        display-name: "&cClose"
        lore:
          - "&f"
          - " &f- &7Left Click to close menu"
      delete:
        material: REDSTONE_BLOCK
        display-name: "&4Delete Coupon"
        lore:
          - "&f"
          - " &f- &7Left Click to delete coupon"
      money:
        material: GOLD_INGOT
        display-name: "&6Change money reward"
        lore:
          - "&f"
          - " &f» &aActual reward: &2%coupon_money%"
          - "&f"
          - " &f- &7Left Click to change amount"
      xp:
        material: EXPERIENCE_BOTTLE
        display-name: "&6Change XP reward"
        lore:
          - "&f"
          - " &f» &aActual reward: &2%coupon_xp%"
          - "&f"
          - " &f- &7Left Click to change amount"
      items:
        material: CHEST
        display-name: "&6Change item rewards"
        lore:
          - "&f"
          - " &f» &aActual amount: &2%coupon_items%"
          - "&f"
          - " &f- &7Left Click to change items"
      messages:
        material: PAPER
        display-name: "&6Change reward messages"
        lore:
          - "&f"
          - " &f» &aActual amount: &2%coupon_messages%"
          - "&f"
          - " &f- &7Left Click to add message"
          - " &f- &7Right Click to change position"
      commands:
        material: COMMAND_BLOCK
        display-name: "&6Change reward commands"
        lore:
          - "&f"
          - " &f» &aActual amount: &2%coupon_commands%"
          - "&f"
          - " &f- &7Left Click to add command"
          - " &f- &7Right Click to change position"
  items:
    title: "Put all item rewards"
  texts-menu:
    title: "Editing &o%path%"
    rows: 1
    items:
      messages:
        material: PAPER
        display-name: "&6%message%"
        lore:
          - "&f"
          - " &f- &7Left Click move to left"
          - " &f- &7Middle Click to delete"
          - " &f- &7Right Click move to right"
      commands:
        material: COMMAND_BLOCK
        display-name: "&6%command%"
        lore:
          - "&f"
          - " &f- &7Left Click move to left"
          - " &f- &7Middle Click to delete"
          - " &f- &7Right Click move to right"
  delete:
    title: "Delete coupon?"
    items:
      coupon:
        material: MAP
        display-name: "&9%coupon_name%"
        lore:
          - '&f'
          - ' &f» &aMoney: &2%coupon_money%'
          - ' &f» &aXP: &2%coupon_xp%'
          - ' &f» &aItems: &2%coupon_items%'
          - ' &f» &aMessages: &2%coupon_messages%'
          - ' &f» &aCommands: &2%coupon_commands%'
      confirm:
        material: GREEN_WOOL
        display-name: "&aDelete Coupon"
        lore:
          - "&f"
          - " &f- &7Left Click to confirm"
      cancel:
        material: RED_WOOL
        display-name: "&cCancel"
        lore:
          - "&f"
          - " &f- &7Left Click to cancel"
messages.yml
reload: "&aSimple&2Coupons &8> &aAll files has been reloaded successfully."
no-permissions: "&aSimple&2Coupons &8> &cSorry, you dont have permissions to do that."
insufficient-args: "&aSimple&2Coupons &8> &cCorrect usage for this command is &7/%usage%&c."
help:
  - " &8> &aSimple&2Coupons&f commands information."
  - ""
  - " &8> &6/sc get: &7Get an specified coupon."
  - " &8> &6/sc give: &7Give an specified coupon to another player."
  - " &8> &6/sc create: &7Create coupon."
  - " &8> &6/sc edit: &7Edit coupon by GUI."
  - " &8> &6/sc delete: &7Delete coupon."
  - " &8> &6/sc list: &7Show coupons."
  - " &8> &6/sc reload: &7Reload plugin files."
  - " &8> &6/sc help: &7Show information about commands."
  - " &8> &6/sc version: &7Show plugin version."
edit:
  chat: "&aSimple&2Coupons &8> &aYou are now editing &f%path%&a please enter &f%value%&a. Press &oShift &ato cancel that action."
  item: "&aSimple&2Coupons &8> &aYou are now editing &f%path%&a please &oRight Click &aon &f%value%&a. Press &oShift &ato cancel that action."
  deleted: "&aSimple&2Coupons &8> &f%coupon_name% &ahas been deleted."
coupon:
  already-exist: "&aSimple&2Coupons &8> &cEntered coupon already exist!"
  invalid: "&aSimple&2Coupons &8> &cThe coupon entered does not exist."
  list:
    header: "&aSimple&2Coupons &8> &fPage %actual_page%/%max_pages%"
    listed: " &8> &6%coupon_name%"
Example.yml
item:
  material: "PAPER"
  display-name: "&eSuper Coupon"
  lore:
    - "&7"
    - "&eRewards:"
    - "  &b*&a500 XP"
    - "  &b*&a1000 $"
    - "  &b*&aDiamond Sword x1"
rewards:
  xp: 500
  money: 1000
  messages:
    - "&6Hello %player%!"
    - "&2You claimed the example coupon!"
  commands:
    - "say %player% is amazing!"
    - "time set day"
  items:
    '0':
      material: "DIAMOND_SWORD"
      display-name: "&eExample Sword!"
      lore:
        - "&f"
        - "&6Epic!"
    '1':
      material: "DIAMOND"
      display-name: "&eExample Diamond!"
      lore:
        - "&f"
        - "&6Epic 2!"



Special thanks to NBT API

Similar projects

Plugin →