SharpSK [1.8 - 1.12+]

Addon SharpSK [1.8 - 1.12+] 1.6.3

  • Welcome to skUnity!

    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!

@MartinOdum Noted. :emoji_clap: It will be included for the next update.
One more question, when I add someone to a region as member or owner with the current syntax it adds them but it doesn't add them using the new method that supports uuids, when I do /rg info I see them as "name:martinodum" which means it added the name martinodum to the region without uuid support, so if the person changes their name they wont own/be part of the region, any chance you can change that to support uuid?
 
I can't create a timer

Code:
create timer "timerexample" for 30 seconds

[02:23:04 INFO]: xbxy [fa8f6f1c-40b1-38ae-9b35-d7396c30d4c8]: /a
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! [Skript] Severe Error:
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[02:23:04 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[02:23:04 ERROR]: #!#! and check whether this error has already been reported.
[02:23:04 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[02:23:04 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[02:23:04 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[02:23:04 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! Stack trace:
[02:23:04 ERROR]: #!#! java.lang.NullPointerException
[02:23:04 ERROR]: #!#!     at me.sharpjaws.sharpSK.EffTimerCreate.execute(EffTimerCreate.java:49)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
[02:23:04 ERROR]: #!#!     at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35)
[02:23:04 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[02:23:04 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[02:23:04 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[02:23:04 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1376)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1189)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[02:23:04 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[02:23:04 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:821)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:749)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:648)
[02:23:04 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! Version Information:
[02:23:04 ERROR]: #!#!   Skript: 2.2-dev25
[02:23:04 ERROR]: #!#!   Bukkit: 1.11.2-R0.1-SNAPSHOT
[02:23:04 ERROR]: #!#!   Minecraft: 1.11.2
[02:23:04 ERROR]: #!#!   Java: 1.8.0_121 (OpenJDK 64-Bit Server VM 25.121-b13)
[02:23:04 ERROR]: #!#!   OS: Linux amd64 2.6.32-431.el6.x86_64
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! Running CraftBukkit: false
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! Current node: null
[02:23:04 ERROR]: #!#! Current item: timer create %string% duration %timespan%
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! Thread: Server thread
[02:23:04 ERROR]: #!#! 
[02:23:04 ERROR]: #!#! End of Error.
[02:23:04 ERROR]: #!#!
 
I can't create a timer

Code:
create timer "timerexample" for 30 seconds

[02:23:04 INFO]: xbxy [fa8f6f1c-40b1-38ae-9b35-d7396c30d4c8]: /a
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! [Skript] Severe Error:
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[02:23:04 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[02:23:04 ERROR]: #!#! and check whether this error has already been reported.
[02:23:04 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[02:23:04 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[02:23:04 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[02:23:04 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! Stack trace:
[02:23:04 ERROR]: #!#! java.lang.NullPointerException
[02:23:04 ERROR]: #!#!     at me.sharpjaws.sharpSK.EffTimerCreate.execute(EffTimerCreate.java:49)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[02:23:04 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
[02:23:04 ERROR]: #!#!     at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35)
[02:23:04 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[02:23:04 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[02:23:04 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[02:23:04 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1376)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1189)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[02:23:04 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[02:23:04 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:821)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:749)
[02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:648)
[02:23:04 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! Version Information:
[02:23:04 ERROR]: #!#!   Skript: 2.2-dev25
[02:23:04 ERROR]: #!#!   Bukkit: 1.11.2-R0.1-SNAPSHOT
[02:23:04 ERROR]: #!#!   Minecraft: 1.11.2
[02:23:04 ERROR]: #!#!   Java: 1.8.0_121 (OpenJDK 64-Bit Server VM 25.121-b13)
[02:23:04 ERROR]: #!#!   OS: Linux amd64 2.6.32-431.el6.x86_64
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! Running CraftBukkit: false
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! Current node: null
[02:23:04 ERROR]: #!#! Current item: timer create %string% duration %timespan%
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! Thread: Server thread
[02:23:04 ERROR]: #!#!
[02:23:04 ERROR]: #!#! End of Error.
[02:23:04 ERROR]: #!#!

Hmmm are you sure you aren't running a old build of sharpsk @xbxy ? I believe I already fixed this on the latest build. Use the command " /shsk version " to check your version of the addon. If it turns out to be the latest build then I will fix it asap. Currently the latest version is 1.6.1.5 so please update if you notice any differences :emoji_smile:
 
Last edited by a moderator:
Sharpjaws updated SharpSK with a new update entry:

1.6.2 Update - Loads of stuff Part 1/2

This update has been split into 2 parts since this big update supports 3 new plugins that are going to be fully implemented in the next update, probably 1.6.2.1 which is going to be part 2 with the support for the 3 plugins fully complete.

General:

Fixed silly syntax names in worldguard syntaxes (Will adjust all changed affected syntaxes in the docs later)
Fixed more broken PirateSK stuff.

WorldEdit:
Added feature to exlude air for pasting schems:
code_language.skript:
paste...

Read the rest of this update entry...
 
Hey there!
Awesome plugin. Most interesting part for me is the timer effect. But could you make it so that I can start a timer and have it run forever (not for a specific period)? And instead of seconds I would like to use "ticks". Do you think you could add this feature?
 
@pepper82
Hi there! :emoji_grin: If you like a timer that runs forever then I suggest using skript's own "timer" event:
code_language.skript:
On every (tick|second|minute|hour):
However doing it with sharpsk's timers is done with a different method:

code_language.skript:
command /endlesstimer:
   trigger:
       create timer "testtimer" for 30 seconds
   
   
on timer tick:
   if event-string is "testtimer":
       time of timer "testtimer" is 1:
           set time of timer "testtimer" to 30 seconds
As for tick support, it has already been planned for the next update.
 
Thank you! Tick support would be great!
[doublepost=1492081503,1491990920][/doublepost]Btw. for me
if timer "mytimer" is not active:
always gives the same result (cant remember if it was true or false)

Also I am unable to start a timer in the "On Skript Load" event. It keeps throwing console errors:
https://hastebin.com/zuyosoduno.md
Or is it because I am executing a console command inside the "on timer tick" event? If so, why would I be unable to execute a console command? I am also unable to change blocks in the world within the event. (Asynchronous block remove error)

Hope you can fix this because I really want to use the timers options you offer here, but it's very limited actually as it seems
 
Last edited by a moderator:
@pepper82 Ah yes, I probably forgot to say that the timers are still very experimental so they are very limited in what they can do yet. Also on my side it seems to work fine with the on skript load event. Could you list me your Skript version, Server MC version and the Addon version?

I tested it with Spigot 1.11.2 and Bensku's Skript build dev26c
Also the last error seems like a strange one. I think it may be actually skript related. If you want you could post the error log of that one aswell
 
Last edited by a moderator:
Tested some more. It is not the "on skript load" event but I am just unable to execute a console command within the "on timer tick" event.
https://hastebin.com/zuyosoduno.md
That's the error when trying to execute a console command. Hope you can fix this!

Version:
  • This server is running Paper version git-Paper-1081 (MC: 1.11.2) (Implementing API version 1.11.2-R0.1-SNAPSHOT)
  • Skript v2.2-dev25
  • Enabling SharpSK v1.6.2
 
@pepper82
Ah I see, this seems to only affect PaperSpigot users as this does not occur on the normal Spigot versions.
I addressed the issue and it will be fixed in the next update. Thanks for the bug report.


@xbxy GroupManager support has been planned for later updates. :emoji_thumbsup:
 
@Sharpjaws
There are more issues when using the "on timer tick" event in my scripts.

I found that sometimes (randomly) different exceptions occur when reloading the script where I am using the "on timer tick" event. And the script is not functional then.

Examples:
https://hastebin.com/heciyurowa.vbs

By deleting the "on timer tick" event no more exceptions occur.

I really hope for a hotfix for this because all my scripts using the "on timer tick" are not stable anymore :-/

UPDATE #2:
Now I got a server crash (never had this before):

https://hastebin.com/ubojudijaw.sql
 
Last edited by a moderator:
@pepper82 Well I would stay away from the timers for a little while since they are not ¨ready-for-use¨, only for experimentation purposes until this issue has been fixed. I do however recommend going with the normal spigot builds since paperspigot is not officially supported with timers yet if you need them really badly :emoji_slight_smile:

I never used paperspigot before so I do not actually know if paperspigot breaks the timers in some way with some of your other errors. Could you list me the code that you are using? like the part of your code in your skript file that uses this?
 
Last edited by a moderator:
Hi there,
yes I think it would be better to stay away from timers for now. I will use skript's "every x seconds" event to achieve what I need. Not sure if that will eat up more performance or not. I also have the problem that our server keeps freezing since 2 days now. These crashes started to happen when I installed sharpsk. Not sure if that could be the reason. https://hastebin.com/igorewumod.md
I can not read anything out of these crash dumps :O
 
@pepper82 For safety reasons you may want to check if there are still any timers running by using the command: /sharpsk timers
If there are no active timers then one of your plugins is probably causing all the issues since sharpsk does not seem to crash on paperspigot servers (needs confirmation) atleast it does not for me. Seems like the plugin TerrainControl is giving you trouble. You may want to contact the dev for that :emoji_smile:
The error that you cannot run commands inside a timer tick event however is on my side
 
@Sharpjaws Would be cool to see full worldguard support such as creating regions from 2 points, adding flags, members ect.

Very good addon though, i give approval of memes.
[doublepost=1492653658,1492653552][/doublepost]
@Sharpjaws Would be cool to see full worldguard support such as creating regions from 2 points, adding flags, members ect.

Very good addon though, i give approval of memes.
Haha, april fools, i obviously didn't read before posting, bad memes.