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 skript-mirror 0.19.1

Natural reflection utilities for Skript

  1. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    152
    Likes Received:
    151
  2. a

    ammar Member

    Joined:
    May 15, 2017
    Messages:
    10
    Likes Received:
    1
    is custom event {call/create} will be added or not ?
     
  3. n

    neexipl Member

    Joined:
    Jan 27, 2017
    Messages:
    4
    Likes Received:
    0
    How to use api GlowAPI in On item spawn: ? :/
     
  4. a

    ammar Member

    Joined:
    May 15, 2017
    Messages:
    10
    Likes Received:
    1
    Code (Skript):
    1.  
    2. import:
    3.    org.bukkit.event.player.PlayerItemBreakEvent
    4. on PlayerItemBreakEvent:
    5.    broadcast "test"
    6.  
    7.  
    8.  
    9. > [23:49:40 ERROR]: #!#! Stack trace:
    10. > [23:49:40 ERROR]: #!#! java.lang.NullPointerException
    11. > [23:49:40 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.inventory.CraftItemStack.addUnsafeEnchantment(CraftItemStack.java:189)
    12. > [23:49:40 ERROR]: #!#! at ch.njol.skript.effects.EffEnchant.execute(EffEnchant.java:83)
    13. > [23:49:40 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
    14. > [23:49:40 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    15. > [23:49:40 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    16. > [23:49:40 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    17. > [23:49:40 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.ja
    18.  
     
  5. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    7
    Hi @btk5h ,
    I have a strange error with the new API version of the GPS plugin, here is my code it returns me an "internal error" there is also an error in the console
    Code (Java):
    1. import:
    2.     com.live.bemmamin.gps.api.GPSAPI
    3.     ch.njol.skript.Skript
    4.    
    5. on load:
    6.     set {GPSAPI} to new GPSAPI(Skript.getInstance())
    7.    
    8. command /test:
    9.     trigger:
    10.         send "%{GPSAPI}.getClass()%"
    11.  
    My Console Error:
    https://pastebin.com/TZvuegZB
     
  6. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    289
    Likes Received:
    8
    can you make so we can suppress errors from imports
    Code (Skript):
    1. import:
    2.     try com.wasteofplastic.askyblock.ASkyBlockAPI
    thanks
     
    • Like Like x 1
  7. x

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    168
    Likes Received:
    8
    I want to do both.
    But I don't know Java syntax and can only use skript
    Can you help me?
    @Uzumaki @Pikachu
    Code (Text):
    1.  
    2. import com.intellectualcrafters.configuration.file.YamlConfiguration;
    3. import com.intellectualcrafters.plot.PS;
    4. import com.intellectualcrafters.plot.commands.SubCommand;
    5. import com.intellectualcrafters.plot.config.C;
    6. import com.intellectualcrafters.plot.flag.Flag;
    7. import com.intellectualcrafters.plot.flag.FlagManager;
    8. import com.intellectualcrafters.plot.flag.Flags;
    9. import com.intellectualcrafters.plot.object.Plot;
    10. import com.intellectualcrafters.plot.object.PlotArea;
    11. import com.intellectualcrafters.plot.object.PlotId;
    12. import com.intellectualcrafters.plot.object.PlotManager;
    13. import com.intellectualcrafters.plot.object.PlotPlayer;
    14. import com.intellectualcrafters.plot.util.ChunkManager;
    15. import com.intellectualcrafters.plot.util.MainUtil;
    16. import com.intellectualcrafters.plot.util.Permissions;
    17. import com.intellectualcrafters.plot.util.SchematicHandler;
    18. import com.intellectualcrafters.plot.util.UUIDHandler;
    19. import com.intellectualcrafters.plot.util.block.GlobalBlockQueue;
    20. import com.intellectualcrafters.plot.uuid.UUIDWrapper;
    21. import com.plotsquared.bukkit.util.BukkitUtil;
    22. import org.bukkit.Location;
    23. import org.bukkit.OfflinePlayer;
    24. import org.bukkit.World;
    25. import org.bukkit.entity.Player;
    26. import org.bukkit.plugin.java.JavaPlugin;
    27. import java.util.ArrayList;
    28. import java.util.Collection;
    29. import java.util.Collections;
    30. import java.util.HashSet;
    31. import java.util.Set;
    32. import java.util.UUID;
    33.  
    34. /**
    35. * Get all plots for the player.
    36. *
    37. * @param world The world to retrieve plots from
    38. * @param player The player to search for
    39. * @param justOwner should we just search for owner? Or with rights?
    40. * @return An array of plots for the player
    41. */
    42. @Deprecated
    43. public Plot[] getPlots(World world, Player player, boolean justOwner) {
    44. ArrayList<Plot> pPlots = new ArrayList<>();
    45. UUID uuid = BukkitUtil.getPlayer(player).getUUID();
    46. for (Plot plot : PS.get().getPlots(world.getName())) {
    47. if (justOwner) {
    48. if (plot.hasOwner() && plot.isOwner(uuid)) {
    49. pPlots.add(plot);
    50. }
    51. } else if (plot.isAdded(uuid)) {
    52. pPlots.add(plot);
    53. }
    54. }
    55. return pPlots.toArray(new Plot[0]);
    56. }
    57.  
    58. /**
    59. * Get home location.
    60. *
    61. * @param plot Plot that you want to get the location for
    62. *
    63. * @return plot bottom location
    64. *
    65. * @see Plot
    66. */
    67. public Location getHomeLocation(Plot plot) {
    68. return BukkitUtil.getLocation(plot.getHome());
    69. }
    70. [code/]
    --- Double Post Merged, Jun 16, 2019 at 9:38 AM, Original Post Date: May 25, 2019 ---
    0.16.1 update to 0.19.1 error


    Code (Text):
    1.  
    2. on "lk.vexview.event.KeyBoardPressEvent" with priority high:
    3.     set {_ki} to event.getKey()
    4.  
    5. [16:16:20 INFO]: [Skript] Reloading 1.sk...
    6. [16:16:21 ERROR]: can't understand this event: 'on "lk.vexview.event.KeyBoardPressEvent" with priority high' (1.sk, line 99: on "lk.vexview.event.KeyBoardPressEvent" with priority high:')
    7. [16:16:21 INFO]: [Skript] Encountered 1 error while reloading 1.sk!
    8.  
    9.  
     
Loading...