Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for virtual vouchers #15

Open
goflishMC opened this issue Jan 9, 2022 · 0 comments
Open

Add support for virtual vouchers #15

goflishMC opened this issue Jan 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@goflishMC
Copy link

goflishMC commented Jan 9, 2022

Add a new file: virtualvouchers.yml

This new file will log players vouchers by their UUID/name

All messages need to be added to the language.yml

New Commands

#This will check the voucher file and run the list of commands for this voucher and also check the permissions listed for this voucher
#Just FYI The permissions section in the voucher file supports using a permission like "-permission.node"
#If the permission is negated then IF the player has the permission already, then the voucher will not execute and it will not remove it from the players vouchers list
#The permission section supports multiple permission checks
OP/Console Command: /pmcu items voucher virtual  

# This will show the list of the players vouchers in chat
Player Command: /pmcu vouchers list

# This will redeem the voucher for the player if the permission condtions of the voucher  are met
Player Command: /pmcu vouchers redeem ID

# A player can initiate a trade that checks their virtual voucher list
# Send message to other player letting them know a voucher trade request as been initiated
# Send message to the player that initiated the trade, "You sent a trade request to "
# Set timeout for the trade request in seconds to 30 seconds
#After the trade timeout ends, notify both parties that the trade request timed out.
Player Command: /pmcu vouchers trade ID  [$amount]  

# This allows a player to accept a trade
# If the player accepts, notify both players, "You accepted the trade request!" and "Trade request was successful.  accepted your trade request."
Player Command: /pmcu vouchers accept
# List to show in chat when using /pmcu vouchers list
# Formatting for this list should be added to the language file
ID Voucher1 
ID Voucher2 
@goflishMC goflishMC added the enhancement New feature or request label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants