#screenshare script for box server

1 messages · Page 1 of 1 (latest)

civic shoal
#

my friend gave a script for screenshare for a box server but one part of it does not work and idk why can anyone help?
this is the message that i got:

#
command /setSSROOM:
    permission: ss.setSS
    trigger:
        set {ssROOM} to location of block at location of player
        send "&9&lLessbox &7ss room was set to &9%{ssROOM}%" 

command /ss [<player>]:
    permission: ss.screenshare
    trigger:
        if arg-1 isn't set:
            send "&9&lLessbox &7You must also inclued a player in the command such as the person you want to SS!"
            stop
        else:
            teleport arg-1 to {ssROOM}
            teleport player to {SSROOM}
            send "&9&llessbox &7You have been teleported to the SS room with &9%arg-1%&7 in order to ss them." to player
            send "&8&llessbox &7You have been sent to the SS room by &9%player%&7 DO NOT LEAVE, &7please join screenshare vc in &9/discord" to arg-1
            broadcast "&9&llessbox &9%arg-1% &7is getting screen shared by &9%player%"
            set {beingSS::%arg-1's uuid%} to true

command /stopss [<player>]:
    permission: ss.stopss
    trigger:
        if arg-1 isn't set:
            send "&9&lLessbox &cPlease select a player that you want to stop the ss off, /stopss PLAYER"
        else:
            teleport arg-1 to {spawn}
            send "&9&lLessbox &aYou are no longer being ssed!" to arg-1
            delete {beingSS::%arg-1's uuid%}
on command:
    if {beingSS::%player's uuid%} is set:
        if event-command is "/discord":
            stop
        else:
            cancel event
            send "&7[&9&lLessbox&7] &cYou may not use commands while being SSed!"

on disconnect:
    if {beingSS::%player's uuid%} is set:
        ban player due to "&cYou may not log out while being SSed" for 7 days
        broadcast "&9&lLessbox &9%player% &7logged out while being SSed so they were banned for &98 &7days!"
        delete {beingSS::%player's uuid%}
#

the code:

lament river
#

crazy

blissful stump
#

Try removing event- or using the command variable in quotes, skript is weird like that sometimes.

#

Side note: you're banning the player for 7 days but the message says 8 days 😛

lean helm
#

Helpp the /stopss doesnt work

blissful stump