command /check [] [] []: executable by: player aliases: sprawdz, procheck, spr trigger: if arg 1 is not set: execute player command "check help" if arg 1 is "help" or "pomoc" or "pom": if player has permission "check.help": send " FB4D&lᴄAFC6E&lʜTFD8F&lᴇ&#ADFEB0&lᴄ&#CBFFC9&lᴋ &#DCFFDB&lᴘ&#EEFFED&lʀ&#FFFFFF&lᴏ" to player send "" to player send "&a&l• &f/check set lobby &8- &7Set spawn for clear players" to player send "&a&l• &f/check set cage &8- &7Set checking cage" to player send "&a&l• &f/check info &8- &7Show info" to player send "&a&l• &f/check player &8- &7Checks the player" to player send "&a&l• &f/check player menu &8- &7Opens the checking menu" to player send "&a&l• &f/check player clear &8- &7Releases the player without cheats" to player send "&a&l• &f/check player coop &8- &7Bans the player for no cooperation" to player send "&a&l• &f/check player cheaty &8- &7Bans the player for cheats" to player send "&a&l• &f/check player admission &8- &7Bans the player for admission" to player send "&a&l• &f/check stats &8- &7Check your or other players stats" to player send "&a&l• &f/check bancommand menu &8- &7Opens menu for commands" to player send "&a&l• &f/check help &8- &7See this help message" to player send "" to player else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player if arg 1 is "set" or "ustaw": if arg 2 is "lobby" or "spawn": if player has permission "check.set.spawn": set {_player::spawn} to player's name set {_location::spawn} to location of block under player send "&a&l✔ &asᴜᴄᴄᴇsғᴜʟʏ sᴇᴛ sᴘᴀᴡɴ ᴘᴏsɪᴛɪᴏɴ" to player stop else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player if arg 2 is "cage" or "klatka": if player has permission "check.set.cage": set {_player::cage} to player's name set {_location::cage} to location of block under player send "&a&l✔ &asᴜᴄᴄᴇsғᴜʟʏ sᴇᴛ ᴄᴀɢᴇ ᴘᴏsɪᴛɪᴏɴ" to player stop else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player if arg 1 is "info" or "pomoc": if arg 2 is "cage" or "klatka": if player has permission "check.info.cage": send "&a&l⛏︎ &fInformation about&7: &acage &8&l| &7Position&8: &f%{_location::cage}%&7, Creator&8: &f%{_player::cage}%" to player stop else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player if arg 2 is "lobby" or "spawn": if player has permission "check.info.spawn": send "&a&l⛏︎ &fInformation about&7: &alobby &7Position&8: &f%{_location::spawn}%&7, Creator&8: &f%{_player::spawn}%" to player stop else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player if arg 1 is "player" or "gracz": if arg 2 is player: if arg 3 is not set: if offline-player is online: if player has permission "check.player": if {_location::cage} is set: if {_location::spawn} is set: if {_checking::%arg-offlineplayer%} is false: if {_bancmd} is set: set {_checking} to arg-offlineplayer set {_admin} to player's name send "&a&l✔ &aᴄʜᴇᴄᴋɪɴɢ ᴡɪʟʟ sᴛᴀʀᴛ ɪɴ ᴀ ғᴇᴡ sᴇᴄᴏɴᴅs" to player wait 5 seconds send title "&a&lᴄʜᴇᴄᴋɪɴɢ" with subtitle "&fʏᴏᴜ ᴀʀᴇ ᴄʜᴇᴄᴋɪɴɢ %{_checking}%" to player set {_title::%arg-offlineplayer%} to true teleport player to {_location::cage} teleport arg-offlineplayer to {_location::cage} send "&c&l✘ &cʏᴏᴜ ᴀʀᴇ ʙᴇɪɴɢ ᴛᴇsᴛᴇᴅ! ᴡᴀᴛᴄʜ ᴛʜᴇ ᴄʜᴀᴛ ᴀɴᴅ ɪɴᴛᴇʀᴀᴄᴛ ᴡɪᴛʜ ᴛʜᴇ ᴀᴅᴍɪɴ ᴄʜᴇᴄᴋɪɴɢ ʏᴏᴜ!" to arg-offlineplayer set {_checking::%arg-offlineplayer%} to true stop else: send "&c&l✘ &cʙᴇғᴏʀᴇ ᴄʜᴇᴄᴋɪɴɢ sᴇᴛ ᴛʜᴇ ʙᴀɴ ᴄᴏᴍᴍᴀɴᴅ" to player else: # # # # # # # # # send "&c&l✘ &cᴛʜɪs ᴘʟᴀʏᴇʀ ɪs ᴀʟʀᴇᴀᴅʏ ᴄʜᴇᴄᴋɪɴɢ ʙʏ ᴏᴛʜᴇʀ ᴀᴅᴍɪɴ" to player # # # # # # # # # else: # # # # # # # # # send "&c&l✘ &csᴇᴛ ᴛʜᴇ sᴘᴀᴡɴ ʟᴏᴄᴀᴛɪᴏɴ" to player else: send "&c&l✘ &csᴇᴛ ᴛʜᴇ ᴄᴀɢᴇ ʟᴏᴄᴀᴛɪᴏɴ" to player else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player else: send "&c&l✘ &cᴛʜɪs ᴘʟᴀʏᴇʀ ɪs ᴏғғʟɪɴᴇ" to player if arg 3 is "menu" or "gui": if offline-player is online: set {_ban::name} to arg-offlineplayer if player has permission "check.player.menu": if {_checking::%arg-offlineplayer%} is true: set {_m} to chest inventory with 3 rows named "&a&lᴄʜᴇᴄᴋɪɴɢ ᴍᴇɴᴜ" set slot 10 of {_m} to red dye named "&c&lᴄʜᴇᴀᴛʏ" with lore "&8• &fᴛʜɪs ᴏᴘᴛɪᴏɴ ʙᴀɴs ᴛʜᴇ%nl%&8• &fᴘʟᴀʏᴇʀ ғʀᴏᴍ ʜᴀᴠɪɴɢ ᴄʜᴇᴀᴛs" set slot 12 of {_m} to orange dye named "&c&lᴄᴏᴏᴘᴇʀᴀᴛɪᴏɴ" with lore "&8• &fᴛʜɪs ᴏᴘᴛɪᴏɴ ʙᴀɴs ᴛʜᴇ%nl%&8• &fᴘʟᴀʏᴇʀ ғʀᴏᴍ ʟᴀᴄᴋ ᴏғ ᴄᴏᴏᴘᴇʀᴀᴛɪᴏɴ" set slot 14 of {_m} to yellow dye named "&e&lᴀᴅᴍɪᴛᴛɪɴɢ" with lore "&8• &fᴛʜɪs ᴏᴘᴛɪᴏɴ ʙᴀɴs ᴛʜᴇ%nl%&8• &fᴘʟᴀʏᴇʀ ғʀᴏᴍ ᴀᴅᴍɪᴛᴛɪɴɢ ᴛᴏ ᴄʜᴇᴀᴛɪɴɢ" set slot 16 of {_m} to lime dye named "&a&lᴄʟᴇᴀʀ" with lore "&8• &fᴛʜɪs ᴏᴘᴛɪᴏɴ ʀᴇʟᴇᴀsᴇs ᴛʜᴇ%nl%&8• &fᴘʟᴀʏᴇʀ ᴡɪᴛʜᴏᴜᴛ ᴄʜᴇᴀᴛs" set slot 26 of {_m} to barrier named "&a&lᴄʟᴏsᴇ" with lore "&8• &fᴛʜᴀᴛ ᴏᴘᴛɪᴏɴ ᴡɪʟʟ%nl%&8• &fᴄʟᴏsᴇ ᴛʜɪs ᴍᴇɴᴜ" open {_m} to player else: send "&c&l✘ &cʏᴏᴜ ᴍᴜsᴛ ᴄʜᴇᴄᴋ ᴀɴʏ ᴘʟᴀʏᴇʀ" to player else: send "&c&l✘ &cʏᴏᴜ ᴅᴏɴᴛ ʜᴀᴠᴇ ᴘᴇʀᴍɪssɪᴏɴs" to player else: send "&c&l✘ &cᴛʜɪs ᴘʟᴀʏᴇʀ ɪs ᴏғғʟɪɴᴇ" to player on inventory click: event-enventory is not player's inventory if name of event-inventory is "&a&lᴄʜᴇᴄᴋɪɴɢ ᴍᴇɴᴜ": cancel event if clicked slot is 10: close player's inventory send "&a&l✔ &aᴀ ᴘʟᴀʏᴇʀ ᴡᴀs ʙᴀɴɴᴇᴅ ғᴏʀ ʜᴀᴠɪɴɢ ᴄʜᴇᴀᴛs" to player execute player command "check player %{_ban::name}% cheaty" to player stop if clicked slot is 12: close player's inventory send "&a&l✔ &aᴘʟᴀʏᴇʀ ʙᴀɴɴᴇᴅ ғᴏʀ ʟᴀᴄᴋ ᴏғ ᴄᴏᴏᴘᴇʀᴀᴛɪᴏɴ" to player execute player command "check player %{_ban::name}% coop" to player stop if clicked slot is 14: close player's inventory send "&a&l✔ &aᴀ ᴘʟᴀʏᴇʀ ᴡᴀs ʙᴀɴɴᴇᴅ ғᴏʀ ᴀᴅᴍɪᴛᴛɪɴɢ ᴛᴏ ᴄʜᴇᴀᴛɪɴɢ" to player execute player command "check player %{_ban::name}% admission" to player stop if clicked slot is 16: close player's inventory send "&a&l✔ &aᴛʜᴇ ᴘʟᴀʏᴇʀ ᴡᴀs ʀᴇʟᴇᴀsᴇᴅ ғᴏʀ ʟᴀᴄᴋ ᴏғ ᴄʜᴇᴀᴛs" to player execute player command "check player %{_ban::name}% clear" to player stop if clicked slot is 26: close player's inventory stop