Jump to content

Name Editor Skript | Version 1.0


BelugaMC
 Share

Recommended Posts

options:
  version: 1.0
  prefix: &7[&6Name&eEditor&7]
  noperm: &cYou are not allowed to do this!
  perm: ne.*

command /ne [<text>] [<player>] [<text>]:
  trigger:
    if arg-1 is not set:
      message "&f&l&m----------------------" to player
      message "&6&lName Editor" to player
      message "&eMade by BelugaMC" to player
      message "" to player
      message "&6/ne setprefix <player> <prefix>" to player
      message "&6/ne setsuffix <player> <suffix>" to player
      message "&6/ne removeprefix <player>" to player
      message "&6/ne removesuffix <player>" to player
      message "&6/ne help" to player
      message "&f&l&m----------------------" to player
    if arg-1 is "help":
      message "&f&l&m----------------------" to player
      message "&6&lName Editor" to player
      message "&eMade by BelugaMC" to player
      message "" to player
      message "&6/ne setprefix <player> <prefix>" to player
      message "&6/ne setsuffix <player> <suffix>" to player
      message "&6/ne removeprefix <player>" to player
      message "&6/ne removesuffix <player>" to player
      message "&6/ne help" to player
      message "&f&l&m----------------------" to player
    if arg-1 is "setprefix":
      if arg-2 is set:
        if arg-3 is set:
          set arg-2's prefix to "%arg-3% "
          send "{@prefix} &rSet %arg-2%'s prefix to %arg-3%" to player
    if arg-1 is "setsuffix":
      if arg-2 is set:
        if arg-3 is set:
          set arg-2's suffix to "%arg-3% "
          send "{@prefix} &rSet %arg-2%'s suffix to %arg-3%" to player
    if arg-1 is "removeprefix":
      if arg-2 is set:
        if arg-3 is not set:
          set arg-2's prefix to ""
          send "{@prefix} &rRemoved %arg-2%'s prefix" to player
    if arg-1 is "removesuffix":
      if arg-2 is set:
        if arg-3 is not set:
          set arg-2's suffix to ""
          send "{@prefix} &rRemoved %arg-2%'s suffix" to player
    if arg-1 is not "removeprefix" or "removesuffix" or "setsuffix" or "setprefix" or "help":
      if arg-1 is set:
        send "{@prefix} &rIncorrect syntax! Type ''/ne help'' for help." to player
     

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
 Share



×
×
  • Create New...