Closed Bonnie20402 closed 7 months ago
This issue should be fixed with the latest version (Skent 3.2.1). Please reopen this issue if you still have this issue.
What is your code? @Vulqa?
function copyServer(server: string, template: string):
async copy file path "/root/minecraft/servers_template/%{_template}%" to file path "/root/minecraft/servers/%{_server}%"
broadcast "&aServeur &f%{_server}% &a(Template '%{_template}%') copié"
command /test <text> <text>:
trigger:
copyServer(arg-1, arg-2)
Hi @Vulqa, can you have a look in this version? If everything seems good to you, publish it.
Closing this issue as no answer. Please reopen it if you still have this problem.
Describe your problem
What's wrong? Local variables won't work propely in any async effects. The output is always < none >. E.g creating a file "%{_x}%.json" where {_x} = "name.json" would create a file named "< none >.json" What is supposed to do? It should allow me to use local variables on async effects. The same thing happens if I create a variable in the start and delete at the end of the code.
Versions
Skript: 2.6.2 (Gio's 1.8 fork) Server: Paper 1.8.9 Skent: 32.0
Code
It created a file named < none >.json
Error
No error.