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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Need help with skript-reflect and bungeebridge

Discussion in 'Skript' started by Murepex, May 15, 2022.

  1. Murepex

    Murepex Member

    Joined:
    May 15, 2022
    Messages:
    2
    Likes Received:
    0
    Skript Version: 2.6.1
    Server Version:1.18.2 (Paper)
    Bungee Version: Waterfall

    So i wanted to do a /kick command on an bungeecord with skript-reflect. Im using the BungeeBridge API but it just outputs nothing:

    Code (Text):
    1. import:
    2.     me.dommi2212.BungeeBridge.packets.PacketKickPlayer
    3.     me.dommi2212.BungeeBridge.packets.PacketGetPlayerUUID
    4.  
    5.  
    6. command /test:
    7.     trigger:
    8.         set {_uuid} to New PacketGetPlayerUUID(player)
    9.         send "%{_uuid}%"
    The output on the variable is „none“
    And in a warn pops up in the console:
    Code (Text):
    1. [Skript] No matching static constructor: PacketGetPlayerUUID.<init> called with (Murepex (CraftPlayer))
    --- Double Post Merged, May 16, 2022, Original Post Date: May 15, 2022 ---
    After some timeI figured it out myself, for people who have the same problem:
    Code (Text):
    1. import:
    2.     me.dommi2212.BungeeBridge.packets.PacketGetPlayerUUID
    3.     me.dommi2212.BungeeBridge.packets.PacketKickPlayer
    4.  
    5. command /test2:
    6.     trigger:
    7.         set {_packet2} to new PacketGetPlayerUUID("%player%")
    8.         set {_packet2} to {_packet2}.send()
    9.         set {_packet} to new PacketKickPlayer({_packet2}, "test")
    10.         {_packet}.send()
    You need the plugins Skript, skript-reflect and BungeeBridge.
     

Share This Page

Loading...