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 TuSKe - Custom Enchantments, GUI Manager and more! 1.8.2

A Skript addon which brings custom things to help you to improve your scripts.

  1. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Thank you, I'm glad that you like it.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Code (Skript):
    1. on skript load:
    2.      register a new custom enchantment with id name "Magic"
    3.      set {_enchantment} to "Magic" parsed as custom enchantment
    4.      set max level of {_enchantment} to 5
    5.      set rarity of {_enchantment} to 1
    6.      set accepted items for {_enchantment} to "all"
    7.      set lore name of {_enchantment} to "Magic Power"
    8.    
    9.      register a new custom enchantment with id name "fat"
    10.      set {_enchantment} to "fat" parsed as custom enchantment
    11.      set max level of {_enchantment} to 5
    12.      set rarity of {_enchantment} to 1
    13.      set accepted items for {_enchantment} to "all"
    14.      set lore name of {_enchantment} to "fat"
    15.    
    16.      reload all custom enchantments
    17.  
    18. on armor equip:
    19.      if event-item has custom enchantment Magic:
    20.           send "success"
    21.  
    22. command /addmagic:
    23.      trigger:
    24.           add Magic to all custom enchantments of player's tool
    25.          
    26. command /addfat:
    27.      trigger:
    28.           add fat to all custom enchantments of player's tool
    29.                    
    30. command /removemagic:
    31.      trigger:
    32.           remove Magic from custom enchantments of player's tool
    33.          
    34. command /removefat:
    35.      trigger:
    36.           remove fat from all custom enchantments of player's tool
    37.  
    For some reason, the enchantments don't get removed
    and https://gyazo.com/0fc8e7cf8622f6e8b52c79821e0b1a98
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    This reload effects was removed since you can use it by /tuske command and it is automatically reloaded when registering an enchantment.

    You issue is unknown, are you sure that the item has that enchantment?
    Try this if it works:
    Code (Skript):
    1. set {_i} to player's tool
    2. remove fat from all custom enchantments from {_i}
    3. set player's tool to {_i}
    I will try this tomorrow, since it's midnight here.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I've tried, nothing yet seems to happen. For some reason, when I equip the item nothing seems to happen either, although when I edited lore manually, it did. Enchanting something also adds "Unbreaking I" as first enchantment if the item was previously clean
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Yeah, that unbreaking enchantment was an issue I had when I did that (in 1.8 server): you couldn't merge items in anvil if it only has a lore (in this case the custom enchantment), I don't see other way to fix it if not with packets (which it's a bitch to work with for multi version support or plugin dependency) unless something has changed in 1.9-1.12 to allow that.
    I may remake all this custom enchantment thing, since it uses codes about a year ago, where I was starting with bukkit api, but not sure when.
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I have a problem
    Like the following code
    He is a menu
    Code (Text):
    1.  
    2.         open virtual chest inventory with size 6 named "{@mn_0}" to {_p}
    3.         make a gui slot 52 of {_p} with {@mi0_update} to run function openupdate({_p})
    4.         make a gui slot 53 of {_p} with {@mi0_bctp}
    5.         make a gui slot 11 of {_p} with {@mi0_elytra} to close then run function bctp({_p}, "elytra")
    6.  
    When I restart the server after using this menu will not have any problems
    The menu function is executed successfully and can not be dragged into the backpack
    But if i use the command '/ sk reload all'

    The discovery function will not be executed successfully
    But also to items into the backpack
    The version I used before was v1.7.7
    Also the same code that he would not have any problem with

    But when i upgraded to v1.8.1
    The problem arises
    Hope to repair as soon as possible

    ##
    This server is running Paper version git-Paper-1104 (MC: 1.11.2) (Implementing API version 1.11.2-R0.1-SNAPSHOT)
    @Tuke_Nuke
     
    #106 ShaneBee, Aug 16, 2017
    Last edited by a moderator: Aug 16, 2017
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I have same problem players can take item in inventory from the gui im using 1.8.8 PaperSpigot, Java 8 and latest TuSKe
    Startup Log (Maybe this is the problem):

    Code (Java):
    1. [23:46:00] [Server thread/INFO]: [TuSKe] Enabling TuSKe v1.8.1
    2. [23:46:00] [Server thread/INFO]: [TuSKe]
    3. [23:46:00] [Server thread/INFO]: [TuSKe]  A special thanks for donators:
    4. [23:46:00] [Server thread/INFO]: [TuSKe]  @X0Freak - 46$
    5. [23:46:00] [Server thread/INFO]: [TuSKe]
    6. [23:46:00] [Server thread/WARN]: [Skript] Ignored an exception due to user configuration: Can't register org.bukkit.event.inventory.InventoryType with the code name inventorytype because that name is already used by inventory type
    7. [23:46:00] [Server thread/WARN]: [Skript] Ignored an exception due to user configuration: Can't register the class info clicktype because the class org.bukkit.event.inventory.ClickType is already registered
    8. [23:46:00] [Server thread/WARN]: [Skript] Ignored an exception due to user configuration: Can't register org.bukkit.event.inventory.InventoryAction with the code name inventoryaction because that name is already used by inventory action
    9. [23:46:00] [Server thread/WARN]: [Skript] Ignored an exception due to user configuration: Can't register the class info slottype because the class org.bukkit.event.inventory.InventoryType$SlotType is already registered
    10. [23:46:00] [Server thread/INFO]: [TuSKe] Loaded 8 events, 12 conditions, 20 effects, 61 expressions and 0 types. Have fun!
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    That's strange, does the functions are in the same file or different one? I will see if I can replicate that issue.

    I saw your report in my github and I released a dev build to see if it fixes, since I couldn't replicate the issue. Let me know if it did.
    That spam error is new, but harmless. TuSKe try to safely register some stuffs but Skript is showing that it was failed. That's not a issue because TuSKe only need in case no other addon (or bensku's fork) registered some types for gui stuffs. I will make a way to avoid these annoying warns.
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Function in a different file
    I have api.sk
    Menu.sk
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    When i start my server i get this error:

    Code (Skript):
    1. [11:15:50 ERROR]: Error occurred while enabling TuSKe v1.8.1 (Is it up to date?)
    2. java.lang.NoSuchMethodError: ch.njol.skript.bukkitutil.PlayerUtils.getOnlinePlayers()Ljava/util/Collection;
    3.         at me.tuke.sktuke.listeners.OnlineStatusCheck.<init>(OnlineStatusCheck.java:24) ~[?:?]
    4.         at me.tuke.sktuke.TuSKe.onEnable(TuSKe.java:72) ~[?:?]
    5.         at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    6.         at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    7.         at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    8.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    9.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    10.         at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    11.         at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    12.         at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    13.         at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    14.         at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    15.         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Can you tell us your version of Skript? Do "/about Skript" to know it.
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    The version is: Skript version 2.1.2
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    That's the issue, look at the wiki for a more updated version and the one that fits with your server version.
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    ok i installed the fixed version and now i don't get that error but this error:
    Code (Skript):
    1. [11:43:30 ERROR]: #!#!
    2. [11:43:30 ERROR]: #!#! [Skript] Severe Error:
    3. [11:43:30 ERROR]: #!#! Unexpected error while checking for a new version of Skript
    4. [11:43:30 ERROR]: #!#!
    5. [11:43:30 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    6. [11:43:30 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
    7. [11:43:30 ERROR]: #!#! and check whether this error has already been reported.
    8. [11:43:30 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
    9. [11:43:30 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
    10. [11:43:30 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    11. [11:43:30 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    12. [11:43:30 ERROR]: #!#!
    13. [11:43:30 ERROR]: #!#! Stack trace:
    14. [11:43:30 ERROR]: #!#! javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
    15. [11:43:30 ERROR]: #!#!     at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596)
    16. [11:43:30 ERROR]: #!#!     at com.sun.xml.internal.stream.XMLEventReaderImpl.nextEvent(XMLEventReaderImpl.java:83)
    17. [11:43:30 ERROR]: #!#!     at ch.njol.skript.Updater.getChangelogs(Updater.java:286)
    18. [11:43:30 ERROR]: #!#!     at ch.njol.skript.Updater$2.run(Updater.java:210)
    19. [11:43:30 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
    20. [11:43:30 ERROR]: #!#!
    21. [11:43:30 ERROR]: #!#! Version Information:
    22. [11:43:30 ERROR]: #!#!   Skript: 2.2-Fixes-V8b
    23. [11:43:30 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    24. [11:43:30 ERROR]: #!#!   Minecraft: 1.8.8
    25. [11:43:30 ERROR]: #!#!   Java: 1.8.0_112 (Java HotSpot(TM) 64-Bit Server VM 25.112-b15)
    26. [11:43:30 ERROR]: #!#!   OS: Linux amd64 3.14.32-xxxx-grs-ipv6-64
    27. [11:43:30 ERROR]: #!#!
    28. [11:43:30 ERROR]: #!#! Running CraftBukkit: false
    29. [11:43:30 ERROR]: #!#!
    30. [11:43:30 ERROR]: #!#! Current node: execute console command "sk reload NCS.sk" (NoCheatSpace.sk, line 6)
    31. [11:43:30 ERROR]: #!#! Current item: null
    32. [11:43:30 ERROR]: #!#!
    33. [11:43:30 ERROR]: #!#! Thread: Skript update thread
    34. [11:43:30 ERROR]: #!#!
    35. [11:43:30 ERROR]: #!#! End of Error.
    36. [11:43:30 ERROR]: #!#!
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Just go to your config.sk and disable the auto updater, that should fix it.
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    ok but can i still update then?
     
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Of course, it's just that the auto-updater broke a while ago but everything else works fine.
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Ok thx!
     
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    @Tuke_Nuke - Is there any way to fix the loading bug?
    All of my GUI scripts take extreme amounts of times to load - it even made my server startup take 30+ minutes (from 1-2 minutes). It's happening with both the simple and advanced method of making GUI's :/

    Running latest Skript, TuSke on mc 1.12
     
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    change create to make
    this seems to be a bug with skript itself bc other syntax from other addons are also have the load issue when using create

    just avoid create in general if you can for now
     
Loading...