NAOSAMA

Untitled

Mar 10th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.69 KB | None | 0 0
  1. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  2. #--▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀
  3. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  4. #--
  5. #--▒█▀▀▀█ ▒█▀▀█ ▒█▀▀█ ▀█▀ ▒█▀▀█ ▀▀█▀▀   ▒█▀▄▀█ ░█▀▀█ ▒█▀▀▄ ▒█▀▀▀   ▒█▀▀█ ▒█░░▒█
  6. #--░▀▀▀▄▄ ▒█░░░ ▒█▄▄▀ ▒█░ ▒█▄▄█ ░▒█░░   ▒█▒█▒█ ▒█▄▄█ ▒█░▒█ ▒█▀▀▀   ▒█▀▀▄ ▒█▄▄▄█
  7. #--▒█▄▄▄█ ▒█▄▄█ ▒█░▒█ ▄█▄ ▒█░░░ ░▒█░░   ▒█░░▒█ ▒█░▒█ ▒█▄▄▀ ▒█▄▄▄   ▒█▄▄█ ░░▒█░░
  8. #--
  9. #--░█▀▀█ ▒█░░▒█ ▒█░▒█ ░█▀▀█ ▒█▀▄▀█   ░█▀▀█ ▒█░░░ ░█▀▀█ ▒█░░░ ▀█▀
  10. #--▒█▄▄█ ▒█▄▄▄█ ▒█▀▀█ ▒█▄▄█ ▒█▒█▒█   ▒█▄▄█ ▒█░░░ ▒█▄▄█ ▒█░░░ ▒█░
  11. #--▒█░▒█ ░░▒█░░ ▒█░▒█ ▒█░▒█ ▒█░░▒█   ▒█░▒█ ▒█▄▄█ ▒█░▒█ ▒█▄▄█ ▄█▄
  12. #--
  13. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  14. #--▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀
  15. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  16. #
  17. #--▒█▀▄▀█ ░█▀▀█ ▒█▀▀▄ ▒█▀▀▀   ▒█▀▀▀ ▒█▀▀▀█ ▒█▀▀█
  18. #--▒█▒█▒█ ▒█▄▄█ ▒█░▒█ ▒█▀▀▀   ▒█▀▀▀ ▒█░░▒█ ▒█▄▄▀
  19. #--▒█░░▒█ ▒█░▒█ ▒█▄▄▀ ▒█▄▄▄   ▒█░░░ ▒█▄▄▄█ ▒█░▒█
  20. #--
  21. #--▒█▀▀▀█ ▒█▀▀█ ▒█▀▀█ ░█▀█░ ▒█▀▄▀█ ▒█▀▀▀ ▒█▀▀█ ▒█▀▀▀█
  22. #--▒█░░▒█ ▒█▄▄█ ▒█░▄▄ █▄▄█▄ ▒█▒█▒█ ▒█▀▀▀ ▒█▄▄▀ ░▀▀▀▄▄
  23. #--▒█▄▄▄█ ▒█░░░ ▒█▄▄█ ░░░█░ ▒█░░▒█ ▒█▄▄▄ ▒█░▒█ ▒█▄▄▄█
  24. #--
  25. #--▒█▀▀▀█ ▒█▀▀▀ ▒█▀▀█ ▒█░░▒█ ▒█▀▀▀ ▒█▀▀█
  26. #--░▀▀▀▄▄ ▒█▀▀▀ ▒█▄▄▀ ░▒█▒█░ ▒█▀▀▀ ▒█▄▄▀
  27. #--▒█▄▄▄█ ▒█▄▄▄ ▒█░▒█ ░░▀▄▀░ ▒█▄▄▄ ▒█░▒█
  28. #--
  29. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  30. #--▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀
  31. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  32.  
  33. # Skript made by Ayham Alali [iTzAyhamHD] YT: ayham5131
  34. # Made for OPG4MERS server by the OWNER Ayham Alali ^_^
  35. # It can be used for other servers as well :)
  36. # please support me if you can by donating: paypal.me/ayhamalali
  37. # Thank you for Downloading/Using my Skripts ❤
  38. # Tools Options [Custom] :)
  39.  
  40.  
  41. # Don't forget to donate ❤ » paypal.me/ayhamalali
  42. # Todo:
  43. # v1.1:
  44. # - /rename reset √
  45. # - emojis support √
  46. # - added emoji command √
  47. # - blacklist words √
  48. # - blacklist items √
  49. # - check "if player's tool is set" √
  50. # - Enchant √ (remove feature removes all enchantments)
  51. # - Add help (arg) √
  52. # - $
  53. # - $
  54. # - Add suggestions in the discuss page of the plugin :)
  55. # v1.2:
  56. # - name history
  57. # - GUI for emojis (!)
  58. # - Undo feature
  59. # - $
  60. # - $
  61. # - $
  62. # - Add suggestions in the discuss page of the plugin :)
  63. #
  64.  
  65.  
  66.  
  67. options:
  68.  
  69. # DO NOT CHANGE (NOT CHANGABLE)
  70. ver: 1.1
  71. console: &e&lCTO&7>
  72.  
  73. # Configuration (Changable)
  74. p: &e&l&oToolsOptions&7»
  75. CheckUpdate: true
  76. UpdateCheckPerm: cto.updatecheck
  77. blacklistwords: "word1" or "word2" or "word3" or "word4" or "word5" or "word6" # Syntqax: "word1" or "word2" or "word3" ... | v1.1
  78. blacklistitems: tripwire_hook or emerald_block or diamond_block or iron_ore or piston # Syntax: item1 or item2 or item3 ... | v1.1
  79.  
  80. # Messages (Changable)
  81. NoPerm: &c&oYou don't have enough permissions dude!
  82. LoreUsage: [nl][p] &c/[cmd] &7set&8/&7add <Line number> <Lore>[nl][p] &c/[cmd] &7remove&8/&7clear &7<line number>&8/&7all[nl][p] &c/[cmd] &7help[nl]&7 # Variables: [cmd] for the command, [nl] new line, [p] prefix
  83. LoreSuccess: &a&oNew Lore &7&o(line: &c&o[line]&7&o)&a&o:&r [lore] # << [line] for used line >> << [lore] for the new lore text>>
  84. LoreCleared: &a&oCleared line &c&o[line] # << [line] for the line>>
  85. LoreAllCleared: &a&oCleared lore of your item
  86. RenameUsage: [nl][p] &c/[cmd]&7 <name>[nl][p] &c/[cmd]&7 reset[nl][p] &c/[cmd]&7 help[nl]&7
  87. RenameSuccess: &a&oRenamed:&r [name] # << [name] for the new name>>
  88. RenameResetSuccess: &a&oReseted tool's name
  89. RenameBlacklistItems: &cYou can't rename this item. # v1.1
  90. RenameBlacklistWords: &cYou can't use this name. # v1.1
  91. ShinyError: &c&oYour item has enchanments and it's shiny!
  92. ShinySuccess: &a&oEnjoy your new Shiny item!
  93. EnchantUsage: [nl][p] &c/[cmd] &7add [enchantment name] [level][nl][p] &c/[cmd] &7set [enchantment name] [level][nl][p] &c/[cmd] &7removeall[nl][p] &c/[cmd] &7help[nl]&7
  94. EnchantSucess: &aYour tool has been successfully enchanted with &7[enchantment] [level] # << [enchantment] [level] >>
  95. EmojiDisabled: &aEmojis&7 are now &c&lDISABLED # v1.1
  96. EmojiEnabled: &aEmojis&7 are now &a&lENABLED # v1.1
  97.  
  98. # Lore Configuration (Changable)
  99. LoreCmd: lore
  100. LorePerm: cto.cmd.lore
  101. LoreAliases: lr
  102.  
  103. # Emoji Configuration (Changable) # v1.1
  104. EmojiCmd: emoji
  105. EmojiPerm: cto.cmd.emoji
  106. EmojiAliases: em
  107.  
  108. # Rename Configuration (Changable)
  109. RenameCmd: rename
  110. RenamePerm: cto.cmd.rename
  111. RenameAliases: ren
  112.  
  113. # Shiny Configuration (Changable)
  114. ShinyCmd: Shiny
  115. ShinyPerm: cto.cmd.shiny
  116. ShinyAliases: shi
  117.  
  118.  
  119. # Enchant Configurations (Changable) # v1.1
  120. EnchantCmd: enchant
  121. EnchantPerm: cto.cmd.enchant
  122. EnchantAliases: ench
  123.  
  124.  
  125.  
  126.  
  127. # -----
  128. #
  129. # CODE - DO NOT CHANGE IF YOU DON'T KNOW WHAT ARE YOU DOING.
  130. #
  131. # -----
  132.  
  133.  
  134.  
  135. on load:
  136. send "&b<&3----&b>> &c&l&oTools Options&b <<&3----&b>" to console
  137. send " " to console
  138. send "{@console} &aRunning on version &c{@ver}" to console
  139. send "{@console} &bThank you for downloading/using my skripts :)" to console
  140. send "{@console} &eSkript made by &aAyham Alali &cYT&7:&a@ayham5131" to console
  141. send " " to console
  142. send "&b<&3----&b>> &c&l&oTools Options&b <<&3----&b>" to console
  143. set {_NewVer} to text from "http://pastebin.com/raw/iWv04uP8"
  144. set {_UpdateInfo} to text from url "http://pastebin.com/raw/m8CD5ReN"
  145. if "{@CheckUpdate}" is "true":
  146. send "{@console} &eChecking for update..." to console
  147. if "{@CheckUpdate}" is "true":
  148. if "%{_NewVer}%" is not "{@ver}":
  149. replace all "[nl]" with new line in {_UpdateInfo}
  150. replace all "[p]" with "{@p}" in {_UpdateInfo}
  151. send "&3<&b&l!&3>&3----&b*&3----&3<&b&l!&3>" to console
  152. send "{@console} &aThere is a new update for &9&oTools Options&7, &aYou are using version &c{@ver}&7, &aNew version&7 > &c%{_NewVer}%" to console
  153. send "{@console} &aUpdate info: %colored {_UpdateInfo}%" to console
  154. send "&3<&b&l!&3>&3----&b*&3----&3<&b&l!&3>" to console
  155. else if "%{_NewVer}%" is "{@ver}":
  156. send "{@console}&a is up to date&7, &aNo new updates." to console
  157.  
  158. loop all players:
  159. if loop-player has permission "{@UpdateCheckPerm}":
  160. if "%{_NewVer}%" is not "{@ver}":
  161. replace all "[nl]" with new line in {_UpdateInfo}
  162. replace all "[p]" with "{@p}" in {_UpdateInfo}
  163. send "&3<&b&l!&3>&3----&b*&3----&3<&b&l!&3>" to loop-player
  164. send "{@p} &aThere is a new update for &9&oTools Options&7, &aYou are using version &c{@ver}&7, &aNew version&7 > &c%{_NewVer}%" to loop-player
  165. send "{@p} &aUpdate info: &c%colored {_UpdateInfo}%" to loop-player
  166. send "&3<&b&l!&3>&3----&b*&3----&3<&b&l!&3>" to loop-player
  167. else if "%{_NewVer}%" is "{@ver}":
  168. send "{@p}&a is up to date&7, &aNo new updates." to loop-player
  169. wait a tick
  170. send "{@console} &ahas been loaded successfully." to console
  171.  
  172. on unload:
  173. send "{@console} &chas been unloaded successfully." to console
  174.  
  175.  
  176.  
  177. # ➀➁➂➃➄➅➆➇➈➉☹☺❤☼♛✈☠☁✰❆«✔✖☻»⚠
  178. # [1][2][3][4][5][6][7][8][9][10][:(][:)][<3][sun][crown][plane][skull][cloud][star][snow][<][v][x][:-)][>][caution]
  179. # Thank you _Vlad1101_ for the emojis, you made save some time.
  180.  
  181. command /{@EmojiCmd} [<text>]:
  182. permission: {@EmojiPerm}
  183. permission message: {@NoPerm}
  184. description: &a&oShow Emojis shortcuts.
  185. aliases: {@EmojiAliases}
  186. trigger:
  187. if arg-1 is "toggle":
  188. if {cto::emoji::%player%} is not set:
  189. set {cto::emoji::%player%} to true
  190. send "{@p} {@EmojiEnabled}"
  191. stop
  192. if {cto::emoji::%player%} is false:
  193. set {cto::emoji::%player%} to true
  194. send "{@p} {@EmojiEnabled}"
  195. stop
  196. if {cto::emoji::%player%} is true:
  197. set {cto::emoji::%player%} to false
  198. send "{@p} {@EmojiDisabled}"
  199. stop
  200. if arg-1 is "help":
  201. send "&c1&7. &aTip&7» &a[text] &7» &8[&aemoji&8]"
  202. send "&c2&7. &a[1] &7» &8[&a➀&8]"
  203. send "&c3&7. &a[2] &7» &8[&a➁&8]"
  204. send "&c4&7. &a[3] &7» &8[&a➂&8]"
  205. send "&c5&7. &a[4] &7» &8[&a➃&8]"
  206. send "&c6&7. &a[5] &7» &8[&a➄&8]"
  207. send "&c7&7. &a[6] &7» &8[&a➅&8]"
  208. send "&c8&7. &a[7] &7» &8[&a➆&8]"
  209. send "&c9&7. &a[8] &7» &8[&a➇&8]"
  210. send "&c10&7. &a[9] &7» &8[&a➈&8]"
  211. send "&c11&7. &a[10] &7» &8[&a➉&8]"
  212. send "&c12&7. &a[<3] &7» &8[&a❤&8]"
  213. send "&c13&7. &a[sun] &7» &8[&a☼&8]"
  214. send "&c14&7. &a[crown] &7» &8[&a♛&8]"
  215. send "&c15&7. &a[plane] &7» &8[&a✈&8]"
  216. send "&c16&7. &a[skull] &7» &8[&a☠&8]"
  217. send "&c17&7. &a[cloud] &7» &8[&a☁&8]"
  218. send "&c18&7. &a[star] &7» &8[&a✰&8]"
  219. send "&c19&7. &a[snow] &7» &8[&a❆&8]"
  220. send "&c20&7. &a[<] &7» &8[&a«&8]"
  221. send "&c21&7. &a[v] &7» &8[&a✔&8]"
  222. send "&c22&7. &a[x] &7» &8[&a✖&8]"
  223. send "&c23&7. &a[>] &7» &8[&a»&8]"
  224. send "&c24&7. &a[caution] &7» &8[&a⚠&8]"
  225. send "&c25&7. &a[:-)] &7» &8[&a☻&8]"
  226. send "&c26&7. &a[:(] &7» &8[&a☹&8]"
  227. send "&c27&7. &a[:)] &7» &8[&a☺&8]"
  228. stop
  229.  
  230. on chat:
  231. if {cto::emoji::%player%} = true:
  232. replace all "[1]" with "➀" in message
  233. replace all "[2]" with "➁" in message
  234. replace all "[3]" with "➂" in message
  235. replace all "[4]" with "➃" in message
  236. replace all "[5]" with "➄" in message
  237. replace all "[6]" with "➅" in message
  238. replace all "[7]" with "➆" in message
  239. replace all "[8]" with "➇" in message
  240. replace all "[9]" with "➈" in message
  241. replace all "[10]" with "➉" in message
  242. replace all "[:(]" with "☹" in message
  243. replace all "[:)]" with "☺" in message
  244. replace all "[<3]" with "❤" in message
  245. replace all "[sun]" with "☼" in message
  246. replace all "[crown]" with "♛" in message
  247. replace all "[plane]" with "✈" in message
  248. replace all "[skull]" with "☠" in message
  249. replace all "[cloud]" with "☁" in message
  250. replace all "[star]" with "✰" in message
  251. replace all "[snow]" with "❆" in message
  252. replace all "[<]" with "«" in message
  253. replace all "[v]" with "✔" in message
  254. replace all "[x]" with "✖" in message
  255. replace all "[:-)]" with "☻" in message
  256. replace all "[>]" with "»" in message
  257. replace all "[caution]" with "⚠" in message
  258.  
  259. command /{@LoreCmd} [<text>] [<number>] [<text>]:
  260. permission: {@LorePerm}
  261. permission message: {@NoPerm}
  262. description: &a&oChange item lore
  263. aliases: {@LoreAliases}
  264. trigger:
  265. if arg-1 is not set:
  266. set {_LoreUsage} to "{@LoreUsage}"
  267. replace all "[cmd]" with "{@LoreCmd}" in {_LoreUsage}
  268. replace all "[nl]" with "%newline%" in {_LoreUsage}
  269. replace all "[p]" with "{@p}" in {_LoreUsage}
  270. send "%{_LoreUsage}%"
  271. stop
  272. if arg-1 is "help":
  273. set {_LoreUsage} to "{@LoreUsage}"
  274. replace all "[cmd]" with "{@LoreCmd}" in {_LoreUsage}
  275. replace all "[nl]" with "%newline%" in {_LoreUsage}
  276. replace all "[p]" with "{@p}" in {_LoreUsage}
  277. send "%{_LoreUsage}%"
  278. stop
  279. else:
  280. if arg-1 is "set" or "add":
  281. if arg-2 is set:
  282. if arg-3 is set:
  283. if player's tool is set:
  284. if "%arg-3%" contains "[1]" or "[2]" or "[3]" or "[4]" or "[5]" or "[6]" or "[7]" or "[8]" or "[9]" or "[10]" or "[:(]" or "[:)]" or "[<3]" or "[sun]" or "[crown]" or "[plane]" or "[skull]" or "[cloud]" or "[star]" or "[snow]" or "[<]" or "[v]" or "[x]" or "[:-)]" or "[>]" or "[caution]":
  285. if {cto::emoji::%player%} = true:
  286. set {_l} to "%arg-3%"
  287. replace all "[1]" with "➀" in {_l}
  288. replace all "[2]" with "➁" in {_l}
  289. replace all "[3]" with "➂" in {_l}
  290. replace all "[4]" with "➃" in {_l}
  291. replace all "[5]" with "➄" in {_l}
  292. replace all "[6]" with "➅" in {_l}
  293. replace all "[7]" with "➆" in {_l}
  294. replace all "[8]" with "➇" in {_l}
  295. replace all "[9]" with "➈" in {_l}
  296. replace all "[10]" with "➉" in {_l}
  297. replace all "[:(]" with "☹" in {_l}
  298. replace all "[:)]" with "☺" in {_l}
  299. replace all "[<3]" with "❤" in {_l}
  300. replace all "[sun]" with "☼" in {_l}
  301. replace all "[crown]" with "♛" in {_l}
  302. replace all "[plane]" with "✈" in {_l}
  303. replace all "[skull]" with "☠" in {_l}
  304. replace all "[cloud]" with "☁" in {_l}
  305. replace all "[star]" with "✰" in {_l}
  306. replace all "[snow]" with "❆" in {_l}
  307. replace all "[<]" with "«" in {_l}
  308. replace all "[v]" with "✔" in {_l}
  309. replace all "[x]" with "✖" in {_l}
  310. replace all "[:-)]" with "☻" in {_l}
  311. replace all "[>]" with "»" in {_l}
  312. replace all "[caution]" with "⚠" in {_l}
  313. set line number arg of lore of player's tool to colored "%{_l}%"
  314. set {_LoreSuccess} to "{@LoreSuccess}"
  315. replace all "[line]" with "%arg-2%" in {_LoreSuccess}
  316. replace all "[lore]" with "%{_l}%" in {_LoreSuccess}
  317. send colored "%{_LoreSuccess}%"
  318. stop
  319. else:
  320. set line number arg of lore of player's tool to colored "%arg-3%"
  321. set {_LoreSuccess} to "{@LoreSuccess}"
  322. replace all "[line]" with "%arg-2%" in {_LoreSuccess}
  323. replace all "[lore]" with "%arg-3%" in {_LoreSuccess}
  324. send colored "%{_LoreSuccess}%"
  325. stop
  326. else:
  327. set line number arg of lore of player's tool to colored "%arg-3%"
  328. set {_LoreSuccess} to "{@LoreSuccess}"
  329. replace all "[line]" with "%arg-2%" in {_LoreSuccess}
  330. replace all "[lore]" with "%arg-3%" in {_LoreSuccess}
  331. send colored "%{_LoreSuccess}%"
  332. stop
  333.  
  334. else:
  335. send "{@p} &7You need to hold an item."
  336. stop
  337. else:
  338. set {_LoreUsage} to "{@LoreUsage}"
  339. replace all "[cmd]" with "{@LoreCmd}" in {_LoreUsage}
  340. replace all "[nl]" with "%newline%" in {_LoreUsage}
  341. replace all "[p]" with "{@p}" in {_LoreUsage}
  342. send "%{_LoreUsage}%"
  343. stop
  344. else:
  345. set {_LoreUsage} to "{@LoreUsage}"
  346. replace all "[cmd]" with "{@LoreCmd}" in {_LoreUsage}
  347. replace all "[nl]" with "%newline%" in {_LoreUsage}
  348. replace all "[p]" with "{@p}" in {_LoreUsage}
  349. send "%{_LoreUsage}%"
  350. stop
  351. if arg-1 is "remove" or "clear":
  352. if arg-2 is set:
  353. if player's tool is set:
  354. clear line number arg of lore of player's tool
  355. set {_LoreCleared} to "{@LoreCleared}"
  356. replace all "[line]" with "%arg-2%" in {_LoreCleared}
  357. send "%{_LoreCleared}%"
  358. stop
  359. else:
  360. send "{@p} &7You need to hold an item."
  361. stop
  362. else:
  363. set {_LoreUsage} to "{@LoreUsage}"
  364. replace all "[cmd]" with "{@LoreCmd}" in {_LoreUsage}
  365. replace all "[nl]" with "%newline%" in {_LoreUsage}
  366. replace all "[p]" with "{@p}" in {_LoreUsage}
  367. send "%{_LoreUsage}%"
  368. stop
  369. if arg-3 is "all":
  370. if player's tool is set:
  371. set lore of player's tool to ""
  372. make player execute "/{@LoreCmd} removesilent 1"
  373. send "{@p} {@LoreAllCleared}"
  374. stop
  375. else:
  376. send "{@p} &7You need to hold an item."
  377. stop
  378. else:
  379. set {_LoreUsage} to "{@LoreUsage}"
  380. replace all "[cmd]" with "{@LoreCmd}" in {_LoreUsage}
  381. replace all "[nl]" with "%newline%" in {_LoreUsage}
  382. replace all "[p]" with "{@p}" in {_LoreUsage}
  383. send "%{_LoreUsage}%"
  384. stop
  385. # The Secret command "LOL", used for clear the lore, just a bsic way to do ir quickly :)
  386. if arg-1 is "removesilent":
  387. if player's tool is set:
  388. if arg-2 is set:
  389. clear line number arg of lore of player's tool
  390. stop
  391. else:
  392. send "{@p} &7You need to hold an item."
  393. stop
  394.  
  395.  
  396. command /{@RenameCmd} [<text>]:
  397. permission: {@RenamePerm}
  398. permission message: {@NoPerm}
  399. description: &a&oChange current tool Name
  400. aliases: {@RenameAliases}
  401. trigger:
  402. if arg-1 is not set:
  403. set {_RenameUsage} to "{@RenameUsage}"
  404. replace all "[cmd]" with "{@RenameCmd}" in {_RenameUsage}
  405. replace all "[nl]" with "%newline%" in {_RenameUsage}
  406. replace all "[p]" with "{@p}" in {_RenameUsage}
  407. send "%{_RenameUsage}%"
  408. stop
  409. if arg-1 is "help":
  410. set {_RenameUsage} to "{@RenameUsage}"
  411. replace all "[cmd]" with "{@RenameCmd}" in {_RenameUsage}
  412. replace all "[nl]" with "%newline%" in {_RenameUsage}
  413. replace all "[p]" with "{@p}" in {_RenameUsage}
  414. send "%{_RenameUsage}%"
  415. stop
  416. if arg-1 is "reset":
  417. if player's tool is set:
  418. if player's tool is not {@blacklistitems}:
  419. set name of player's tool to ""
  420. send "{@p} {@RenameResetSuccess}"
  421. stop
  422. else:
  423. send "{@RenameBlacklistItems}"
  424. stop
  425. else:
  426. send "{@p} &7You need to hold an item."
  427. stop
  428.  
  429. if arg-1 is set:
  430. if player's tool is set:
  431. if player's tool is not {@blacklistitems}:
  432. if "%arg-1%" doesn't contain {@blacklistwords}:
  433. if "%arg-1%" contains "[1]" or "[2]" or "[3]" or "[4]" or "[5]" or "[6]" or "[7]" or "[8]" or "[9]" or "[10]" or "[:(]" or "[:)]" or "[<3]" or "[sun]" or "[crown]" or "[plane]" or "[skull]" or "[cloud]" or "[star]" or "[snow]" or "[<]" or "[v]" or "[x]" or "[:-)]" or "[>]" or "[caution]":
  434. if {cto::emoji::%player%} = true:
  435. set {_n} to "%arg-1%"
  436. replace all "[1]" with "➀" in {_n}
  437. replace all "[2]" with "➁" in {_n}
  438. replace all "[3]" with "➂" in {_n}
  439. replace all "[4]" with "➃" in {_n}
  440. replace all "[5]" with "➄" in {_n}
  441. replace all "[6]" with "➅" in {_n}
  442. replace all "[7]" with "➆" in {_n}
  443. replace all "[8]" with "➇" in {_n}
  444. replace all "[9]" with "➈" in {_n}
  445. replace all "[10]" with "➉" in {_n}
  446. replace all "[:(]" with "☹" in {_n}
  447. replace all "[:)]" with "☺" in {_n}
  448. replace all "[<3]" with "❤" in {_n}
  449. replace all "[sun]" with "☼" in {_n}
  450. replace all "[crown]" with "♛" in {_n}
  451. replace all "[plane]" with "✈" in {_n}
  452. replace all "[skull]" with "☠" in {_n}
  453. replace all "[cloud]" with "☁" in {_n}
  454. replace all "[star]" with "✰" in {_n}
  455. replace all "[snow]" with "❆" in {_n}
  456. replace all "[<]" with "«" in {_n}
  457. replace all "[v]" with "✔" in {_n}
  458. replace all "[x]" with "✖" in {_n}
  459. replace all "[:-)]" with "☻" in {_n}
  460. replace all "[>]" with "»" in {_n}
  461. replace all "[caution]" with "⚠" in {_n}
  462. set name of player's tool to colored "%{_n}%"
  463. set {_RenameSuccess} to "{@RenameSuccess}"
  464. replace all "[name]" with "%{_n}%" in {_RenameSuccess}
  465. send colored "{@p} %{_RenameSuccess}%"
  466. stop
  467. else:
  468. set name of player's tool to colored "%arg-1%"
  469. set {_RenameSuccess} to "{@RenameSuccess}"
  470. replace all "[name]" with "%arg-1%" in {_RenameSuccess}
  471. send colored "{@p} %{_RenameSuccess}%"
  472. stop
  473. else:
  474. set name of player's tool to colored "%arg-1%"
  475. set {_RenameSuccess} to "{@RenameSuccess}"
  476. replace all "[name]" with "%arg-1%" in {_RenameSuccess}
  477. send colored "{@p} %{_RenameSuccess}%"
  478. stop
  479. else:
  480. send "{@RenameBlacklistWords}"
  481. stop
  482. else:
  483. send "{@RenameBlacklistItems}"
  484. stop
  485. else:
  486. send "{@p} &7You need to hold an item."
  487. stop
  488.  
  489.  
  490.  
  491. command /{@ShinyCmd}:
  492. permission: {@ShinyPerm}
  493. permission message: {@NoPerm}
  494. description: &a&oShiny your item without enchantments
  495. aliases: {@ShinyAliases}
  496. trigger:
  497. if player's tool is set:
  498. if player's tool is enchanted:
  499. send "{@p} {@ShinyError}"
  500. stop
  501. if player's tool is not enchanted:
  502. set {_item} to player's tool
  503. set player's tool to shiny {_item}
  504. send "{@p} {@ShinySuccess}"
  505. stop
  506. else:
  507. send "{@p} &7You need to hold an item."
  508. stop
  509.  
  510.  
  511.  
  512. command /{@EnchantCmd} [<text>] [<text>] [<text>]:
  513. permission: {@EnchantPerm}
  514. permission message: {@NoPerm}
  515. description: &a&oEnchant your items with any enchantment type and level.
  516. aliases: {@EnchantAliases}
  517. trigger:
  518. if arg-1 is not set:
  519. set {_EnchantUsage} to "{@EnchantUsage}"
  520. replace all "[cmd]" with "{@EnchantCmd}" in {_EnchantUsage}
  521. replace all "[nl]" with "%newline%" in {_EnchantUsage}
  522. replace all "[p]" with "{@p}" in {_EnchantUsage}
  523. send "%{_EnchantUsage}%"
  524. stop
  525. if arg-1 is "help":
  526. set {_EnchantUsage} to "{@EnchantUsage}"
  527. replace all "[cmd]" with "{@EnchantCmd}" in {_EnchantUsage}
  528. replace all "[nl]" with "%newline%" in {_EnchantUsage}
  529. replace all "[p]" with "{@p}" in {_EnchantUsage}
  530. send "%{_EnchantUsage}%"
  531. stop
  532. if arg-1 is "add":
  533. if arg-2 is set:
  534. if arg-3 is set:
  535. if player's tool is set:
  536. set {_el} to "%arg-2% %arg-3%" parsed as enchantment type
  537. enchant the player's tool with {_el}
  538. set {_m} to "{@EnchantSucess}"
  539. replace all "[enchantment]" with "%arg-2%" in {_m}
  540. replace all "[level]" with "%arg-3%" in {_m}
  541. send "{@p} %{_m}%"
  542. stop
  543. else:
  544. send "{@p} &7You need to hold an item."
  545. stop
  546. if arg-1 is "set":
  547. if arg-2 is set:
  548. if arg-3 is set:
  549. if player's tool is set:
  550. set {_i} to player's tool
  551. disenchant {_i}
  552. set {_el} to "%arg-2% %arg-3%" parsed as enchantment type
  553. enchant the player's tool with {_el}
  554. set {_m} to "{@EnchantSucess}"
  555. replace all "[enchantment]" with "%arg-2%" in {_m}
  556. replace all "[level]" with "%arg-3%" in {_m}
  557. send "{@p} %{_m}%"
  558. stop
  559. else:
  560. send "{@p} &7You need to hold an item."
  561. stop
  562. if arg-1 is "removeall":
  563. if player's tool is set:
  564. disenchant player's tool
  565. set {_m} to "{@EnchantSucess}"
  566. replace all "[enchantment]" with "%arg-2%" in {_m}
  567. send "{@p} %{_m}%"
  568. stop
  569. else:
  570. send "{@p} &7You need to hold an item."
  571. stop
  572.  
  573.  
  574.  
  575. # ----
  576. #
  577. # <> End of Code
  578. # By Ayham Alali <>
  579. #
  580. # ----
Add Comment
Please, Sign In to add comment