Jump to content

Sign Editor Script


Cheezburgurz

Recommended Posts

Looking through my scripts folder and finding old scripts that were quite useful to me and would be useful to other people. If you want a quick way to edit signs, here you go. Wrote this pretty quickly a long time ago. Pretty useful, hope you find it useful too.

options:
    perm: cheez.signedit
 
command /signedit <Number> [<Text=" ">]:
    aliases: /editsign, /modifysign, /modsign
    permission: {@perm}
    permission message: §cYou require {@perm} permission to use this command!
    trigger:
        if arg-1 is set:
            if arg-1 is less than 1:
                message "§3Number must be between 1 and 4."
            if arg-1 is more than 4:
                message "§3Number must be between 1 and 4."
            else:
                set {_text} to arg-2
                replace all "&" in {_text} with "§" # allow use of ampersands for text styling
                replace all "§§" in {_text} with "&" # allow use of double ampersands to negate that
                set line arg-1 of target block to {_text}
                message "§3Successfully edited sign!"
        if arg-1 is not set:
            message "§3Proper usage: §e/signedit <Line> <Text (Leave blank to clear line.)>"
Edited by Cheezburgurz
changed comment at top

im probably a human

Link to comment
Share on other sites

  • 5 months later...
options:
    perm: cheez.signedit
 
command /signedit <Number> [<Text=" ">]:
    aliases: /editsign, /modifysign, /modsign
    permission: {@perm}
    permission message: §cYou require {@perm} permission to use this command!
    trigger:
        if arg-1 is set:
            if arg-1 is less than 1:
                message "§3Number must be between 1 and 4."
            if arg-1 is more than 4:
                message "§3Number must be between 1 and 4."
            else:
                set {_text} to arg-2
                replace all "&" in {_text} with "§" # allow use of ampersands for text styling
                replace all "§§" in {_text} with "&" # allow use of double ampersands to negate that
                set line arg-1 of target block to {_text}
                message "§3Successfully edited sign!"
        if arg-1 is not set:
            message "§3Proper usage: §e/signedit <Line> <Text (Leave blank to clear line.)>"

 

⭢ Founder Of Website 

The Website is men't to help you with all the skript you need to start your server. Soon we will have tutorials on how to use certain things, but for now you should go to Minehut.xyz for tutorials. Again, The Website is men't for skript help and skript requests.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
On 12/18/2020 at 5:47 PM, emopediaMC said:

can someone pls lock for necro

cAn sOmEoNe pLeAsE lOcK fOr nEcRoOoO

Surely you understand you just necroposted, seriously i dont understand why people do this

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

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