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 SkUniversal 2.6

Skript addon that provides support for a variety of plugins.

  1. P

    PlesCZ Member

    Joined:
    Feb 12, 2017
    Messages:
    3
    Likes Received:
    0
    Donut please come to spigotmc.org..
     
  2. Veraid

    Veraid Member

    Joined:
    Feb 8, 2017
    Messages:
    22
    Likes Received:
    7
    I checked this addon out because I wanted to hook into GriefPrevention but I'm having a problem. I'm using:
    Code (Skript):
    1. right click:
    2.   set {_id::*} to claims at location of clicked block
    3.   send "%{_id::*}%"
    and it works for normal claims but if I make a subdivided claim (using /subdivideclaims) inside a claim then I right click in the subdivided claim area the {_id::*} returns <none> while clicking outside the subdivided claim but still within the claim it returns 0 (the id of the claim)
     
  3. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    sorry my bad. fix will be out in a few
     
  4. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    • Like Like x 1
  5. Veraid

    Veraid Member

    Joined:
    Feb 8, 2017
    Messages:
    22
    Likes Received:
    7
    I've been testing out the (0¦builder|1¦container|2¦access|3¦manager) trusted [players] (of|on) [G[rief]P[revention]] claim [with id] %number% syntax with this code:
    Code (Skript):
    1. right click:
    2.   set {_id::*} to claims at location of clicked block
    3.   loop {_id::*}:
    4.     send "&c%builder trusted of claim loop-value%"
    5.     send "&a%container trusted of claim loop-value%"
    6.     send "&7%access trusted of claim loop-value%"
    7.     send "&4%manager trusted of claim loop-value%"
    and I've noticed another bug that seems to only be the case with subdivided claims, if you use that code and click an area that contains a subdivide and then the original claim every time you click it adds the same uuid it's really strange

    [​IMG]

    this is also really rather annoying for what I'm trying to do as all I want to do is check if someone can build at a location and for that I need to check all builder, cointainer, access and manager trusted of a claim and then I also need to check the claim owner before the code can say they can build, can I please make a suggestion for you to add a condition like:
    %player% has (0¦builder|1¦container|2¦access|3¦manager) trust (of|on) [G[rief]P[revention]] claim [with id] %number%. If I used this code though:
    Code (Skript):
    1. right click:
    2.   player has builder trust of claim 1
    3.   send "You can build at claim 1"
    it shouldn't just work for players who have been trusted using /trust it should also work for players who own the claim and players who have /permissiontrust just like how if I did player has access trust of claim 1 if they also owned the claim, had builder trust, had permission trust or container trust it would still work
     
  6. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
  7. Veraid

    Veraid Member

    Joined:
    Feb 8, 2017
    Messages:
    22
    Likes Received:
    7
    that's intresting, didn't know griefprevention was supported. That will not actually work for me though as I'm making a farming script where you right click the crops and they auto replant and I want people to be able to do that with accesstrust but they will not have build permission if they only have access trust
     
  8. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    im kinda confused what you want. Cant you just check if the player can build (skript condition) or if theyre in the access trusted players then let them replant if either of those are true

    and i did find the problem with the uuids btw
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    Hey Donut

    So im currently working on a GriefPrevention Real Estate type skript! Within this, i will need to call for claim ID's and claim types.
    I have got it to work, to give me back ID's but when i try get types, basic claims work, sub claims run errors.

    Here is my code for testing
    Code (Skript):
    1. command /claimtest:
    2.     trigger:
    3.         set {_claim::*} to the ID of GP claim at location of player
    4.         loop {_claim::*}:
    5.             send "%loop-value%" to player
    6.             send "%the claim type of GP claim loop-value%" to player
    On my MineCraft screen, when i run my command i get:
    3
    basic
    4
    An internal error occurred while attempting to perform this command.

    This is the error in my console:
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! [Skript] Severe Error:
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! Something went horribly wrong with Skript.
    [12:28:20 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    [12:28:20 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    [12:28:20 ERROR]: #!#! Here is full list of them:
    [12:28:20 ERROR]: #!#! skRayFall (http://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) skDragon skUtilities (https://tim740.github.io/) SkStuff skript-yaml SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) SkUniversal SharpSK
    [12:28:20 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    [12:28:20 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    [12:28:20 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    [12:28:20 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
    [12:28:20 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
    [12:28:20 ERROR]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
    [12:28:20 ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! Stack trace:
    [12:28:20 ERROR]: #!#! java.lang.NullPointerException
    [12:28:20 ERROR]: #!#! at us._donut_.skuniversal.griefprevention.ExprClaimType.get(ExprClaimType.java:51)
    [12:28:20 ERROR]: #!#! at us._donut_.skuniversal.griefprevention.ExprClaimType.get(ExprClaimType.java:17)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:104)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.VariableString.toUnformattedString(VariableString.java:475)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getMessageComponents(VariableString.java:490)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:86)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:255)
    [12:28:20 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:170)
    [12:28:20 ERROR]: #!#! at jdk.internal.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
    [12:28:20 ERROR]: #!#! at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [12:28:20 ERROR]: #!#! at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    [12:28:20 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    [12:28:20 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [12:28:20 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
    [12:28:20 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1389)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1232)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
    [12:28:20 ERROR]: #!#! at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
    [12:28:20 ERROR]: #!#! at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
    [12:28:20 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
    [12:28:20 ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:844)
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! Version Information:
    [12:28:20 ERROR]: #!#! Skript: 2.2-dev34 (latest)
    [12:28:20 ERROR]: #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT
    [12:28:20 ERROR]: #!#! Minecraft: 1.12.2
    [12:28:20 ERROR]: #!#! Java: 9.0.1 (Java HotSpot(TM) 64-Bit Server VM 9.0.1+11)
    [12:28:20 ERROR]: #!#! OS: Mac OS X x86_64 10.12.6
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! Server platform: Spigot
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! Current node: null
    [12:28:20 ERROR]: #!#! Current item: send "%type of claim with id null%" to the player
    [12:28:20 ERROR]: #!#! Thread: Server thread
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! Language: english
    [12:28:20 ERROR]: #!#! Link parse mode: DISABLED
    [12:28:20 ERROR]: #!#!
    [12:28:20 ERROR]: #!#! End of Error.
    [12:28:20 ERROR]: #!#!
     
  10. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    can you just broadcast {_claim::*} and post what it says
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    Ok, standing inside a claim, I use this code
    Code (Skript):
    1. command /claimbroadcast:
    2.     trigger:
    3.         set {_claim::*} to the ID of GP claim at location of player
    4.         broadcast "%{_claim::*}%"
    And this is the outcome
    [22:32:53 INFO]: 3 and 4
     
  12. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    what type of claim is claim 4
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    3 is the basic claim, 4 is the sub claim
     
  14. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    @ShaneBolenback
    i found the problem, ill be updating later today. this will also include the slimefun item syntax btw. I didnt add the create item effect yet because i need more time to think exactly how i want to implement the effect since theres a significant amount of stuff i need to account for but i definitely will sometime, i just wanted to release the update asap with at least the basic expression
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    Hey @Donut Thank you very much, i really appreciate it. Im stoked about all the work you're doing for slime fun/skript! You're awesome :emoji_slight_smile:
     
  16. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    Donut updated SkUniversal with a new update entry:

    Version 2.1

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

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    Thanks for the update donut, I'm stoked to use the slime fun stuff.... just curious what the syntaxes are for SlimeFun?
    Thanks
     
  18. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    Ah thats funny, i went to the wiki page and it didn't show in the list, but i didn't think to click on the sidebar on the right and see it there, DUR...
    But thanks, This helps me a lot! Really appreciate it!
     
  20. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    oh yeah i forgot to add it on the main list lol sorry
     
Loading...