Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. # ================================================================
  2. # ----------------------------------------------------------------
  3. #
  4. # ••• IP Check •••
  5. #
  6. # • Easy and simple Skript code! Author: MrRukes •
  7. # • Version: 1.2 •
  8. # • If you have any problem or idea, contact me with PM on Spigot :) •
  9. #
  10. #
  11. # ----------------------------------------------------------------
  12. # ================================================================
  13. # Code settings
  14. # ================================================================
  15. options:
  16.  
  17. # Now, set the kick message. While someone join server with that nick & IP is not his, he recive this kick message
  18. # Note: You can use color codes with > & < !!
  19. KickMessage: &c&lThis is not your account!
  20.  
  21. # Set the main prefix
  22. # Note: You can use color codes with > & < !!
  23. Prefix: &7[&9IPCheck&7]
  24.  
  25. # Do you want to send warning to console ?
  26. WarnConsle: true
  27.  
  28. # Set the main command permission.
  29. Permission: ipcheck.use
  30.  
  31. # Set the needed permission message.
  32. PermissionMessage: &4Oops, you don't have permissions...
  33.  
  34. # More comming soon :)
  35. # If you have any problem or idea, contact me with PM on Spigot :)
  36.  
  37. # ================================================================
  38. # Skript code, do not edit, if you not understand!
  39. # ================================================================
  40.  
  41. on connect:
  42. if {ipcheck::%player%} is set:
  43. wait 1 tick
  44. if "%IP of player%" is not "%{ipcheck::%player%}%":
  45. kick the player due to "{@KickMessage}"
  46. if {@WarnConsle} is true:
  47. send "{@Prefix} &cHey, somebody &b(%IP of player%) &ctried to join with &4%player%'s &caccount!" to console
  48. command /ipcheck [<text>] [<player>] [<text>]:
  49. permission: {@Permission}
  50. permission message: {@PermissionMessage}
  51. trigger:
  52. if argument 1 is set:
  53. if argument 1 is "set":
  54. if argument 2 is set:
  55. if argument 3 is set:
  56. set {ipcheck::%arg player%} to "%arg 3%"
  57. message "{@Prefix} &aIP &b%arg 3% &ahas been set to &b%arg player%'s &aname, successfully!"
  58. stop
  59. else:
  60. message "{@Prefix} &cPlease type an IP."
  61. stop
  62. else:
  63. message "{@Prefix} &cPlease type player's name."
  64. stop
  65. if argument 1 is "see":
  66. if argument 2 is not set:
  67. if {ipcheck::%player%} is set:
  68. message "{@Prefix} &bYour &alocked IP is %{ipcheck::%player%}%"
  69. stop
  70. else:
  71. message "{@Prefix} &cYour IP is not locked."
  72. stop
  73. else:
  74. if {ipcheck::%arg player%} is set:
  75. message "&9» &b%arg player%'s &alocked IP is %{ipcheck::%arg player%}%"
  76. stop
  77. else:
  78. message "{@Prefix} &c%arg player%' IP is not locked."
  79. if argument 1 is "unset":
  80. if argument 2 is set:
  81. if {ipcheck::%arg player%} is set:
  82. delete {ipcheck::%arg player%}
  83. message "{@Prefix} &aIP &b%arg player%'s &aIP was unlocked, successfully!"
  84. stop
  85. else:
  86. message "{@Prefix} &cThis player has not been set."
  87. stop
  88. else:
  89. message "{@Prefix} &cPlease type player's name."
  90. stop
  91. if argument 1 is "seeip":
  92. if argument 2 is not set:
  93. message "&9» &bYour &aip is %IP of player%"
  94. stop
  95. else:
  96. message "&9» &b%arg player%'s &aip is %IP of arg player%"
  97. stop
  98. if argument 1 is not "set" or "see" or "unset" or "seeip":
  99. message "&9» {@Prefix} &9«"
  100. message "&9» &aLock an IP to player's nickname &b/ipcheck set <player> <ip>"
  101. message "&9» &aUnlock an IP from player's nickname &b/ipcheck unset <player> <ip>"
  102. message "&9» &aShow player's IP (if locked) &b/ipcheck see <player>"
  103. message "&9» &aShow player's IP adress &b/ipcheck seeip <player>"
  104. stop
  105. else:
  106. message "&9» {@Prefix} &9«"
  107. message "&9» &aLock an IP to player's nickname &b/ipcheck set <player> <ip>"
  108. message "&9» &aUnlock an IP from player's nickname &b/ipcheck unset <player> <ip>"
  109. message "&9» &aShow player's IP (if locked) &b/ipcheck see <player>"
  110. message "&9» &aShow player's IP adress &b/ipcheck seeip <player>"
  111. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement