1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon SharpSK [1.8 - 1.12+] 1.6.3

Made for supporting alot of your favourite plugins for use in skript

  1. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @MartinOdum Noted. :emoji_clap: It will be included for the next update.
     
    MartinOdum likes this.
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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?
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @MartinOdum Ah yes sure, Seems like I wasn't aware that worldguard had some changes that affected the API. I will take alook at it.
     
    MartinOdum likes this.
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I can't create a timer

    Code (Text):
    1.  
    2. create timer "timerexample" for 30 seconds
    3.  
    4. [02:23:04 INFO]: xbxy [fa8f6f1c-40b1-38ae-9b35-d7396c30d4c8]: /a
    5. [02:23:04 ERROR]: #!#!
    6. [02:23:04 ERROR]: #!#! [Skript] Severe Error:
    7. [02:23:04 ERROR]: #!#!
    8. [02:23:04 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    9. [02:23:04 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
    10. [02:23:04 ERROR]: #!#! and check whether this error has already been reported.
    11. [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),
    12. [02:23:04 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
    13. [02:23:04 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    14. [02:23:04 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    15. [02:23:04 ERROR]: #!#!
    16. [02:23:04 ERROR]: #!#! Stack trace:
    17. [02:23:04 ERROR]: #!#! java.lang.NullPointerException
    18. [02:23:04 ERROR]: #!#!     at me.sharpjaws.sharpSK.EffTimerCreate.execute(EffTimerCreate.java:49)
    19. [02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
    20. [02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
    21. [02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
    22. [02:23:04 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
    23. [02:23:04 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
    24. [02:23:04 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
    25. [02:23:04 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
    26. [02:23:04 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
    27. [02:23:04 ERROR]: #!#!     at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35)
    28. [02:23:04 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
    29. [02:23:04 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    30. [02:23:04 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
    31. [02:23:04 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
    32. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1376)
    33. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1189)
    34. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
    35. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
    36. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13)
    37. [02:23:04 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    38. [02:23:04 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    39. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46)
    40. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:821)
    41. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403)
    42. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:749)
    43. [02:23:04 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:648)
    44. [02:23:04 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
    45. [02:23:04 ERROR]: #!#!
    46. [02:23:04 ERROR]: #!#! Version Information:
    47. [02:23:04 ERROR]: #!#!   Skript: 2.2-dev25
    48. [02:23:04 ERROR]: #!#!   Bukkit: 1.11.2-R0.1-SNAPSHOT
    49. [02:23:04 ERROR]: #!#!   Minecraft: 1.11.2
    50. [02:23:04 ERROR]: #!#!   Java: 1.8.0_121 (OpenJDK 64-Bit Server VM 25.121-b13)
    51. [02:23:04 ERROR]: #!#!   OS: Linux amd64 2.6.32-431.el6.x86_64
    52. [02:23:04 ERROR]: #!#!
    53. [02:23:04 ERROR]: #!#! Running CraftBukkit: false
    54. [02:23:04 ERROR]: #!#!
    55. [02:23:04 ERROR]: #!#! Current node: null
    56. [02:23:04 ERROR]: #!#! Current item: timer create %string% duration %timespan%
    57. [02:23:04 ERROR]: #!#!
    58. [02:23:04 ERROR]: #!#! Thread: Server thread
    59. [02:23:04 ERROR]: #!#!
    60. [02:23:04 ERROR]: #!#! End of Error.
    61. [02:23:04 ERROR]: #!#!
    62.  
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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:
     
    #45 ShaneBee, Mar 29, 2017
    Last edited by a moderator: Mar 29, 2017
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Sharpjaws updated SharpSK with a new update entry:

    1.6.2 Update - Loads of stuff Part 1/2

    Read the rest of this update entry...
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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?
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @pepper82 What are you trying to do? Why you need timer run forever?
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @pepper82
    Hi there! :emoji_grin: If you like a timer that runs forever then I suggest using skript's own "timer" event:
    Code (Skript):
    1.  
    2. On every (tick|second|minute|hour):
    3.  
    However doing it with sharpsk's timers is done with a different method:

    Code (Skript):
    1.  
    2. command /endlesstimer:
    3.    trigger:
    4.        create timer "testtimer" for 30 seconds
    5.    
    6.    
    7. on timer tick:
    8.    if event-string is "testtimer":
    9.        time of timer "testtimer" is 1:
    10.            set time of timer "testtimer" to 30 seconds
    11.  
    As for tick support, it has already been planned for the next update.
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Thank you! Tick support would be great!
    --- Double Post Merged, Apr 13, 2017, Original Post Date: Apr 12, 2017 ---
    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
     
    #50 ShaneBee, Apr 13, 2017
    Last edited by a moderator: Apr 13, 2017
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @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
     
    #51 ShaneBee, Apr 13, 2017
    Last edited by a moderator: Apr 13, 2017
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    You can add an effect ?
    Make sharp can obtain the GroupManager permissions set
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @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:
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @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
     
    #55 ShaneBee, Apr 14, 2017
    Last edited by a moderator: Apr 14, 2017
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Thank you very much
    :emoji_grinning:
     
    Sharpjaws likes this.
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @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?
     
    #57 ShaneBee, Apr 15, 2017
    Last edited by a moderator: Apr 15, 2017
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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
     
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @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
     
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    @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.
    --- Double Post Merged, Apr 20, 2017, Original Post Date: Apr 20, 2017 ---
    Haha, april fools, i obviously didn't read before posting, bad memes.
     

Share This Page

Loading...