Sueta
GI

GiftWrapper - Player gifts

1.1

Allow your players to wrap any item in their inventory as a gift and give it to others

·Plugin

Notice:
This plugin was created in a matter of an hour for a birthday party on my local server, it should work fine, but I thought I would mention it.
Made for Paper servers, not tested on spigot.

Features:
- Wrap any item in your inventory as a gift and give it to any other player.
- Receive a "gift card" with a message written by the person who gave the gift.
- Ability to add a gift wrap item requirement that you need to have in order to wrap a gift.
- A recipe for the gift wrap item, can be disabled.
- Permission to bypass the gift wrap requirement.

Commands:
- /gw reload - reload the plugin
- /gw giftwrap <player> - give a player a gift wrap item
- /wrap <message> - Wrap the item in your inventory as a gift with a message.

Permissions:
giftwrapper.user - access to /wrap
giftwrapper.admin - access to /gw
giftwrapper.wrap.bypass - bypass the gift wrap requirement

Config:

items:
  gift:
    name: "<blue>Gift"
    material: PAPER
    custom_model_data: 250
    unbreakable: true
    hide_flags: true
    lore: []
  gift_wrap:
    name: "<white>Gift Wrap"
    material: IRON_HOE
    custom_model_data: 160
    unbreakable: true
    hide_flags: true
    lore: []
  gift_card:
    name: "<blue>Gift Card"
    material: PAPER
    custom_model_data: 251
    unbreakable: true
    hide_flags: true
    lore: []

gift_wrap_recipe:
  enabled: true
  shape:
    - "XBX"
    - "BSB"
    - "XBX"
  materials:
    - "X:PAPER"
    - "B:STRING"
    - "S:WHITE_DYE"


messages:
  plugin-reload: "<green>GiftWrapper was reloaded."
  command-deny-access: "<red>You do not have access to this command."
  missing-argument-command: "<red>Missing arguments: <command>"
  target-does-not-exist: "<red>Targeted player either does not exist or they are not online."
  target-no-inventory-space: "<red>The targeted user does not have enough space."
  player-no-inventory-space: "<red>You need at least one free slot in your inventory to unwrap a gift."
  no-gift-wrapping: "<red>You do not have any gift wrapping in your inventory to wrap a gift..."
  wrapping-air: "<red>You can't wrap air..."
  wrapping-success: "<green>You wrapped the item as a gift. Yay!"
  unwrapping-success: "<green>You unwrapped a gift!"
  main-command-help:
    - "<gray>GiftWrapper Admin Command list:"
    - "<gold>/gw reload <gray>- Reload the config files"
    - "<gold>/gw giftwrap <player> <gray>- Give a player a gift wrapper"
  wrap-command-help:
    - "<gray>Gift User Command list:"
    - "<gold>/wrap <message> <gray>- Wrap an item as a gift with a message."

Similar projects

Plugin →