make player execute {BungeeCommand}

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

iStopcontact

Member
Feb 18, 2017
113
2
18
23
Heey guys i am working on my own ban gui for my network
I use BungeeAdminTools a bungeecord ban plugin.

So the commands this plugin has are bungeecord global commands because the plugin is in the bungeecord server only.
Now i have this as my skript:

code_language.skript:
command /staffmenukick [<offlineplayer>]:
    aliases: smk
    permission: stereo.helper
    permission message: {@PERM}
    trigger:
        wait 2 ticks
        set {_P:%player's uuid%} to "%arg-1%" parsed as player
        open chest with 5 rows named "&5&lStaff &8» &6&l&oKick" to player
        wait 2 ticks
        format slot 10 of player with paper named "&7Schelden (Scold)" to close then run [make player execute "/gkick %arg-1% You have been kicked for inappropriate language"]

The command for a globalkick is: /gkick [player] [message]
But it doesnt work when i do it trough the menu

does someone know how i can fix this?
 
Heey guys i am working on my own ban gui for my network
I use BungeeAdminTools a bungeecord ban plugin.

So the commands this plugin has are bungeecord global commands because the plugin is in the bungeecord server only.
Now i have this as my skript:

code_language.skript:
command /staffmenukick [<offlineplayer>]:
    aliases: smk
    permission: stereo.helper
    permission message: {@PERM}
    trigger:
        wait 2 ticks
        set {_P:%player's uuid%} to "%arg-1%" parsed as player
        open chest with 5 rows named "&5&lStaff &8» &6&l&oKick" to player
        wait 2 ticks
        format slot 10 of player with paper named "&7Schelden (Scold)" to close then run [make player execute "/gkick %arg-1% You have been kicked for inappropriate language"]

The command for a globalkick is: /gkick [player] [message]
But it doesnt work when i do it trough the menu

does someone know how i can fix this?

Have you tried making the player call the command outside of the gui? I haven't worked with Bungee commands in a while, but I remember not being able to call commands from Bungee plugins via Skript. I ended up just getting CommandSync, which syncs server-side commands. I only needed it to do kicks, edit permissions, etc.
[doublepost=1499492093,1499491896][/doublepost]Skellett Proxy seems to have the ability to call Bungee commands in Skript, but I have no experience using it.
 
Have you tried making the player call the command outside of the gui? I haven't worked with Bungee commands in a while, but I remember not being able to call commands from Bungee plugins via Skript. I ended up just getting CommandSync, which syncs server-side commands. I only needed it to do kicks, edit permissions, etc.
With CommandSyncs i can send commands to all servers but still cant let them execute bungee commands
 
Status
Not open for further replies.