Skip to content

Instantly share code, notes, and snippets.

[23:13:46 ERROR]: #!#!
[23:13:46 ERROR]: #!#!
[23:13:46 ERROR]: #!#! [Skript] Severe Error:
[23:13:46 ERROR]: #!#!
[23:13:46 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[23:13:46 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[23:13:46 ERROR]: #!#! and check whether this error has already been reported.
[23:13:46 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[23:13:46 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[23:13:46 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
function cursorItem(p: players, i: item):
set {_p} to new play_server_set_slot packet
set int pnum 1 of {_p} to 0
set "ItemModifier" pinfo 0 of {_p} to {_i}
set int pnum 0 of {_p} to -1
loop {_p::*}:
send loop-value packet {_p}
function resetSlot(p: player, t: packet):
set {_n} to new play_server_set_slot packet
set int pnum 1 of {_n} to int pnum 1 of {_t}
Events:
On Achievement Award:
Patterns:
achieve[ment] [%-achievement%] award
award of achieve[ment] [%-achievement%]
Event values:
event-player
event-achievement
event-world
On Custom Event:
[14:47:09 INFO]: sky_high issued server command: /sk reload skdrag
[14:47:09 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-dev25
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[PaperSpigot.jar:git-Spigot-b78586d-2585751]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[PaperSpigot.jar:git-Spigot-b78586d-2585751]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:644) ~[PaperSpigot.jar:git-Spigot-b78586d-2585751]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1385) [PaperSpigot.jar:git-Spigot-b78586d-2585751]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1220) [PaperSpigot.jar:git-Spigot-b78586d-2585751]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [PaperSpigot.jar:git-Spigot-b78586d-2585751]
at net.minecraft.ser
{
"kind":"Listing",
"data":{
"facets":{
},
"modhash":"",
"children":[
{
"kind":"t3",
function htmlEsc(html: string) :: string:
return "%{HtmlEscapers}.htmlEscaper().escape({_html})%"
on script load:
start web server on port 80 if not already started
function getList(string: string) :: string:
return "<li style=""list-style-type: none;"">%{_string}%</li>"
on web request:
if requested path is "/" or "/action_page.php":
send back header "Content-type" with value "text/html"
!! <center><b>Skript Chat Room</b></center>
function htmlEsc(html: string) :: string:
return "%{HtmlEscapers}.htmlEscaper().escape({_html})%"
on script load:
start web server on port 80 if not already started
function getList(string: string) :: string:
return "<li style=""list-style-type: none;"">%{_string}%</li>"
on web request:
if requested path is "/" or "/action_page.php":
send back header "Content-type" with value "text/html"
!! <center><b>Skript Chat Room</b></center>
function htmlEsc(html: string) :: string:
return "%{HtmlEscapers}.htmlEscaper().escape({_html})%"
on script load:
start web server on port 80 if not already started
import "com.google.common.html.HtmlEscapers"
function getList(string: string) :: string:
return "<li style=""list-style-type: none;"">%{_string}%</li>"
on web request:
if requested path is "/" or "/action_page.php":
send back header "Content-type" with value "text/html"
options:
fontpath: font2.ttf
folder: sbgen
toppath: sbgen/top.png
bottompath: sbgen/bottom.png
on chat:
set chat-recipients to all players where [{chan::%player input's uuid%} is not set]
on script load:
import "java.io.File"
function drawCenteredString(image: object, input: text, font: object):
#Get BufferedImage
set {_image-file} to new {File}({_image})
if {_image-file}.exists():
set {_image} to {ImageIO}.read({_image-file})
set {_image-width} to {_image}.getWidth()
set {_image-height} to {_image}.getHeight()
set {_graphics} to {_image}.getGraphics()
# Get the FontMetrics