Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
options:
prefix: &8[&6Server&8]
file: plugins/Skript/SaveFiles/rep.yml
version: 1.1
on join:
if {positiverep::%player's uuid%} is not set:
set {positiverep::%player's uuid%} to 0
if {negativerep::%player's uuid%} is not set:
set {negativerep::%player's uuid%} to 0
if {neutralrep::%player's uuid%} is not set:
set {neutralrep::%player's uuid%} to 0
command /rep [<text>] [<offlineplayer>] [<text>]:
permission: rep.use
permission message: &cNo Permission!
trigger:
if arg-1 is not set:
send "{@prefix} &c/rep help"
if arg-1 is "help":
send "&8&m-------------------------------------"
send "&6/rep give [player] [positive(+);negative(-);neutral] &r- Give a player rep."
send "&6/rep check [optional: player] &r- Check the rep of yourself or another player."
send "&8&m-------------------------------------"
if arg-1 is "give":
if arg-2 is not set:
send "{@prefix} &cSpecify the player!"
stop
if arg-2 hasn't played before:
send "{@prefix} &cUnknown player!"
stop
if arg-2 is player:
send "{@prefix} &cYou can't rep yourself!"
stop
if arg-3 is not set:
send "{@prefix} &cSpecify the type of rep! [positive (+), negative(-), neutral]"
stop
if arg-3 is not "+" or "-" or "neutral" or "positive" or "negative":
send "{@prefix} &cInvalid rep type! [positive, negative, neutral]"
stop
if arg-3 is "+" or "-" or "neutral" or "positive" or "negative":
if arg-3 is "positive" or "+":
set {_rep} to "&apositive"
if arg-3 is "negative" or "-":
set {_rep} to "&cnegative"
if arg-3 is "neutral":
set {_rep} to "&7neutral"
set {_rep2} to convert string arg-3 to lowercase
if yaml list "%player's uuid%" from file "{@file}" doesn't exist:
add 1 to {%{_rep2}%rep::%uuid of arg-2%}
add "%uuid of arg-2%" to yaml list "%player's uuid%" from file "{@file}"
send "{@prefix} &rYou have given &6%arg-2% %{_rep}% &rrep!"
stop
if yaml list "%player's uuid%" from file "{@file}" doesn't contain "%uuid of arg-2%":
add 1 to {%{_rep2}%rep::%uuid of arg-2%}
add "%uuid of arg-2%" to yaml list "%player's uuid%" from file "{@file}"
send "{@prefix} &rYou have given &6%arg-2% %{_rep}% &rrep!"
stop
else:
send "{@prefix} &cYou have already given rep to this player!"
stop
if arg-1 is "check":
if arg-2 is not set:
send "&8&m-------------------------------------"
send "&6%player%'s Rep:"
send "&aPOSITIVE REP&r: %{positiverep::%player's uuid%}%"
send "&cNEGATIVE REP&r: %{negativerep::%player's uuid%}%"
send "&7NEUTRAL REP&r: %{neutralrep::%player's uuid%}%"
send "&8&m-------------------------------------"
if arg-2 is set:
if arg-2 hasn't played before:
send "{@prefix} &cUnknown player!"
stop
send "&8&m-------------------------------------"
send "&6%arg-2%'s Rep:"
send "&aPOSITIVE REP&r: %{positiverep::%arg-2's uuid%}%"
send "&cNEGATIVE REP&r: %{negativerep::%arg-2's uuid%}%"
send "&7NEUTRAL REP&r: %{neutralrep::%arg-2's uuid%}%"
send "&8&m-------------------------------------"
stop
command /repset [<offlineplayer>] [<text>] [<integer>]:
usage: &c/repset <player> <Rep type> <amount>
permission: rep.admin
permission message: {@prefix} &cNot enough permission!
trigger:
if arg-1 is not set:
message "{@prefix} &7Please specify a Player!"
stop
if arg-2 is not "positive" or "negative" or "neutral" or "+" or "-":
message "{@prefix} &7Please specify a rep!"
else:
if arg-3 is not set:
set {%arg 2%rep::%uuid of arg 1%} to 0
message "{@prefix} &7Successfully set &6%arg 1%'s &6%arg 2%&7 rep to 0."
stop
if arg-2 is "positive" or "+":
set {positiverep::%uuid of arg 1%} to arg-3
message "{@prefix} &7Successfully set &6%arg 1%'s &a%arg 2%&7 rep to %arg 3%."
if arg-2 is "negative" or "-":
set {negativerep::%uuid of arg 1%} to arg-3
message "{@prefix} &7Successfully set &6%arg 1%'s &c%arg 2%&7 rep to %arg 3%."
if arg-2 is "neutral":
set {neutralrep::%uuid of arg 1%} to arg-3
message "{@prefix} &7Successfully set &6%arg 1%'s &8%arg 2% &7rep to %arg 3%."