commands without perms

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

DerpyDave_

Member
Jan 28, 2021
2
0
1
hey im making a skyblock skript an dim want to add a worldborder to it, is there a way to make players execute the command /worldborder without having the command?


my skript right now:

command /removeisland <player>:
permission: island.remove
trigger:
send "&cisland removed"
delete {hasisland.%arg-1's uuid%}
console command "/mv delete sb%arg-1%"
wait 5 ticks
console command "/mvconfirm"

options:
prefix: &6&lDerped&b&lSky &8&l-

on join:
if {hasisland.%player's uuid%} is not set:
set {hasisland.%player's uuid%} to "false"

command /island <text> [<player>]:
aliases: /is
trigger:
if arg-1 is equal to "create":
if {hasisland.%player's uuid%} is equal to "false":
open virtual chest inventory with size 3 named "&2&lIsland Creation" to player
format gui slot 10 of player with lime wool named "&aEasy Mode" to close:
send "&6&lDerped&b&lSky &8&l- &cThis mode isn't available!"
format gui slot 13 of player with orange wool named "&6Normal Mode" to close:
send "{@prefix} &aCreating your &6normal &aisland..."
wait 5 ticks
console command "/mv clone sbtemplatenormal sb%player%"
set {isname::%uuid of player%} to "sb"
add player to {isname::%uuid of player%}
set {isname::%uuid of player%} to "sb"
add player to {isname::%uuid of player%}
send "{@prefix} &aIsland created!"
console command "/mvtp %player% sb%player%"
set {hasisland.%player's uuid%} to "true"
set {bordersize.%player's uuid%} to 30
format gui slot 16 of player with red wool named "&cHard Mode" to close:
send "{@prefix} &aCreating your &chard &aisland..."
wait 5 ticks
console command "/mv clone sbtemplatehard sb%player%"
send "{@prefix} &aIsland created!"
console command "/mvtp %player% sb%player%"
set {hasisland.%player's uuid%} to "true"
set {bordersize.%player's uuid%} to 30
else if {hasisland.%player's uuid%} is equal to "true":
send "{@prefix} &cYou already have an island!"
else if arg-1 is equal to "delete":
if {hasisland.%player's uuid%} is equal to "true":
open virtual chest inventory with size 3 named "&c&lDELETE CONFIRMATION" to player
format gui slot 11 of player with lime wool named "&aConfirm" to close:
send "{@prefix} &aDeleting &aIsland..."
wait 1 ticks
console command "/mv delete sb%player%"
wait 5 ticks
console command "/mv confirm"
send "{@prefix} &aIsland &aDeleted&a!"
set {hasisland.%player's uuid%} to "false"
format gui slot 15 of player with red wool named "&cCancel" to close:
send "{@prefix} &cCanceled Deletion!"
stop
else if {hasisland.%player's uuid%} is equal to "false":
send "{@prefix} &cYou don't have an island! Create one with &6/is create&c!"
else if arg-1 is equal to "go" or "home":
if {hasisland.%player's uuid%} is equal to "true":
send "{@prefix} &aTeleporting..."
wait 1 tick
console command "/mvtp %player% sb%player%"
else if {hasisland.%player's uuid%} is equal to "false":
send "{@prefix} &cYou don't have an island! Create one with &6/is create&c!"
else if arg-1 is equal to "border":
if {hasisland.%player's uuid%} is equal to "true":
open virtual chest inventory with size 3 named "&b&lBORDER" to player
format gui slot 10 of player with light blue stained glass named "&a&l+5 &bBorder Size" with lore "&2Price: &a$100K" to run:
if {money::%player's uuid%} is greater than or equal to 100000:
make player execute command "/is go"
execute player command "/worldborder add 5 10"
remove 100000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
format gui slot 11 of player with light blue stained glass named "&a&l+10 &bBorder Size" with lore "&2Price: &a$200K" to run:
if {money::%player's uuid%} is greater than or equal to 200000:
make player execute command "/is go"
execute player command "/worldborder add 10 10"
remove 200000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
format gui slot 12 of player with light blue stained glass named "&a&l+20 &bBorder Size" with lore "&2Price: &a$400K" to run:
if {money::%player's uuid%} is greater than or equal to 400000:
make player execute command "/is go"
execute player command "/worldborder add 20 10"
remove 400000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
format gui slot 13 of player with light blue stained glass named "&a&l+50 &bBorder Size" with lore "&2Price: &a$1M" to run:
if {money::%player's uuid%} is greater than or equal to 10000000:
make player execute command "/is go"
execute player command "/worldborder add 50 10"
remove 1000000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
format gui slot 14 of player with light blue stained glass named "&a&l+100 &bBorder Size" with lore "&2Price: &a$2M" to run:
if {money::%player's uuid%} is greater than or equal to 2000000:
make player execute command "/is go"
execute player command "/worldborder add 100 10"
remove 2000000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
format gui slot 15 of player with light blue stained glass named "&a&l+250 &bBorder Size" with lore "&2Price: &a$5M" to run:
if {money::%player's uuid%} is greater than or equal to 5000000:
make player execute command "/is go"
execute player command "/worldborder add 250 10"
remove 5000000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
format gui slot 16 of player with light blue stained glass named "&a&l+1000 &bBorder Size" with lore "&2Price: &a$20M" to run:
if {money::%player's uuid%} is greater than or equal to 20000000:
make player execute command "/is go"
execute player command "/worldborder add 1000 10"
remove 20000000 from {money::%player's uuid%}
else:
send "&cYou don't have enough money to buy that!"
 
You could Tell Skript to set a world border.
Also Please use the Code box:

upload_2021-1-29_11-54-17.png


upload_2021-1-29_11-54-41.png


upload_2021-1-29_11-55-3.png
 
Status
Not open for further replies.