Solved Need help with skript-reflect and bungeebridge

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Murepex

Member
May 15, 2022
2
0
1
22
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:
import:
    me.dommi2212.BungeeBridge.packets.PacketKickPlayer
    me.dommi2212.BungeeBridge.packets.PacketGetPlayerUUID


command /test:
    trigger:
        set {_uuid} to New PacketGetPlayerUUID(player)
        send "%{_uuid}%"

The output on the variable is „none“
And in a warn pops up in the console:
Code:
[Skript] No matching static constructor: PacketGetPlayerUUID.<init> called with (Murepex (CraftPlayer))
[doublepost=1652700673,1652630905][/doublepost]After some timeI figured it out myself, for people who have the same problem:
Code:
import:
    me.dommi2212.BungeeBridge.packets.PacketGetPlayerUUID
    me.dommi2212.BungeeBridge.packets.PacketKickPlayer

command /test2:
    trigger:
        set {_packet2} to new PacketGetPlayerUUID("%player%")
        set {_packet2} to {_packet2}.send()
        set {_packet} to new PacketKickPlayer({_packet2}, "test")
        {_packet}.send()
You need the plugins Skript, skript-reflect and BungeeBridge.
 
Status
Not open for further replies.