kjfalkeiae

PlayerInfo

Dec 8th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. command /pinfo [<offline player>]:
  3. permission: skript.admin
  4. trigger:
  5. if arg 1 is not set:
  6. send "&cUsage: /pinfo <Player>"
  7. stop
  8. send "&7[&6PlayerInfo&7]&e%arg 1%&b's Info:"
  9. send "&7[&6PlayerInfo&7]&eUUID:&b%uuid of arg 1%"
  10. if arg 1 is offline:
  11. send "&7[&6PlayerInfo&7]&eOnline:&cfalse"
  12. if {health.%arg 1%} is set:
  13. send "&7[&6PlayerInfo&7]&eHealth:&b%{health.%arg 1%} * 2%&e/&b%{maxhealth.%arg 1%} * 2%&e(&b%{health.%arg 1%}/{maxhealth.%arg 1%}*100% &ePercent)"
  14. if {food.%arg 1%} is set:
  15. send "&7[&6PlayerInfo&7]&eFood:&b%{food.%arg 1%}*2%&e/20(&b%{food.%arg 1%}/10*100% &ePercent)"
  16. if {ip.%arg 1%} is set:
  17. send "&7[&6PlayerInfo&7]&eLast used IP:&b%{ip.%arg 1%}%"
  18. if {lastjoin.%arg 1%} is set:
  19. send "&7[&6PlayerInfo&7]&eLast joined:&b%{lastjoin.%arg 1%}%"
  20. if {lastquit.%arg 1%} is set:
  21. send "&7[&6PlayerInfo&7]&eLast disconnected:&b%{lastquit.%arg 1%}%"
  22. if {gamemode.%arg 1%} is set:
  23. send "&7[&6PlayerInfo&7]&eGamemode:&b%{gamemode.%arg 1%}%"
  24. if {location.%arg 1%} is set:
  25. send "&7[&6PlayerInfo&7]&eLocation:&b%{location.%arg 1%}% &ein &b%{world.%arg 1%}%"
  26. if {group.%player%} is set:
  27. send "&7[&6PlayerInfo&7]&eGroup:&b%{group.%arg 1%}%"
  28. if {op.%arg 1%} is true:
  29. send "&7[&6PlayerInfo&7]&eOP:&btrue"
  30. if {op.%arg 1%} is false:
  31. send "&7[&6PlayerInfo&7]&eOP:&bfalse"
  32. send "&7[&6PlayerInfo&7]&eLast used Prefix:&b%{prefix.%arg 1%}%"
  33. send "&7[&6PlayerInfo&7]&eLast used Suffix:&b%{suffix.%arg 1%}%"
  34. if arg 1 is banned:
  35. send "&7[&6PlayerInfo&7]&eBanned:&ctrue"
  36. if arg 1 is not banned:
  37. send "&7[&6PlayerInfo&7]&eBanned:&bfalse"
  38. stop
  39. if arg 1 is online:
  40. send "&7[&6PlayerInfo&7]&eOnline:&btrue"
  41. send "&7[&6PlayerInfo&7]&eHealth:&b%health of arg 1 * 2%&e/&b%max health of arg 1 * 2%&e(&b%health of arg 1/max health of arg 1 *100% &ePercent)"
  42. send "&7[&6PlayerInfo&7]&eFood:&b%food of arg 1 * 2%&e/20(&b%food of arg 1/10*100% &ePercent)"
  43. send "&7[&6PlayerInfo&7]&eIP:&b%ip of arg 1%"
  44. send "&7[&6PlayerInfo&7]&eLast joined:&b%{lastjoin.%arg 1%}%"
  45. send "&7[&6PlayerInfo&7]&eGamemode:&b%gamemode of arg 1%"
  46. send "&7[&6PlayerInfo&7]&eLocation:&b%location of arg 1% &ein &b%world of arg 1%"
  47. send "&7[&6PlayerInfo&7]&eGroup:&b%group of arg 1%"
  48. if arg 1 is op:
  49. send "&7[&6PlayerInfo&7]&eOP:&btrue"
  50. if arg 1 is not op:
  51. send "&7[&6PlayerInfo&7]&eOP:&bfalse"
  52. send "&7[&6PlayerInfo&7]&ePrefix:&b%prefix of arg 1%"
  53. send "&7[&6PlayerInfo&7]&eSuffix:&b%suffix of arg 1%"
  54.  
  55. on join:
  56. set {ip.%player%} to ip of player
  57. set {lastjoin.%player%} to now
  58.  
  59. on quit:
  60. set {location.%player%} to location of player
  61. set {world.%player%} to world of player
  62. set {health.%player%} to health of player
  63. set {maxhealth.%player%} to max health of player
  64. set {food.%player%} to food of player
  65. set {gamemode.%player%} to gamemode of player
  66. set {group.%player%} to group of player
  67. set {prefix.%player%} to prefix of player
  68. set {suffix.%player%} to suffix of player
  69. if player is op:
  70. set {op.%player%} to true
  71. if player is not op:
  72. set {op.%player%} to false
  73. set {lastquit.%player%} to now
Add Comment
Please, Sign In to add comment