Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function GetValue(uuid:text, n:text, sql:text) :: text:
- set {_result} to mysql result of query "SELECT * FROM %{_sql}% WHERE `uuid` = '%{_uuid}%'"
- set {_result::*} to mysql string "%{_n}%" in {_result}
- return "%{_result::*}%"
- Function UpdateValue(uuid:text, n1:text, n2:text, sql:text) :: text:
- mysql update "UPDATE %{_sql}% SET %{_n1}% = '%{_n2}%' WHERE `uuid` = '%{_uuid}%'"
- import:
- java.sql.*
- import:
- java.lang.System
- java.lang.String as JavaString
- java.lang.Math
- org.bukkit.Location
- command /reflectiontest:
- trigger:
- System.out!.println("Hello from Skript!")
- sender.sendMessage("Reflection message!")
- message JavaString.format("welcome %%010d %%06x", 16, 356)
- message "%Math.max(Math.PI!, Math.E!)%"
- message "%new Location(a random world of all worlds, 0, 69, 1337, 90, 270)%"
- command /dddd:
- trigger:
- set {_uuid} to uuid of player
- send GetValue({_uuid},"ch1ID","chnumber")
- send GetValue({_uuid},"ch2ID","chnumber")
- send GetValue({_uuid},"ch3ID","chnumber")
- send GetValue({_uuid},"ch4ID","chnumber")
- send GetValue({_uuid},"uuid","chnumber")
- command /ssss:
- trigger:
- # set {_uuid} to uuid of player
- # UpdateValue({_uuid},"ch1ID","已創建","chnumber")
- on join:
- set {_uuid} to uuid of player
- send "%{_uuid}%"
- send GetValue({_uuid},"uuid","chnumber")
- set {_data} to GetValue({_uuid},"uuid","chnumber")
- if "%{_data}%" is "<none>":
- send "1"
- if GetValue({_uuid},"uuid","chnumber") is "<none>":
- send "2"
- mysql update "INSERT INTO chnumber (`uuid`) VALUES ('%{_uuid}%')"
Advertisement
Add Comment
Please, Sign In to add comment