Search results

  • 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!

  1. V

    Problem with calculation

    I'm attempting to calculate the average ping of a user, but I don't seem to be using the syntax of arithmetic expressions correctly. I can't seem to find an example on the docs, either. Here's my code: on join: set {ping.average.calculation.%player%} to true wait 1 tick set...
  2. V

    Solved Help with cancelling certain event

    So, I've looked through the documentation and I've found nothing which matches something similar to this: On projectile hit: cancel teleport
  3. V

    Anti Enderpearl Glitch

    Category: Bug fix Suggested name: skAntiPearlGlitch What I want: I'd like a script which doesn't allow users to glitch through solid blocks using enderpearls (Not through enderpearl timers) by teleporting a player 0.5 blocks back of their enderpearl's landing location if they pearl at a block...
  4. V

    Fix enderpearl glitching in 1.7

    I'm trying to fix it with this code, but it doesn't seem to work. Any idea what I'm doing wrong? on projectile hit: set {_block} to the block at location 0.5 in front of the projectile teleport shooter to {_block} if {_block} is air: set {_block} to the block at location 0.5...
  5. V

    Solved on drop: if player has inventory open

    i want to check if a player has their inventory open on drop event. how would i do that?
  6. V

    Stop certain item from stacking

    I'm looking for a way to stop a certain item from stacking in a player's inventory. Any method?
  7. V

    Solved Issue with skQuery

    Whenever I create a gui and add items to it, I get this error: https://hastebin.com/ihofezovof.vbs My server is running on 1.8.8 with the latest stable skQuery version. Here's my code: on right click with compass: if name of tool of player is "&cServer Selector": open chest with 3...
  8. V

    Solved Toggle PMs

    I'm trying to make a command to toggle PMs, but it simply doesn't seem to work. Here's my code: command /msg [<offlineplayer>] [<text>]: aliases: /m, /tell, /t, /w, /message, /pm trigger: if arg-1 is offline: send "&c%arg-1% is not online" stop trigger...
  9. V

    Solved Message announcer

    Trying to make a message announcer, but I'm failing. What am I doing wrong? every 30 seconds: broadcast "" broadcast "&c&lTIP: &7The &7usage &7of &7the &7particle &7mod &7is &cheavily &cdiscouraged &7as &7it &7could &7result &7in &7a &7ban!" broadcast "" wait 10...
  10. V

    Solved Delete dropped item

    I know this is fairly simple, but I was wondering how I'd able to clear bowls when dropped. I've tried multiple things, and this seems to be the closest I've gotten to it. I just have no idea how to specify the item. Here is my code: every 2 ticks: loop all dropped items: delete...
  11. V

    Solved Stop all messages from appearing in chat

    So, I was looking for a way to stop a user from seeing other user's chat messages using a command to toggle it. I managed to find a skript posted by another user and applied my own changes on it. I was wondering how I'd be able to do this for everything in chat, including announcements (Like...
  12. V

    Play sound to all players

    How do I play the thunder sound to all players? thanks
  13. V

    Weird issue with prefixes

    I'm trying to make a /msg skript but I get <none> when I include prefixes in /r sometimes and other times it doesn't even work. What's wrong with my code? command /msg [<offlineplayer>] [<text>]: aliases: /m, /tell, /t, /w, /m trigger: if {chat.private.reply.%player%} is not set...
  14. V

    Solved Weird error

    I keep getting the exception "There is no player argument in this command" when I set it to offlineplayer instead of just player. Here is my code: command /ping [<offlineplayer>]: trigger: if arg-1 is not set: send "&6Your ping is &e%player's ping%ms" else...
  15. V

    Solved Adding 2 variables into 1

    I remember seeing a skript which once utilized adding 2 variables responsible for location into 1 variable. I was wondering how that could be done?
  16. V

    Solved Help with this

    Hello, I'd like to know how to stop a player from obtaining a certain item with a certain name by replace it with another item. I've been trying to do it but I almost always get stuck with making a periodical event and that really lags the server. How could I check the inventory of every player...
  17. V

    Solved Need help with PlaceholderAPI and Skript

    I've been trying to use PlaceholderAPI with skript for the past few hours but to no avail. I know that umbaska and skellet both are able to achieve this function, but I haven't found working version of them that support 1.7.10 while still maintaining this feature. If it would be possible, I'd...
  18. V

    Solved Difference between 2 values

    Hello, I was wondering how I would be able to calculate the difference between 2 numbers stored into variables. I haven't found a way to do this, so I decided to come on here to ask. Excuse me if this has been asked before but I really haven't seen any thread on this or any method online. Thanks...