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. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Hello,
    I'm looking to retrieve the rental of a double chest I used 'getLeftSide()' & 'getRightSide()' I then get the two inventory of my booths but I can't retrieve the block with 'getHolder()', do you have any idea?


    Resolved:

    Code (Skript):
    1.  
    2.     set {_block} to event.getClickedBlock()
    3.     set {_inv} to {_block}'s inventory
    4.    
    5.     set {_left} to {_inv}.getLeftSide()
    6.     set {_holderLeft} to {_left}.getHolder()
    7.    
    8.     set {_right} to {_inv}.getRightSide()
    9.     set {_holderRight} to {_right}.getHolder()
    10.    
    11.     set {_LocLeft} to {_holderLeft}.getLocation()
    12.     set {_LocRight} to {_holderRight}.getLocation()
    13.  
    14.     send "%{_LocLeft}%   /   %{_LocRight}%"
     
    #101 Spartan9802, Oct 16, 2017
    Last edited: Oct 16, 2017
  2. f

    feerko Member

    Joined:
    Feb 19, 2017
    Messages:
    70
    Likes Received:
    1
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
  6. p

    player2709 Member

    Joined:
    Aug 1, 2017
    Messages:
    10
    Likes Received:
    0
    Hey,
    i I have tried to check if a player is in the group "owner":

    Code (Skript):
    1.  
    2. set {groupcheck} to {PermissionsEx}.getuser({user}).ingroup("owner")
    3.  
    It always returns "<none>". Can someone explain me how I can check if a user is in the group or how I can get the group of the player please?
     
  7. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    154
    Likes Received:
    155
    I have no experience with PermissionEx's API, but skript-mirror is case-sensitive. If PEX's docs show capitalized methods and fields, you must capitalize them the same way.
     
  8. x

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    170
    Likes Received:
    8
    Hello, I want to make a thing, when the player leaves the server, force the player's computer to access the server's official website page.
    Can you provide an example?
    @btk5h @Snow-Pyon
     
  9. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,233
    Likes Received:
    172
    Medals:
    You can't do that lol. And even if it was possible it'd be stupidly annoying so I don't really recommend you this kind of advertising, you'll lose players.
     
    • Like Like x 1
  10. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    125
    Medals:
    You mean your favorite minecraft server isn't malicious?
     
  11. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Hi,
    I've seen your last update with the possibility to add effects and expressions it's really great, skquery didn't work anymore to do it ^^
    Could you add a function system without argument?
     
  12. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,233
    Likes Received:
    172
    Medals:
    what do you mean by function with no arguments?
     
  13. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Here is an example ^^
    When I do this skript returns an error to me

    Code (Skript):
    1. function MyFunction():
    2.     #Code
    3.    
    4. command /test:
    5.     trigger:
    6.         MyFunction()
     
  14. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,233
    Likes Received:
    172
    Medals:
    This was fixed a long time ago, it's working fine for me using the dev32d.
     
  15. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Humm I had to stay in dev-25 for the 1.8, besides I saw that Bensku worked on support 1.8 for his last update ?
     
  16. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,233
    Likes Received:
    172
    Medals:
    It works on 1.8.8, though, if you have an error you may not expect support for that version.
     
  17. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Edit: I misunderstood, sorry x)
     
  18. x

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    170
    Likes Received:
    8
    This not ads, my server has a keep online activities, when the player reached a certain amount of time online every day, he can access the web through the menu to get reward, but if he forgot to get the reward when quit the game that day, can pop up a page for him, let him to pick up
     
  19. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    You can't execute instructions on a player's computer it's a security issue, but you can send them a link
     
  20. x

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    170
    Likes Received:
    8
    I think I understand.
     
Loading...