Jump to content

Recommended Posts

Setting Up

- Ensure that you have essentials installed.

- Set allow-silent-join-quit to true in the essentials config.yml

- Give your moderators the permissions dintyvanish.vanish, essentials.silentjoin and essentials.silentquit

- If you have DiscordSRV installed, you can also give them discordsrv.silentjoin and discordsrv.silentquit. Note that I have my Discord join and leave messages configured slightly different so you may want to change that.

- If you want your mods to join vanished, you can give them the perm essentials.silentjoin.vanish

- Once you have added Vanish.sk to your scripts folder, run /skript reload vanish

Commands

/fj, /fakejoin - Unvanishes you and broadcasts a fake join message.

- /fq, /fakequit - Vanishes you and broadcasts a fake leave message.

- /v - Toggles fakejoin/quit.

What Mods See

unknown.png

What everyone else sees

image.png.16dab514202cc2372e309c17a47666ef.png

Vanish.sk

#DintyVanish
#
#Mods need to following permissions: dintyvanish.vanish essentials.silentjoin essentials.silentquit discordsrv.silentjoin discordsrv.silentquit
#The following node is optional: essentials.silentjoin.vanish

command /fj:
    aliases: /fakejoin
    description: Sends a fake join message to Discord and the Game.
    permission: dintyvanish.vanish
    permission message: &4OI! No Vanish for you!
    trigger:
        if {vanish.%player%} is false:
            message "&6You are already visible!"
        if {vanish.%player%} is true:
            make console execute command "/essentials:v %player% disable"
            make console execute command "/discord bcast **%player% joined the server**"
            broadcast "&e%player% joined the game."
            message "&aYou have become visible."
            #make console execute command "/helpop &a[DV] %player% has become visible."
            set {vanish.%player%} to false
            loop all players:
                if loop-player has permission "dintyvanish.vanish":
                    send "&a[DV] &6%player% &6has become visible." to loop-player
        

command /fq:
    aliases: /fakequit
    description: Sends a fake quit message to Discord and the Game.
    permission: dintyvanish.vanish
    permission message: &4OI! No Vanish for you!
    trigger:
        if {vanish.%player%} is true:
            message "&6You are already vanished!"
        if {vanish.%player%} is false:
            make console execute command "/essentials:v %player% enable"
            make console execute command "/discord bcast **%player% left the server**"
            broadcast "&e%player% left the game."
            message "&aYou are now invisible."
            #make console execute command "/helpop &a[DV] %player% has become invisible."
            set {vanish.%player%} to true
            loop all players:
                if loop-player has permission "dintyvanish.vanish":
                    send "&a[DV] &6%player% &6has vanished." to loop-player

command /v:
    aliases: /vanish
    description: Toggles fj/fq
    permission: dintyvanish.vanish
    permission message: &4OI! No Vanish for you!
    trigger:
        if {vanish.%player%} is true:
            make player execute command "/fj"
        else if {vanish.%player%} is false:
            make player execute command "/fq"


on join:
    if player has permission "essentials.silentjoin.vanish":
        #make console execute command "/helpop &c[DV] %player% joined vanished and silently."
        set {vanish.%player%} to true
        loop all players:
            if loop-player has permission "dintyvanish.vanish":
                send "&a[DV] &6%player% &6joined vanished and silently." to loop-player
    else if player has permission "dintyvanish.vanish":
        set {vanish.%player%} to false
        broadcast "&e%player% joined the game."
        make console execute command "/discord bcast **%player% joined the server**"

on quit:
    if player has permission "essentials.silentquit":
        if {vanish.%player%} is false:
            broadcast "&e%player% left the game."
            make console execute command "/discord bcast **%player% left the server**"
        if {vanish.%player%} is true:
            #make console execute command "/helpop &c[DV] %player% quit silently."
            loop all players:
                if loop-player has permission "dintyvanish.vanish":
                    send "&a[DV] &6%player% &6quit silently." to loop-player

Let me know if there are any bugs.

Link to post
Share on other sites

Whats the point of the vanish command if you are just going to execute an essentials console command?

Also an easier way to send a message to all players with a certain permission is
 

send "hey" to all players where [input has permission "hello"]

 

 

[VIP] - 7/27/2020
Support - 7/08/2020
Senior Support - 8/02/2020


image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png

Great website if you need help with any plugins or answers to commonly asked questions - https://minehut.xyz/

IGN: _Tarna_
Discord: Tarna256#867

Link to post
Share on other sites
30 minutes ago, DintyB said:

yes but this way it doesnt need any addons

and also essentials vanish does not do fake join/quit messages, that is really the point of this script

Nice but there is a way to hide players with vanilla skript.
https://skripthub.net/docs/?id=2829

If you use this, this will make it you don't need essentials either. And the other thing I said in my other message will make the skript just a few lines shorter. Just a suggestion. 

 

[VIP] - 7/27/2020
Support - 7/08/2020
Senior Support - 8/02/2020


image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png

Great website if you need help with any plugins or answers to commonly asked questions - https://minehut.xyz/

IGN: _Tarna_
Discord: Tarna256#867

Link to post
Share on other sites

very cool

Website Developer - Graphic Designer - Skript Developer - Professional Builder

Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I develop pretty static websites when I'm bored. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere 🙂

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...