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:
The output on the variable is „none“
And in a warn pops up in the console:
[doublepost=1652700673,1652630905][/doublepost]After some timeI figured it out myself, for people who have the same problem:
You need the plugins Skript, skript-reflect and BungeeBridge.
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))
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()