Advertisement
XraySpigot

Untitled

Nov 21st, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. #╔═════════════════════════════════════════════╗
  2. # ✖ WELCOME ✖
  3. #╚═════════════════════════════════════════════╝
  4.  
  5. # Information
  6. # Author: @Religion
  7. # Version: 2.0
  8. # Contact: Tropical#9699
  9. #
  10. # Permissions:
  11. # disguise.use - Access to /disguise & /undisguise
  12. # disguise.admin - Access to /disguisecheck
  13. #
  14. # Like this Skript? Consider donating, everything helps :)
  15. # http://www.paypal.me/Religions
  16. #
  17. # If this script helped you, review it 5 stars here! Thanks in advance!
  18. # http://www.mc-market.org/resources/3800/
  19.  
  20. #╔═════════════════════════════════════════════╗
  21. # ✖ CODE ✖
  22. #╚═════════════════════════════════════════════╝
  23. options:
  24. p: &8[&cDisguise&8]
  25. perm: &cYou do not have permission to disguise! Consider donating to unlock this feature!
  26. permadmin: &cYou must be Staff to use this command!
  27.  
  28.  
  29.  
  30. command /pdisguise:
  31. permission: disguise.use
  32. permission message: {@perm}
  33. aliases: pd
  34. trigger:
  35. if {disguise.active.%uuid of player%} is not set:
  36. set {disguise.active.%uuid of player%} to true
  37. set {_disguise-name} to text from url "http://chromapvp.esy.es/kelime.php"
  38. send "{@p} &c&lWarning! &cThis command is logged!"
  39. send "{@p} &cStaff can see your real name!"
  40. send "{@p} &c&oGenerating your username&8..."
  41. wait 5 ticks
  42. send "{@p} &7You now appear as &c%{_disguise-name}%"
  43. send "{@p} &7To undisguise, use &c/pd"
  44. set {disguise::%player%} to {_disguise-name}
  45. make console execute command "/pex user %player% group add Disguised"
  46. make console execute command "/nick %player% %{_disguise-name}%"
  47. set player's display name to "&f%{_disguise-name}%"
  48. set player's tablist name to "&f%{_disguise-name}%"
  49.  
  50.  
  51. else if {disguise.active.%uuid of player%} is false:
  52. set {disguise.active.%uuid of player%} to true
  53. set {_disguise-name} to text from url "http://chromapvp.esy.es/kelime.php"
  54. send "{@p} &c&lWarning! &cThis command is logged!"
  55. send "{@p} &cStaff can see your real name!"
  56. send "{@p} &c&oGenerating your username&8..."
  57. wait 5 ticks
  58. send "{@p} &7You now appear as &c%{_disguise-name}%"
  59. send "{@p} &7To undisguise, use &c/pd"
  60. set {disguise::%player%} to {_disguise-name}
  61. make console execute command "/pex user %player% group add Disguised"
  62. make console execute command "/nick %player% %{_disguise-name}%"
  63. set player's display name to "&f%{_disguise-name}%"
  64. set player's tablist name to "&f%{_disguise-name}%"
  65.  
  66.  
  67. else if {disguise.active.%uuid of player%} is true:
  68. set {disguise.active.%uuid of player%} to false
  69. delete {disguise::%player%}
  70. make console execute command "/pex user %player% group remove Disguised"
  71. make console execute command "/nick %player% off"
  72. set player's display name to "%player%"
  73. set player's tablist name to "%player%"
  74. message "{@p} &7You are now undisguised."
  75.  
  76.  
  77.  
  78. command /disguisecheck [<player>]:
  79. permission: disguise.admin
  80. permission message: {@permadmin}
  81. aliases: /dc
  82. trigger:
  83. arg 1 is not online:
  84. send "{@p} &cThat player is not online."
  85. if arg 1 is set:
  86. if arg 1 is online:
  87. if {disguise::%argument 1%} is set:
  88. message "{@p} &2%{disguise::%arg 1%}% &6&m----&r&8> &c%{Name::%argument 1%}%"
  89. else:
  90. send "{@p} &cPlayer is not disguised." to sender
  91. else:
  92. send "{@p} &cThat player is not online." to sender
  93. else:
  94. send "{@p} &c/disguisecheck &a<disguisename>" to sender
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement