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.

Help Request Layout

Aug 2, 2020 at 5:38 AM
Help Request Layout
  • Hello, I've been wondering how to have custom player heads in my ban GUI and by clicking a player head it bans/mute/kicks the player.


    Format rn:
    command /bangui:
    permission: bangui.use
    trigger:
    open virtual chest inventory with size 2 named "Ban List" to player
    format gui slot 0 of player with barrier named "Perm Ban" to run:
    execute player command "permbangui"
    format gui slot 1 of player with diamond block named "30 day ban" to run:
    execute player command "tempbangui"
    format gui slot 2 of player with iron block named "20 day ban" to run:
    execute player command "tempa"
    format gui slot 3 of player with gold block named "10 day ban" to run:
    execute player command "Temp3"
    format gui slot 4 of player with coal block named "7 day ban" to run:
    execute player command "temp5"
    format gui slot 5 of player with stone block named "7 day mute" to run:
    execute player command "mute1"
    format gui slot 6 of player with cobble named "1 day mute" to run:
    execute player command "mute3"
    format gui slot 7 of player with wood pickaxe named "1 hour mute" to run:
    execute player command "mute5"
    format gui slot 8 of player with stick named "kick" to run:
    execute player command "kick1"
    command /permbangui:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "Please type in chat who you would like to ban with /bang [player]" to player
    command /bang [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "ban %arg-1%"
    if arg 1 isn't set:
    send "/bang [<player>]" to player
    command /tempbangui:
    trigger:
    open virtual chest inventory with size 1 named "Tempban" to player
    format gui slot 0 of player with player head named "who?" to run:
    send "please type in chat who you would like to ban with /tempb [<player>]" to player
    command /tempb [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "tempban %arg-1% 30d"
    if arg 1 isn't set:
    send "/temb [<player>]" to player
    command /tempa:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "Please name the player you would like to ban with /tempaban [<player>]" to player
    command /tempaban [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "tempban %arg-1% 20d"
    if arg 1 isn't set:
    send "/tempaban [<player>]" to player
    command /temp3:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "Type in chat who you would like to ban with /temp4 [<player>]"
    command /temp4 [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "tempban %arg-1% 10d"
    if arg 1 isn't set:
    send "/temp4 [<player>]" to player
    command /temp5:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "Select the player you would like to ban with /temp6 [<player>]"
    command /temp6 [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "tempban %arg-1% 7d"
    command /mute1:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "select the player you would like to ban with /mute2"
    command /mute2 [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "mute %arg-1% 7d"
    if arg 1 isn't set:
    send "/mute2 [<player>]" to player
    command /mute3:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "Select the player you would like to mute with /mute4" to player
    command /mute4 [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "mute %arg-1% 1d"
    if arg 1 isn't set:
    send "/mute4 [player]" to player
    command /mute5:
    trigger:
    open virtual chest inventory with size 1 named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "Select the player you would like to mute with /mute6" to player
    command /mute6 [<text>]:
    trigger:
    if arg 1 is set:
    execute console command "mute %arg-1% 1h"
    if arg 1 isn't set:
    send "/mute6 [player]" to player
    command /kick1:
    trigger:
    open virtual chest inventory named "&a" to player
    format gui slot 0 of player with player head named "Who?" to run:
    send "do /kick2 [player]"
    command /kick2 [<text>]:
    trigger:
    execute console command "kick %arg-1%"
    i want it to have custom player heads.
    this doesn't work either, im using minehut:
    set {loop-players} to all players

    set {loop-players} to {_gui}
    set {_gui} to {playername}
    set{_playername} to {loop-players}
    open virtual chest inventory named "Ban GUI" to
    format gui slot 0 of player with {_gui} named "{loop-players}"





    Im using 1.16.1 server

    Addons using:
    tuSKe and Skquery.
pokw, Darki, StarBen_ and 1 other person like this.