Jump to content

I need help with a whisper command


PineconePinecone

Recommended Posts

Everything is fine. No bugs

command /whisper <player> [<text>]:
    description: Whisper to someone without having to be friends!
    aliases: /w
    permission: whisper.use
    permission message: &c&l[!] You do not have permission to use this command!
    trigger:
        if arg-1 is set:
            send "&7%player% whispers to you: %arg-2%" to arg-1
            send "&7You whispered this to %arg-1%: %arg-2%" to player

But I want to add something at the end that prevents you from messaging yourself. With the text being "&c&l[!] You cannot message yourself!". I tried doing this and it worked, but it still showed the the text of your message and who you sent it to. As well as a message and who sent it to you. Could anyone help with this? If you can, thanks!

Link to comment
Share on other sites

On 3/18/2022 at 8:11 PM, PineconePinecone said:

I tried it but it still showed whatever I sent myself. It kinda defeats the whole purpose of not being able to message yourself

add "stop" after the second line (send "&cYou can't message yourself!" to executor)
 

if arg-1 is executor:
    send "&cYou can't message yourself!" to executor
    stop

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
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...