Skript Version: 2.2-dev25
Skript Author: Unsure still waiting for more info from lead dev
Minecraft Version: 1.11.2
---
Full Code:
Other Useful Info: We are trying to create a tag request system, I.e a player requests a tag and staff can approve or deny it. We are unsure how to go around storing the requests and making them accessible to staff in game. We do not know if it is possible to call up things stored in a log by way of another skript. Any insight to how we may do this would be greatly apreciated
Addons using (including versions):
SkMorkaz: 0.21
SkQuery: 3.5.5-Lime
skRayFall: 1.9.5
Skript Author: Unsure still waiting for more info from lead dev
Minecraft Version: 1.11.2
---
Full Code:
code_language.skript:
command /reqtag <text>:
description: Request a tag
usage: &6/reqtag <tag>
aliases: /requesttag, /tagrequest, /tagreq
permission: reqtag.command
executable by: players
trigger:
if {reqtag::e::%uuid of player%::tag} is not set:
message "&6Your tag request has been submitted! Tag: &r%arg%"
set {reqtag::e::%uuid of player%::tag} to arg
log "REQUEST: %player% > %arg 1%" to "plugins/TagReq/requests.yml"
log "" to "plugins/TagReq/requests.yml"
stop
else:
message "&6You have a request pending currently! If you wish to cancel it, do: &f/reqtagcancel"
command /reqtagcancel:
description: Cancel a tag request
permission: reqtagcancel.command
executable by: players
trigger:
if {reqtag::e::%uuid of player%::tag} is set:
message "&6Your request has been canceled! Previous Request: &r%{reqtag::e::%uuid of player%::tag}%"
delete {reqtag::e::%uuid of player%::*}
else:
message "&6You don't have a current request!"
command /reqtaglist:
description: List tag requests
permission: reqtaglist.command
executable by: players
trigger:
message "%{reqtag.%requestedname%.tag}% &f- %{reqtag.%requestedtag%.tag}%"
command /tagapprove <offlineplayer>:
description: Approve a tag request
usage: &6/tagapprove <player>
permission: tagapprove.command
executable by: players
trigger:
execute console command "pex user %arg% suffix %{reqtag::e::%uuid of arg%::tag}%"
message "&6Accepted %arg%'s tag &r%{reqtag::e::%uuid of arg%::tag}%"
message "&6Your tag request was accepted! Tag: &r%{reqtag::e::%uuid of arg%::tag}%" to arg
delete {reqtag::e::%uuid of arg%::*}
command /tagdeny <offlineplayer>:
description: Deny a tag request
usage: &6/tagdeny <player>
permission: tagdeny.command
executable by: players
trigger:
message "&6Denied %arg%'s tag &r%{reqtag::e::%uuid of arg%::tag}%"
message "&6Your tag request was denied. Tag: &r%{reqtag::e::%uuid of arg%::tag}%" to arg
delete {reqtag::e::%uuid of arg%::*}
command /tag <offlineplayer> [<text>]:
description: Set a player's tag
usage: &6/tag <player> <tag>
permission: tag.command
executable by: players
trigger:
if arg 2 is set:
message "&6Tag was added to the player."
message "&6Player: &r%arg 1%"
message "&6Tag: &r%arg 2%"
execute console command "pex user %arg 1% suffix %arg 2%"
stop
else:
message "&6Whoops! You don't have a tag set."
message "/tag %arg 1% suffix <tag>"
Other Useful Info: We are trying to create a tag request system, I.e a player requests a tag and staff can approve or deny it. We are unsure how to go around storing the requests and making them accessible to staff in game. We do not know if it is possible to call up things stored in a log by way of another skript. Any insight to how we may do this would be greatly apreciated
Addons using (including versions):
SkMorkaz: 0.21
SkQuery: 3.5.5-Lime
skRayFall: 1.9.5