Narratrr Posted August 17, 2021 Share Posted August 17, 2021 # Made By LastMC # Free To Use By Anyone # # PERMISSIONS # # token.give # token.take # token.set # token.reset # # Recomended Permissions To Give To Default Group # # token.pay (let players pay eachother tokens) # token.withdraw # token.balance # token.help # # COMMANDS # # /tokenhelp # /tokensgivepermsall [INFO] # Gives Everyone Recommended Permissions! # Works With Luckperms! # on first join: set {tokens::%player%} to 0 command /tokenhelp: permission: token.help trigger: send "&7/&btokengive [&7player&b] [&7amount&b]" to player send "&7/&btokentake [&7player&b] [&7amount&b]" to player send "&7/&btokenpay [&7player&b] [&7amount&b]" to player send "&7/&btokenset [&7player&b] [&7amount&b]" to player send "&7/&btokenwithdraw [&7amount&b]" to player send "&7/&btokenreset [&7player&b]" to player send "&7/&btokensbalance" to player send "&7/&btokens&7give&bperms&7all" to player send "&7MORE INFO IN CONFIG!" to player command /tokenreset [<offline player>]: permission: token.reset trigger: set {tokens::%arg-1%} to 0 send "&7You Reset &b%arg-1%&7's Tokens To &b0&7!" to player command /tokenbalance: aliases: tokenbal permission: token.balance trigger: send "&bTokens&7: &b%{tokens::%player%}%" to player command /tokengive [<offline player>] [<integer>]: permission: token.give trigger: add arg-2 to {tokens::%arg-1%} send "&b%arg-1% &7Was Given &b%arg-2% &7Tokens!" to player command /tokenpay [<offline player>] [<integer>]: permission: token.pay trigger: if arg-2 is greater than or equal to 1: add arg-2 to {tokens::%arg-1%} remove arg-2 from {tokens::%player%} send "&7You Received &b%arg-2% &7Tokens From &b%player%" to arg-1 send "&7You Payed &b%arg-1% &b%arg-2% &7Tokens!" to player else: if arg-2 is less than 1: send "&7Not Enough Tokens! Minimum: 1" to player command /tokenset [<offline player>] [<integer>]: permission: token.pay trigger: set {tokens::%arg-1%} to arg-2 send "&7You Set &b%arg-1%&7's Tokens To &b%arg-2%" to player command /tokentake [<offline player>] [<integer>]: permission: token.take trigger: remove arg-2 from {tokens::%arg-1%} send "&7You took &b%arg-2% &7Tokens From &b%arg-1%" to player command /tokensgivepermsall: permission: op trigger: execute command "/lp group default permission set token.pay true" execute command "/lp group default permission set token.balance true" execute command "/lp group default permission set token.withdraw true" execute command "/lp group default permission set token.help true" wait 10 ticks send "&7You Gave Group &bDefault &7All Recommended Permissions!" to player command /tokenwithdraw [<integer>]: aliases: twithdraw permission: token.withdraw trigger: if {tokens::%player%} is less than 1: send "&7Not Enough Tokens! Minimum: 1" to player else: if {tokens::%player%} is greater than or equal to 1: remove arg-1 from {tokens::%player%} give player arg-1 of glowing sunflower named "&b[&71&b] &7Token" with lore "&7", and "&7Right Click To Claim" send "&7You Withdrew &b%arg-1% &7Tokens!" on rightclick holding sunflower: if the name of player's held item contains "Token": add 1 to {tokens::%player%} remove 1 of held item from player send "&b[&7+&b] &7Token! &7Balance: &b%{tokens::%player%}%" to player If There Are Any Issues Please Dont Be Afraid To Comment! IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
ItsKirby Posted August 17, 2021 Share Posted August 17, 2021 I suggest using pastebin instead of putting the entire skript here, nice work anyways! Yo who actually reads these [Vip] - 12/29/2020[Pro] - 1/25/2022 Link to comment Share on other sites More sharing options...
Lapzzo Posted August 17, 2021 Share Posted August 17, 2021 does <integer> and <number> do the same thing? Link to comment Share on other sites More sharing options...
FlapKakker Posted August 17, 2021 Share Posted August 17, 2021 no integers only take (0, 1, 2, etc) and numbers can take decimals (1.12;2.1336589; etc) 2 hours ago, Lapzzo said: does <integer> and <number> do the same thing? 2 Link to comment Share on other sites More sharing options...
Lapzzo Posted August 17, 2021 Share Posted August 17, 2021 1 minute ago, FlapKakker said: no integers only take (0, 1, 2, etc) and numbers can take decimals (1.12;2.1336589; etc) Oh pog, ill change all my skripts to only use integer Link to comment Share on other sites More sharing options...
Narratrr Posted August 18, 2021 Author Share Posted August 18, 2021 8 hours ago, FlapKakker said: no integers only take (0, 1, 2, etc) and numbers can take decimals (1.12;2.1336589; etc) I am surprised that i didnt know that seeing as how long ive been doing skript, thought they were the same thing xD. wll be useful to know in the future! thanks 1 IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
emopediaMC Posted August 25, 2021 Share Posted August 25, 2021 On 8/17/2021 at 1:45 PM, LastMC said: # Made By LastMC # Free To Use By Anyone # # PERMISSIONS # # token.give # token.take # token.set # token.reset # # Recomended Permissions To Give To Default Group # # token.pay (let players pay eachother tokens) # token.withdraw # token.balance # token.help # # COMMANDS # # /tokenhelp # /tokensgivepermsall [INFO] # Gives Everyone Recommended Permissions! # Works With Luckperms! # on first join: set {tokens::%player%} to 0 command /tokenhelp: permission: token.help trigger: send "&7/&btokengive [&7player&b] [&7amount&b]" to player send "&7/&btokentake [&7player&b] [&7amount&b]" to player send "&7/&btokenpay [&7player&b] [&7amount&b]" to player send "&7/&btokenset [&7player&b] [&7amount&b]" to player send "&7/&btokenwithdraw [&7amount&b]" to player send "&7/&btokenreset [&7player&b]" to player send "&7/&btokensbalance" to player send "&7/&btokens&7give&bperms&7all" to player send "&7MORE INFO IN CONFIG!" to player command /tokenreset [<offline player>]: permission: token.reset trigger: set {tokens::%arg-1%} to 0 send "&7You Reset &b%arg-1%&7's Tokens To &b0&7!" to player command /tokenbalance: aliases: tokenbal permission: token.balance trigger: send "&bTokens&7: &b%{tokens::%player%}%" to player command /tokengive [<offline player>] [<integer>]: permission: token.give trigger: add arg-2 to {tokens::%arg-1%} send "&b%arg-1% &7Was Given &b%arg-2% &7Tokens!" to player command /tokenpay [<offline player>] [<integer>]: permission: token.pay trigger: if arg-2 is greater than or equal to 1: add arg-2 to {tokens::%arg-1%} remove arg-2 from {tokens::%player%} send "&7You Received &b%arg-2% &7Tokens From &b%player%" to arg-1 send "&7You Payed &b%arg-1% &b%arg-2% &7Tokens!" to player else: if arg-2 is less than 1: send "&7Not Enough Tokens! Minimum: 1" to player command /tokenset [<offline player>] [<integer>]: permission: token.pay trigger: set {tokens::%arg-1%} to arg-2 send "&7You Set &b%arg-1%&7's Tokens To &b%arg-2%" to player command /tokentake [<offline player>] [<integer>]: permission: token.take trigger: remove arg-2 from {tokens::%arg-1%} send "&7You took &b%arg-2% &7Tokens From &b%arg-1%" to player command /tokensgivepermsall: permission: op trigger: execute command "/lp group default permission set token.pay true" execute command "/lp group default permission set token.balance true" execute command "/lp group default permission set token.withdraw true" execute command "/lp group default permission set token.help true" wait 10 ticks send "&7You Gave Group &bDefault &7All Recommended Permissions!" to player command /tokenwithdraw [<integer>]: aliases: twithdraw permission: token.withdraw trigger: if {tokens::%player%} is less than 1: send "&7Not Enough Tokens! Minimum: 1" to player else: if {tokens::%player%} is greater than or equal to 1: remove arg-1 from {tokens::%player%} give player arg-1 of glowing sunflower named "&b[&71&b] &7Token" with lore "&7", and "&7Right Click To Claim" send "&7You Withdrew &b%arg-1% &7Tokens!" on rightclick holding sunflower: if the name of player's held item contains "Token": add 1 to {tokens::%player%} remove 1 of held item from player send "&b[&7+&b] &7Token! &7Balance: &b%{tokens::%player%}%" to player If There Are Any Issues Please Dont Be Afraid To Comment! i suggest using player's uuid since if someone changes their username, they'll lose the data that is saved in those variables Developer Joined Minecraft in 2010 on PC Joined Minehut in August 2016 1 year Skript experience 2 months Java experience 5 months Javascript experience Link to comment Share on other sites More sharing options...
Lapzzo Posted August 25, 2021 Share Posted August 25, 2021 6 minutes ago, emopediaMC said: suggest using player's uuid since if someone changes their username, they'll lose the data that is saved in those variables Will variables lose data, when changing names, if it is not player's uuid? Link to comment Share on other sites More sharing options...
pnguin Posted August 25, 2021 Share Posted August 25, 2021 8 minutes ago, Lapzzo said: Will variables lose data, when changing names, if it is not player's uuid? I think it will save data while changing IGN with uuid of player I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
emopediaMC Posted August 25, 2021 Share Posted August 25, 2021 44 minutes ago, Lapzzo said: Will variables lose data, when changing names, if it is not player's uuid? Yes because it will still be checking for that name, names change, uuid's dont. Developer Joined Minecraft in 2010 on PC Joined Minehut in August 2016 1 year Skript experience 2 months Java experience 5 months Javascript experience Link to comment Share on other sites More sharing options...
zombieman33 Posted November 24, 2022 Share Posted November 24, 2022 (edited) can you add a /tokenshop that people can change? Like maybe add like netherite blocks and stuff like that in the skript. So people can do something with tokens. Edited November 24, 2022 by zombieman33 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now