Jump to content

HeavyGames

Recommended Posts

command /broadcast [<text>]:
    aliases: bc 
    trigger:
        if executor is not a player:
            set {_perm} to true 
        else:
            if getHasPermission(player, "custom.command.broadcast") is true:
                set {_perm} to true 
        if {_perm} is not set:
            message "&cYou do not have permission to use this command."
        else:
            if arg 1 is not set:
                message "&eUsage: &d/broadcast &a&l&oServer&c&l&oName&7&o>> <message>"
            else:
                broadcast colored arg 1

command /messagetome [<text>]:
    aliases: mtm, m2m
    trigger:
        if getHasPermission(player, "custom.command.messagetome") is false:
            message "&cYou do not have permission to use this command."
        else:
            if arg 1 is not set:
                message "&eUsage: &d/messagetome &f<message>"
            else:
                message colored arg 1

Edited by yofireblazeere
  • Like 1

Default since 2019

Bought vip in 2021

 

Link to comment
Share on other sites

Nice, but instead of using {_perm} you could simplify it to add a check at the beginning of the skript

command /broadcast [<text>]:
    aliases: bc 

    permission: custom.command.broadcast

    permission message: &cYou do not have permission to use this command.
    trigger:
        if arg 1 is not set:
            message "&eUsage: &d/broadcast &a&l&oServer&c&l&oName&7&o>> <message>"
        else:
            broadcast colored arg 1

Twitch Affiliate, YouTuber and Minehut Content Creator

(100,000+ Combined Views, 1,100+ Combined Followers & Subs, 20,000+ Combined Unique Players)

IGN:
[YOUTUBE] Centrect

 Please don't DM me for support, go here or join Minehut's Discord if you need assistance.

 

Link to comment
Share on other sites

Some improvements are possible but, who cares?!

Good one! Love it 😉

  • Like 1

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

On 1/21/2021 at 12:32 AM, HeavyGames said:

Who is preceding?

hes a friend of mine, he released his skripts for one of his servers.

this is HIS broadcast skript..
 

command /broadcast [<text>]:

    aliases: bc 

    trigger:

        if executor is not a player:

            set {_perm} to true 

        else:

            if getHasPermission(player, "hydrogen.command.broadcast") is true:

                set {_perm} to true 

        if {_perm} is not set:

            message "&cYou do not have permission to use this command."

        else:

            if arg 1 is not set:

                message "&eUsage: &d/broadcast &f<message>"

            else:

                broadcast colored arg 1



command /messagetome [<text>]:

    aliases: mtm, m2m

    trigger:

        if getHasPermission(player, "hydrogen.command.messagetome") is false:

            message "&cYou do not have permission to use this command."

        else:

            if arg 1 is not set:

                message "&eUsage: &d/messagetome &f<message>"

            else:

                message colored arg 1

so give credit mayb?

Link to comment
Share on other sites

18 hours ago, hangtight said:

hes a friend of mine, he released his skripts for one of his servers.

this is HIS broadcast skript..
 


command /broadcast [<text>]:

    aliases: bc 

    trigger:

        if executor is not a player:

            set {_perm} to true 

        else:

            if getHasPermission(player, "hydrogen.command.broadcast") is true:

                set {_perm} to true 

        if {_perm} is not set:

            message "&cYou do not have permission to use this command."

        else:

            if arg 1 is not set:

                message "&eUsage: &d/broadcast &f<message>"

            else:

                broadcast colored arg 1



command /messagetome [<text>]:

    aliases: mtm, m2m

    trigger:

        if getHasPermission(player, "hydrogen.command.messagetome") is false:

            message "&cYou do not have permission to use this command."

        else:

            if arg 1 is not set:

                message "&eUsage: &d/messagetome &f<message>"

            else:

                message colored arg 1

so give credit mayb?

skripts are very hard to keep original, especially when its such a basic command. I dont see any need why they would need to give creds, also no offence to either side but its one of the most inefficient skripts ive ever seen so I wouldnt even use "proceedings"s skript.

Twitch Affiliate, YouTuber and Minehut Content Creator

(100,000+ Combined Views, 1,100+ Combined Followers & Subs, 20,000+ Combined Unique Players)

IGN:
[YOUTUBE] Centrect

 Please don't DM me for support, go here or join Minehut's Discord if you need assistance.

 

Link to comment
Share on other sites

2 hours ago, Centrect said:

skripts are very hard to keep original, especially when its such a basic command. I dont see any need why they would need to give creds, also no offence to either side but its one of the most inefficient skripts ive ever seen so I wouldnt even use "proceedings"s skript.

he is using custom permissions.. but its one of his skripts from his skript folder that he released for his server. + it literally looks  the same and he didn't even provide the function so it wouldn't even work.

 

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