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 comminuty!
Now, what are you waiting for? Join the community now!
Use Reqn https://forums.skunity.com/resources/reqn.95/ for json stuff.@tim740 how do you parse a JSON object in Skript?
I'm trying to parse the /stats/uuid.json player object so I can display simple stuff like stat.walkOneCm for people.
It supports anything from Sk v2.2 and above so yes.Does this add-on support 1.8 to 1.12.1?
Okey, so if I use Skript bensku's edit, it should support 1.8 to 1.12.x?It supports anything from Sk v2.2 and above so yes.
Yes since Bensku's fork is above 2.2.Okey, so if I use Skript bensku's edit, it should support 1.8 to 1.12.x?
Using the Spiget API it should be easy:How can I download the latest version of my skript from spigot using the download expression?
download file from "https://api.spiget.org/v2/resources/<Resource ID>/download" to file "plugins\Skript\scripts"
set {_LastUsed} to skUtil "09.11.2017 13:45:04" parsed as date formatted as "dd.MM.yyyy HH:mm:ss"
send "%{_LastUsed}%"
09.11.2017 14:45:04
09.11.2017 13:45:04
#
# \\ YML/CONFIG //
#
on load:
file "plugins\LeafSkyWars\config.yml" doesn't exist:
set {&} to "&"
create file "plugins/LeafSkyWars/config.yml"
set skutil yaml value "DefaultGlass" from file "plugins\LeafSkyWars\config.yml" to "95:5"
set skutil yaml value "WinnerHologram" from file "plugins\LeafSkyWars\config.yml" to "true"
set skutil yaml value "ExplosionEffect" from file "plugins\LeafSkyWars\config.yml" to "true"
set skutil yaml value "UseBowDamageIndicator" from file "plugins\LeafSkyWars\config.yml" to "true"
set skutil yaml value "InGameCMDS" from file "plugins\LeafSkyWars\config.yml" to ""
add "sw" to skutil yaml list "InGameCMDS" from file "plugins\SuperBans\config.yml"
file "plugins\LeafSkyWars\customization.yml" doesn't exist:
set skutil yaml value "Prefix" from file "plugins\LeafSkyWars\customization.yml" to "%{&}%2%{&}%lLeaf %{&}%6%{&}%lSKYWARS %{&}%e%{&}%l» %{&}%7"
#Settings
wait 0.5 seconds
set {Leaf.SW.OPTION::WinnerHologram} to yml value "WinnerHologram" of file "plugins\LeafSkyWars\config.yml"
set {Leaf.SW.OPTION::DefaultGlass} to yml value "DefaultGlass" of file "plugins\LeafSkyWars\config.yml"
set {Leaf.SW.OPTION::ExplosionEffect} to yml value "ExplosionEffect" of file "plugins\LeafSkyWars\config.yml"
set {Leaf.SW.OPTION::UseBowDamageIndicator} to yml value "UseBowDamageIndicator" of file "plugins\LeafSkyWars\config.yml"
set {Leaf.SW.OPTION::InGameCMDS::*} to yml list "InGameCMDS" of file "plugins\LeafSkyWars\config.yml"
#messages
set {Leaf.SW.MSG::Prefix} to yml value "Prefix" of file "plugins\LeafSkyWars\customization.yml"
22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! [Skript] Severe Error:
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[22:14:31 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[22:14:31 ERROR]: #!#! and check whether this error has already been reported.
[22:14:31 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[22:14:31 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[22:14:31 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[22:14:31 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! Stack trace:
[22:14:31 ERROR]: #!#! java.lang.NullPointerException
[22:14:31 ERROR]: #!#! at uk.tim740.skUtilities.files.SExprYaml.get(SExprYaml.java:45)
[22:14:31 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:103)
[22:14:31 ERROR]: #!#! at ch.njol.skript.effects.EffChange.execute(EffChange.java:268)
[22:14:31 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
[22:14:31 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[22:14:31 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[22:14:31 ERROR]: #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:94)
[22:14:31 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
[22:14:31 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
[22:14:31 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
[22:14:31 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[22:14:31 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[22:14:31 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[22:14:31 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! Version Information:
[22:14:31 ERROR]: #!#! Skript: 2.2-dev27
[22:14:31 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
[22:14:31 ERROR]: #!#! Minecraft: 1.8.8
[22:14:31 ERROR]: #!#! Java: 1.8.0_151 (Java HotSpot(TM) 64-Bit Server VM 25.151-b12)
[22:14:31 ERROR]: #!#! OS: Windows 10 amd64 10.0
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! Running CraftBukkit: false
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! Current node: null
[22:14:31 ERROR]: #!#! Current item: set {Leaf.SW.OPTION::InGameCMDS::*}(as java.lang.Object) to uk.tim740.skUtilities.files.SExprYaml
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! Thread: Server thread
[22:14:31 ERROR]: #!#!
[22:14:31 ERROR]: #!#! End of Error.
[22:14:31 ERROR]: #!#!
format a gui slot 0 of player with stone named ".." to do:
code here ....
Yes, you can do:1. Is there is any way to write line in file like WildSkript or Umbaska (wf "..." to "...") in SkUtilities?
write "something" at line (file "whatever.sk"'s line count + 1) to file "whatever.sk"
Thank you for that idea (first question)Yes, you can do:
I'd make a function just to avoid writing that all the time.code_language.skript:write "something" at line (file "whatever.sk"'s line count + 1) to file "whatever.sk"
As for your second question, it's completely unrelated to skUtilities so you're better off creating a help thread for it.
spawn a villager with profession NORMAL at location of player
Removed Debug testing messages
Removed McStats
Changed some startup messages
loop yaml nodes with keys "" of file {_file}:
yaml node "%loop-value%" of file {_file} = list
set {_list::%loop-value%} to yaml list "%loop-value%" of file {_file}