So, using this code
I want the /shrinksize to be doubled from the argument. As in, if the argument is "1000", I want the shrinksize to be "2000". However, it doesn't do that, it just subtracts the first argument by 2. Any help? (There are no errors in console, it's just being weird with the multiplication.)
code_language.skript:
options:
P: &8[&bServer&8]
command /createworld <integer>:
permission: skript.op
usage: /createworld <radius>
trigger:
if arg 1 is a number:
execute console command "/mvdelete UHC"
broadcast "&a%command sender% &7is deleting the previous UHC world!"
wait 5 real seconds
execute console command "/mvc UHC normal"
broadcast "&a%command sender% &7is creating a new UHC world!"
wait 5 real seconds
make player execute command "/mvtp UHC"
message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
wait 15 real seconds
make player execute command "/shrinkcenter"
make player execute command "/shrinksize %arg 1 * 2%"
message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
wait 15 real seconds
make player execute command "/wb UHC set %arg-1+1% %arg-1+1% 0 0"
message "&cLetting the server rest for a while. Waiting 15 seconds...." to command sender
wait 15 real seconds
if arg-1 is 1000:
make player execute command "/pregen UHC %arg-1+1% 100"
if arg-1 is 1500:
make player execute command "/pregen UHC %arg-1+500% 100"
I want the /shrinksize to be doubled from the argument. As in, if the argument is "1000", I want the shrinksize to be "2000". However, it doesn't do that, it just subtracts the first argument by 2. Any help? (There are no errors in console, it's just being weird with the multiplication.)
Last edited: