NotKaizo Posted September 15, 2021 Share Posted September 15, 2021 So, since I was bored and had pretty much nothing to do, I created another warp Skript but this time there is more features to it! Features: - Requires Payment (You can now set how much money is required to use the warp!) - Requires Permission (You can set if you want the players to need a permission to use the warp!) It might not work but I don't see anything wrong with the Skript so if there is any errors/problems with it, please let me know and I will fix it. options: #! Permissions create_perm: warp.create # Permission for someone to create warps. use_perm: warp.use # Permission for someone to use the /warp command. delete_perm: warp.delete # Permission for someone to delete warps. command /createwarp [<string>] [<integer>] [<string>]: usage: /createwarp <warp name> <price> <permission: true/false> permission: {@create_perm} trigger: if arg-1 is set: if arg-2 is set: if arg-3 is set: if {warp::%arg-1%} is not set: set {warp::%arg-1%} to location of player set {req::%arg-1%} to arg-2 set {permission::%arg-1%} to arg-3 send "&aSuccessfully create warp &e%arg-1%!" else: send "&cThis warp already exists!" if arg-3 is not set: send "&cPlease state if a certain permission is required for this warp, &etrue/false" if arg-2 is not set: send "&cPlease state the price cost to use this warp! If it's free, put &e0" if arg-1 is not set: send "&cPlease state the warp's name!" function Warp(p: player, w: text, a: integer): if {req::%{_w}%} is set: if {permission::%{_w}%} is true: if {_p}'s balance >= {_i}: if {_p} has permission "warp.%{_w}%": remove {_i} from {_p}'s balance teleport {_p} to {warp::%{_w}%} send "&aTeleporting..." else: send "&cYou do not have permission to use this warp!" to {_p} else: send "&cInsufficient Funds!" to {_p} if {permission::%{_w}%} is false: if {_p}'s balance >= {_i}: remove {_i} from {_p}'s balance teleport {_p} to {warp::%{_w}%} else: send "&cInsufficient Funds!" to {_p} command /warp [<string>]: usage: /warp <warp name> permission: {@use_perm} trigger: if arg-1 is set: if {warp::%arg-1%} is set: Warp(player, arg-1, {req::%arg-1%}) else: send "&cThis warp does not exist!" command /deletewarp [<string>]: usage: /deletewarp <warp name> permission: {@delete_perm} trigger: if arg-1 is set: if {warp::%arg-1%} is set: delete {warp::%arg-1%} delete {req::%arg-1%} delete {permission::%arg-1%} send "&aSuccessfully deleted warp &e%arg-1%!" else: send "&cThis warp does not exist!" Reviews and suggestions are greatly appreciated Owner of play.hiveminez.net ⊱------------------------------⊰ Joined Minehut on 1/28/2021 (Same day I got Minecraft) [VIP] - 3/14/2021 [LEGEND] - 5/27/2021 ⊱------------------------------⊰ Discord - NotKaizo#0001 In-game name - iKaizo_ If you need any help, feel free to contact me. Link to comment Share on other sites More sharing options...
Lapzzo Posted September 15, 2021 Share Posted September 15, 2021 (edited) Noice! It looks like it would work, and I was wondering what you would rate my grapple hook skript. I might try this if I make an smp Edited September 15, 2021 by Lapzzo 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