Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #DO NOT CHANGE THE VERSION IT CAN & WILL GLICH
- version: 4.0-pre2
- on load:
- if folder "plugins/EZStaff/" doesn't exists:
- create folder "plugins/EZStaff/"
- if folder "plugins/EZStaff/IP-List/" does not exists:
- create folder "plugins/EZStaff/IP-List"
- if file "plugins/EZStaff/config.yml" does not exists:
- create file "plugins/EZStaff/config.yml"
- send "[EZStaff] Config file not found, creating.." to console
- wf "##EZStaff by EazyFTW" to "plugins/EZStaff/config.yml"
- wf "##Config File" to "plugins/EZStaff/messages.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##Permissions" to "plugins/EZStaff/config.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##Give a player this permission and they would be able to reload the plugin. (they also need the rl skript perm)" to "plugins/EZStaff/config.yml"
- wf "reload-perm: ezstaff.reload" to "plugins/EZStaff/config.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##Give a player this permission and they will get notifications on join if a update is out." to "plugins/EZStaff/config.yml"
- wf "update-notify-perm: ezstaff.nupdate" to "plugins/EZStaff/config.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##Give a player this permission if you want them to be able to update the plugin!" to "plugins/EZStaff/config.yml"
- wf "update-perm: ezstaff.update" to "plugins/EZStaff/config.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##Other" to "plugins/EZStaff/config.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##Set this to true to send a message if there is a update on join." to "plugins/EZStaff/config.yml"
- wf "update-join: true" to "plugins/EZStaff/config.yml"
- wf "" to "plugins/EZStaff/config.yml"
- wf "##This is the end of the config file!" to "plugins/EZStaff/config.yml"
- if file "plugins/EZStaff/messages.yml" does not exists:
- create file "plugins/EZStaff/messages.yml"
- send "[EZStaff] Messages file not found, creating.." to console
- wf "##EZStaff by EazyFTW" to "plugins/EZStaff/messages.yml"
- wf "##Messages File" to "plugins/EZStaff/messages.yml"
- wf "" to "plugins/EZStaff/messages.yml"
- wf "##Prefixes" to "plugins/EZStaff/messages.yml"
- wf "" to "plugins/EZStaff/messages.yml"
- wf "Prefix: &b&lEZStaff &f&l»" to "plugins/EZStaff/messages.yml"
- wf "" to "plugins/EZStaff/messages.yml"
- wf "##This is the end to the messages file!" to "plugins/EZStaff/messages.yml"
- wait 5 ticks
- set {ezstaff.prefix} to single value "Prefix" get of "plugins/EZStaff/messages.yml"
- set {ezstaff.nperm} to single value "update-notify-perm" get of "plugins/EZStaff/config.yml"
- set {ezstaff.uperm} to single value "update-perm" get of "plugins/EZStaff/config.yml"
- set {ezstaff.rperm} to single value "reload-perm" get of "plugins/EZStaff/config.yml"
- set {ezstaff.ujperm} to single value "update-join" get of "plugins/EZStaff/config.yml" parsed as a boolean
- options:
- prefix: %{ezstaff.prefix}%
- update-notify-perm: %{ezstaff.nperm}%
- reload-permission: %{ezstaff.rperm}%
- update-permission: %{ezstaff.uperm}%
- on quit:
- set {_joinTime} to single value "JOIN-TIME" get of "plugins/EZStaff/IP-List/%player%.yml"
- delete file "plugins/EZStaff/IP-List/%player%.yml"
- create file "plugins/EZStaff/IP-List/%player%.yml"
- wf "PLAYER: %player%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "IP: %ip of player%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "JOIN-TIME: %{_joinTime}%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "QUIT-TIME: %now% MTD" to "plugins/EZStaff/IP-List/%player%.yml"
- send "[EZStaff] Updated %player%'s IP!" to console
- on join:
- if file "plugins/EZStaff/IP-List/%player%.yml" does not exists:
- create file "plugins/EZStaff/IP-List/%player%.yml"
- wf "PLAYER: %player%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "IP: %ip of player%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "JOIN-TIME: %now% MTD" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "QUIT-TIME: NONE" to "plugins/EZStaff/IP-List/%player%.yml"
- send "[EZStaff] Player file not found!" to console
- send "[EZStaff] Creating file %player%.yml in the directory 'plugins/EZStaff/IP-List/'!" to console
- else:
- set {_quitTime} to single value "QUIT-TIME" get of "plugins/EZStaff/IP-List/%player%.yml"
- delete file "plugins/EZStaff/IP-List/%player%.yml"
- create file "plugins/EZStaff/IP-List/%player%.yml"
- wf "PLAYER: %player%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "IP: %ip of player%" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "JOIN-TIME: %now% UTC" to "plugins/EZStaff/IP-List/%player%.yml"
- wf "QUIT-TIME: %{_quitTime}%" to "plugins/EZStaff/IP-List/%player%.yml"
- send "[EZStaff] Updated %player%'s IP!" to console
- if {ezstaff.set.loop.%player%} is not set:
- add "%player%" to {pinfolist::*}
- wait 10 ticks
- set {ezstaff.set.loop.%player%} to true
- {ezstaff.ujperm} is true
- wait 30 ticks
- player has permission "{@update-permission}"
- player has permission "{@update-notify-perm}"
- if text from "http://eazyftw.com/ezstaff/version.txt" is not "{@version}":
- message "{@prefix} &c&oYour version of &b&lEZStaff &c&ois out of date! Use /ezstaff update download to download it!" to player
- function giveItem(p: player, arg2: player, item: item):
- set {_am} to {ezstaff.give.amount.%{_p}%}
- give {_arg2} {_am} of {_item}
- message "&8&l» &7You have been given %{_am}% %{_item}% from %{_p}%." to {_arg2}
- close {_p}'s inventory
- message "&8&l» &7You have given %{_arg2}% %{_am}% %{_item}%." to {_p}
- function giveSet(p: player, action: text):
- set {_number} to {ezstaff.give.amount.%{_p}%}
- if {_action} is "down1":
- remove 1 from {_number}
- if {_action} is "up1":
- add 1 to {_number}
- if {_action} is "down10":
- remove 10 from {_number}
- if {_action} is "up10":
- add 10 to {_number}
- if {_action} is "set64":
- set {_number} to 64
- if {_action} is "set1":
- set {_number} to 1
- if {_number} is less than 1:
- set {_number} to 1
- if {_number} is greater than 64:
- set {_number} to 64
- set name of slot 10 of {_p}'s current inventory to "&b&l%{_number}%"
- set {ezstaff.give.amount.%{_p}%} to {_number}
- on chat:
- if {ezstaff.give.chat.%player%} is true:
- cancel event
- if message is "cancel":
- set {ezstaff.give.chat.%player%} to false
- message "&8&l» Canceled!"
- stop
- set {_item} to message parsed as a item
- if {_item} is a item:
- set {_arg2} to {ezstaff.give.player.%player%}
- set {ezstaff.give.chat.%player%} to false
- delete {ezstaff.give.player.%player%}
- set {_number} to 1
- set {ezstaff.give.amount.%player%} to 1
- open virtual chest inventory with size 3 named "&8&l» &7Give Item" to player
- wait 1 tick
- format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "up1") with "left" click
- format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "down1") with "right" click
- format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "up10") with "shift left" click
- format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "down10") with "shift right" click
- format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "set1") with "double click" click
- format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "set64") with "drop key" click
- format gui slot 16 of player with emerald block named "&aGive %{_item}%." with lore "&7Click to Give" to run function giveItem(player, {_arg2}, {_item})
- else:
- message "&8&l» &7Try again, %message% is not a item!"
- function give(p: player, arg2: offline player):
- if {_arg2} is a player:
- set {ezstaff.give.chat.%{_p}%} to true
- message "&8&l» &7Type in a item to give to %{_arg2}%." to {_p}
- message "&8&l» &7Type in &ccancel&7 to cancel!" to {_p}
- set {ezstaff.give.player.%{_p}%} to {_arg2}
- close {_p}'s inventory
- else:
- message "&8&l» &7%{_arg2}% is not online!" to {_p}
- function INFO(p: offline player, action: text, arg2: offline player):
- remove the gui slot 22 of {_p}
- set {_joinTime} to single value "JOIN-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%{_p}%}%.yml"
- set {_quitTime} to single value "QUIT-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%{_p}%}%.yml"
- if {_action} is "+":
- add 1 to {number.info.%{_p}%}
- if {_action} is "++":
- remove 1 from {number.info.%{_p}%}
- if {number.info.%{_p}%} is 0:
- set {number.info.%{_p}%} to 2
- if {number.info.%{_p}%} is 3:
- set {number.info.%{_p}%} to 1
- if {number.info.%{_p}%} is 1:
- format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO({_p}, "++", {_arg2}) with "shift right" click
- if {number.info.%{_p}%} is 2:
- format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Quit Time&7!||||&7%{_quitTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Join Time||&eShift-Click Right to See %{_arg2}%'s Last Join Time" to run function INFO({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Quit Time&7!||||&7%{_quitTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Join Time||&eShift-Click Right to See %{_arg2}%'s Last Join Time" to run function INFO({_p}, "++", {_arg2}) with "shift right" click
- function GEOIP(p: offline player, action: text, arg2: offline player):
- remove the gui slot 19 of {_p}
- set {_ip} to single value "IP" get of "plugins/EZStaff/IP-List/%{_arg2}%.yml"
- set {_country} to text from "http://ip-api.com/line/%{_ip}%?fields=country"
- set {_regionName} to text from "http://ip-api.com/line/%{_ip}%?fields=regionName"
- set {_city} to text from "http://ip-api.com/line/%{_ip}%?fields=city"
- set {_zip} to text from "http://ip-api.com/line/%{_ip}%?fields=zip"
- set {_time} to text from "http://ip-api.com/line/%{_ip}%?fields=timezone"
- set {_isp} to text from "http://ip-api.com/line/%{_ip}%?fields=isp"
- if {_arg2} is not a player:
- set {_arg2} to single value "PLAYER" get of "plugins/EZStaff/IP-List/%{player.pinfo.%{_p}%}%.yml" parsed as player
- if {_action} is "+":
- add 1 to {number.geoip.%{_p}%}
- if {_action} is "++":
- remove 1 from {number.geoip.%{_p}%}
- if {number.geoip.%{_p}%} is 0:
- set {number.geoip.%{_p}%} to 7
- if {number.geoip.%{_p}%} is 8:
- set {number.geoip.%{_p}%} to 1
- if {number.geoip.%{_p}%} is 1:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- if {number.geoip.%{_p}%} is 2:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCountry&7!||||&7%{_country}%||||&eShift-Click Left to See %{_arg2}%'s State||&eShift-Click Right to See %{_arg2}%'s IP" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCountry&7!||||&7%{_country}%||||&eShift-Click Left to See %{_arg2}%'s State||&eShift-Click Right to See %{_arg2}%'s IP" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- if {number.geoip.%{_p}%} is 3:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bState&7!||||&7%{_regionName}%||||&eShift-Click Left to See %{_arg2}%'s City||&eShift-Click Right to See %{_arg2}%'s Country" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bState&7!||||&7%{_regionName}%||||&eShift-Click Left to See %{_arg2}%'s City||&eShift-Click Right to See %{_arg2}%'s Country" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- if {number.geoip.%{_p}%} is 4:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCity&7!||||&7%{_city}%||||&eShift-Click Left to See %{_arg2}%'s Zipcode||&eShift-Click Right to See %{_arg2}%'s State" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCity&7!||||&7%{_city}%||||&eShift-Click Left to See %{_arg2}%'s Zipcode||&eShift-Click Right to See %{_arg2}%'s State" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- if {number.geoip.%{_p}%} is 5:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bZipcode&7!||||&7%{_zip}%||||&eShift-Click Left to See %{_arg2}%'s Timezone||&eShift-Click Right to See %{_arg2}%'s City" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bZipcode&7!||||&7%{_zip}%||||&eShift-Click Left to See %{_arg2}%'s Timezone||&eShift-Click Right to See %{_arg2}%'s City" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- if {number.geoip.%{_p}%} is 6:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bTimezone&7!||||&7%{_time}%||||&eShift-Click Left to See %{_arg2}%'s ISP||&eShift-Click Right to See %{_arg2}%'s Zipcode" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bTimezone&7!||||&7%{_time}%||||&eShift-Click Left to See %{_arg2}%'s ISP||&eShift-Click Right to See %{_arg2}%'s Zipcode" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- if {number.geoip.%{_p}%} is 7:
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bISP&7!||||&7%{_isp}%||||&eShift-Click Left to See %{_arg2}%'s IP||&eShift-Click Right to See %{_arg2}%'s Timezone" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
- format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bISP&7!||||&7%{_isp}%||||&eShift-Click Left to See %{_arg2}%'s IP||&eShift-Click Right to See %{_arg2}%'s Timezone" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
- command /ezstaff [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- make player execute command "ezstaff help"
- if arg 1 is set:
- if arg 1 is not "help" or "update" or "reload" or "panel":
- make player execute command "ezstaff help"
- wait 10 ticks
- message ""
- if arg 1 is "help":
- loop 6 times:
- message " "
- message " &8&m+--------------------------------------------------+"
- message ""
- message " &8&l» &b&lEZStaff &fCommands"
- message ""
- message " &2[] &f= optional arguments."
- message " &6<> &f= required arguments."
- message ""
- message " &b/ezstaff &7- Shows this message!"
- message " &b/ezstaff help &7- Shows the help menu (this menu)!"
- message " &b/ezstaff panel &2[player] &7- Opens the panel!"
- message " &b/ezstaff update &6<check:download> &7- Install a new version or check for a update!"
- message " &b/ezstaff reload &7- Reloads the script!"
- message ""
- message " &8&l» &7You are running version {@version} of EZStaff!"
- message ""
- message " &8&m+--------------------------------------------------+"
- if arg 1 is "update":
- if player has permission "{@update-permission}":
- if arg 2 is not set:
- loop 11 times:
- message " "
- message " &8&m+--------------------------------------------------+"
- message ""
- message " &8&l» &b&lEZStaff &8(&7v{@version}) &fUpdate Commands"
- message ""
- message "&7- &b/ezstaff update check &7- Checks for a update!"
- message "&7- &b/ezstaff update download &7- Downloads the latest version of this script!"
- message ""
- message " &8&m+--------------------------------------------------+"
- if arg 1 is set:
- if arg 2 is not "check" or "changes" or "download":
- make player execute command "ezstaff update"
- else:
- if arg 2 is "check":
- wait 5 ticks
- message "{@prefix} &5&oChecking for updates..."
- wait 30 ticks
- if text from "http://eazyftw.com/ezstaff/version.txt" is not "{@version}":
- message "{@prefix} &c&oYour version of &b&lEZStaff &c&ois out of date! Use /ezstaff update download to download it!"
- else:
- message "{@prefix} &a&oThere are no new updates."
- if arg 2 is "download":
- if text from "http://eazyftw.com/ezstaff/version.txt" is not "{@version}":
- download from "http://eazyftw.com/ezstaff/latest-ver.txt" to "plugins/Skript/scripts/EZStaff.sk"
- message "{@prefix} &a&oDownloading v%text from ""http://eazyftw.com/ezstaff/version.txt""% of &b&lEZStaff&a&o!"
- make console execute command "sk reload %script%.sk"
- message "{@prefix} &a&oReloading the script!"
- wait 15 ticks
- message "{@prefix} &a&oReloaded Successfully!"
- message "{@prefix} &a&oYou are now running &b&lEZStaff&a&o version %text from ""http://eazyftw.com/ezstaff/version.txt""%!"
- else:
- message "{@prefix} &a&oThere are no new updates."
- if arg 1 is "reload":
- if player has permission "{@reload-permission}":
- make player execute command "sk reload %script%"
- if arg 1 is "panel":
- if arg 2 is set:
- if file "plugins/EZStaff/IP-List/%arg-2%.yml" exists:
- wait 10 ticks
- set {player.pinfo.%player%} to "%arg-2%"
- set {_ip} to single value "IP" get of "plugins/EZStaff/IP-List/%arg-2%.yml"
- set {_arg2} to arg 2 parsed as a offline player
- open virtual chest inventory with size 6 named "&8&l» &7%{_arg2}%'s Info" to player
- wait 1 tick
- set {_n} to 0
- loop 9 times:
- format gui slot {_n} of player with gray stained glass pane named "&8" to do nothing
- add 1 to {_n}
- set {_n} to 45
- loop 9 times:
- format gui slot {_n} of player with gray stained glass pane named "&8" to do nothing
- add 1 to {_n}
- format gui slot 4 of player with {_arg2}'s skull named "&b%{_arg2}%" to do nothing
- format gui slot 49 of player with arrow named "&eClose" with lore "||&eShift Click to Close!" to close with "shift left" click
- format gui slot 49 of player with arrow named "&cClose" with lore "||&eShift Click to Close!" to close with "shift left" click
- format gui slot 49 of player with arrow named "&cClose" with lore "||&eShift Click to Close!" to close with "shift right" click
- set {_country} to text from "http://ip-api.com/line/%{_ip}%?fields=country"
- set {_regionName} to text from "http://ip-api.com/line/%{_ip}%?fields=regionName"
- set {_city} to text from "http://ip-api.com/line/%{_ip}%?fields=city"
- set {_zip} to text from "http://ip-api.com/line/%{_ip}%?fields=zip"
- set {_time} to text from "http://ip-api.com/line/%{_ip}%?fields=timezone"
- set {_isp} to text from "http://ip-api.com/line/%{_ip}%?fields=isp"
- set {_joinTime} to single value "JOIN-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%player%}%.yml"
- set {_quitTime} to single value "QUIT-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%player%}%.yml"
- set {number.geoip.%player%} to 1
- set {number.info.%player%} to 1
- format gui slot 19 of player with map named "&b&lGEOIP &7(%{number.geoip.%player%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP(player, "+", {_arg2}) with "shift left" click
- format gui slot 19 of player with map named "&b&lGEOIP &7(%{number.geoip.%player%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP(player, "++", {_arg2}) with "shift right" click
- format gui slot 22 of player with paper named "&b&lINFO &7(%{number.info.%player%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO(player, "+", {_arg2}) with "shift left" click
- format gui slot 22 of player with paper named "&b&lINFO &7(%{number.info.%player%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO(player, "++", {_arg2}) with "shift right" click
- format gui slot 25 of player with diamond named "&b&lGIVE" with lore "&7Give items.||||&eClick to Give %{_arg2}% a Item!||||&4&lWARNING:||&f%{_arg2}% has to be online for||&fthis to work!" to run function give(player, {_arg2})
- else:
- message "{@prefix} &c%arg-2% is not a player!"
- else:
- open virtual chest inventory with size 6 named "&8&l» &7Pick a Player" to player
- set {_n} to 0
- loop {pinfolist::*}:
- set {_lv.%loop-value%} to loop-value parsed as a offline player
- format gui slot {_n} of player with {_lv.%loop-value%}'s skull named "&b%loop-value%" to close then run player command "ezstaff panel %loop-value%"
- add 1 to {_n}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement