Files
securitycraft.sk
Code
1 193
securitycraft.sk
# SecurityCraft Items Manager
# Obsługa przedmiotów z moda SecurityCraft
# Wersja: 1.1
options:
prefix: &c[SecurityCraft]&r
admin-perm: securitycraft.admin
use-perm: securitycraft.use
command /sc [<text>] [<text>] [<player>] [<integer>]:
permission: {@admin-perm}
aliases: /securitycraft
trigger:
if arg-1 is not set:
send ""
send "{@prefix} &6Dostępne komendy:"
send "&e/sc give <item> <gracz> [ilość] &7- Daj przedmiot SecurityCraft"
send "&e/sc list &7- Lista wszystkich przedmiotów"
send "&e/sc reload &7- Przeładuj skrypt"
send ""
stop
if arg-1 is "give":
if arg-2 is not set:
send "{@prefix} &cPodaj nazwę przedmiotu! Użyj /sc list"
stop
if arg-3 is not set:
send "{@prefix} &cPodaj gracza!"
stop
set {_amount} to arg-4 ? 1
set {_item} to arg-2
if {_item} is "keycard":
give arg-3 diamond named "&6Keycard" with lore "&7SecurityCraft - Karta dostępu"
send "{@prefix} &aDano %{_amount}%x Keycard dla %arg-3%"
else if {_item} is "reinforced_stone":
give {_amount} of stone named "&7Reinforced Stone" with lore "&7SecurityCraft - Wzmocniony kamień" to arg-3
send "{@prefix} &aDano %{_amount}%x Reinforced Stone dla %arg-3%"
else if {_item} is "kamien":
give {_amount} of stone named "&7Reinforced Stone" with lore "&7SecurityCraft - Wzmocniony kamień" to arg-3
send "{@prefix} &aDano %{_amount}%x Reinforced Stone dla %arg-3%"
else if {_item} is "reinforced_iron":
give {_amount} of iron block named "&fReinforced Iron" with lore "&7SecurityCraft - Wzmocnione żelazo" to arg-3
send "{@prefix} &aDano %{_amount}%x Reinforced Iron dla %arg-3%"
else if {_item} is "zelazo":
give {_amount} of iron block named "&fReinforced Iron" with lore "&7SecurityCraft - Wzmocnione żelazo" to arg-3
send "{@prefix} &aDano %{_amount}%x Reinforced Iron dla %arg-3%"
else if {_item} is "security_camera":
give {_amount} of observer named "&6Security Camera" with lore "&7SecurityCraft - Kamera bezpieczeństwa" to arg-3
send "{@prefix} &aDano %{_amount}%x Security Camera dla %arg-3%"
else if {_item} is "kamera":
give {_amount} of observer named "&6Security Camera" with lore "&7SecurityCraft - Kamera bezpieczeństwa" to arg-3
send "{@prefix} &aDano %{_amount}%x Security Camera dla %arg-3%"
else if {_item} is "keypad":
give {_amount} of stone button named "&6Keypad" with lore "&7SecurityCraft - Panel z kodem" to arg-3
send "{@prefix} &aDano %{_amount}%x Keypad dla %arg-3%"
else if {_item} is "panel":
give {_amount} of stone button named "&6Keypad" with lore "&7SecurityCraft - Panel z kodem" to arg-3
send "{@prefix} &aDano %{_amount}%x Keypad dla %arg-3%"
else if {_item} is "laser_field":
give {_amount} of redstone named "&cLaser Field" with lore "&7SecurityCraft - Pole laserowe" to arg-3
send "{@prefix} &aDano %{_amount}%x Laser Field dla %arg-3%"
else if {_item} is "laser":
give {_amount} of redstone named "&cLaser Field" with lore "&7SecurityCraft - Pole laserowe" to arg-3
send "{@prefix} &aDano %{_amount}%x Laser Field dla %arg-3%"
else if {_item} is "mine":
give {_amount} of stone pressure plate named "&4Mine" with lore "&7SecurityCraft - Mina" to arg-3
send "{@prefix} &aDano %{_amount}%x Mine dla %arg-3%"
else if {_item} is "mina":
give {_amount} of stone pressure plate named "&4Mine" with lore "&7SecurityCraft - Mina" to arg-3
send "{@prefix} &aDano %{_amount}%x Mine dla %arg-3%"
else if {_item} is "portable_radar":
give {_amount} of compass named "&aPortable Radar" with lore "&7SecurityCraft - Przenośny radar" to arg-3
send "{@prefix} &aDano %{_amount}%x Portable Radar dla %arg-3%"
else if {_item} is "radar":
give {_amount} of compass named "&aPortable Radar" with lore "&7SecurityCraft - Przenośny radar" to arg-3
send "{@prefix} &aDano %{_amount}%x Portable Radar dla %arg-3%"
else if {_item} is "scanner":
give {_amount} of hopper named "&bRetinal Scanner" with lore "&7SecurityCraft - Skaner siatkówki" to arg-3
send "{@prefix} &aDano %{_amount}%x Scanner dla %arg-3%"
else if {_item} is "codebreaker":
give {_amount} of stick named "&cCodebreaker" with lore "&7SecurityCraft - Łamacz kodów" to arg-3
send "{@prefix} &aDano %{_amount}%x Codebreaker dla %arg-3%"
else if {_item} is "lamacz":
give {_amount} of stick named "&cCodebreaker" with lore "&7SecurityCraft - Łamacz kodów" to arg-3
send "{@prefix} &aDano %{_amount}%x Codebreaker dla %arg-3%"
else if {_item} is "universal_key":
give {_amount} of gold ingot named "&eUniversal Key" with lore "&7SecurityCraft - Uniwersalny klucz" to arg-3
send "{@prefix} &aDano %{_amount}%x Universal Key dla %arg-3%"
else if {_item} is "klucz":
give {_amount} of gold ingot named "&eUniversal Key" with lore "&7SecurityCraft - Uniwersalny klucz" to arg-3
send "{@prefix} &aDano %{_amount}%x Universal Key dla %arg-3%"
else if {_item} is "briefcase":
give {_amount} of chest named "&6Briefcase" with lore "&7SecurityCraft - Walizka" to arg-3
send "{@prefix} &aDano %{_amount}%x Briefcase dla %arg-3%"
else if {_item} is "walizka":
give {_amount} of chest named "&6Briefcase" with lore "&7SecurityCraft - Walizka" to arg-3
send "{@prefix} &aDano %{_amount}%x Briefcase dla %arg-3%"
else if {_item} is "alarm":
give {_amount} of note block named "&4Alarm" with lore "&7SecurityCraft - System alarmowy" to arg-3
send "{@prefix} &aDano %{_amount}%x Alarm dla %arg-3%"
else:
send "{@prefix} &cNieznany przedmiot! Użyj /sc list"
else if arg-1 is "list":
send ""
send "{@prefix} &6Dostępne przedmioty SecurityCraft:"
send "&e• keycard &7- Karta dostępu"
send "&e• reinforced_stone / kamien &7- Wzmocniony kamień"
send "&e• reinforced_iron / zelazo &7- Wzmocnione żelazo"
send "&e• security_camera / kamera &7- Kamera bezpieczeństwa"
send "&e• keypad / panel &7- Panel z kodem"
send "&e• laser_field / laser &7- Pole laserowe"
send "&e• mine / mina &7- Mina"
send "&e• portable_radar / radar &7- Przenośny radar"
send "&e• scanner &7- Skaner siatkówki"
send "&e• codebreaker / lamacz &7- Łamacz kodów"
send "&e• universal_key / klucz &7- Uniwersalny klucz"
send "&e• briefcase / walizka &7- Walizka"
send "&e• alarm &7- System alarmowy"
send ""
else if arg-1 is "reload":
make console execute command "/sk reload securitycraft"
send "{@prefix} &aSkrypt przeładowany!"
else:
send "{@prefix} &cNieznana komenda! Użyj /sc"
command /sckit [<text>]:
permission: {@admin-perm}
aliases: /securitykit
trigger:
if arg-1 is not set:
send "{@prefix} &cDostępne kity: basic, advanced, admin"
stop
if arg-1 is "basic":
give player diamond named "&6Keycard" with lore "&7SecurityCraft - Karta dostępu"
give player 16 of stone named "&7Reinforced Stone" with lore "&7SecurityCraft - Wzmocniony kamień"
give player stone button named "&6Keypad" with lore "&7SecurityCraft - Panel z kodem"
send "{@prefix} &aOtrzymano podstawowy kit SecurityCraft!"
else if arg-1 is "advanced":
give player 2 of diamond named "&6Keycard" with lore "&7SecurityCraft - Karta dostępu"
give player 32 of iron block named "&fReinforced Iron" with lore "&7SecurityCraft - Wzmocnione żelazo"
give player 2 of observer named "&6Security Camera" with lore "&7SecurityCraft - Kamera bezpieczeństwa"
give player 4 of redstone named "&cLaser Field" with lore "&7SecurityCraft - Pole laserowe"
give player hopper named "&bRetinal Scanner" with lore "&7SecurityCraft - Skaner siatkówki"
send "{@prefix} &aOtrzymano zaawansowany kit SecurityCraft!"
else if arg-1 is "admin":
give player gold ingot named "&eUniversal Key" with lore "&7SecurityCraft - Uniwersalny klucz"
give player stick named "&cCodebreaker" with lore "&7SecurityCraft - Łamacz kodów"
give player compass named "&aPortable Radar" with lore "&7SecurityCraft - Przenośny radar"
give player note block named "&4Alarm" with lore "&7SecurityCraft - System alarmowy"
give player chest named "&6Briefcase" with lore "&7SecurityCraft - Walizka"
send "{@prefix} &aOtrzymano kit administracyjny SecurityCraft!"
else:
send "{@prefix} &cNieznany kit! Dostępne: basic, advanced, admin"
on script load:
send "{@prefix} &aSkrypt SecurityCraft załadowany!" to console
send "&7Użyj /sc aby zobaczyć komendy" to console
on script unload:
send "{@prefix} &cSkrypt SecurityCraft wyładowany!" to console