Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {steamcraft::%player%::account::balance} = 0
- options:
- tag: &8[&3SteamCraft&8]
- cena.kupna: 50
- command /sc [<text>] [<text>] [<integer>] [<player>]:
- trigger:
- if arg 1 is not set:
- if {steamcraft::%player%::logged} is true:
- send "&2&m-----------------------------------------------------"
- send "&b SteamCraft [zalogowany, %{steamcraft::%player%::account::balance}%$]"
- send "&7- &e/sc usun &7- Usuwa konto SteamCraft"
- send "&7- &e/sc lista &7- Lista kont SteamCraft&b*"
- send "&7- &e/sc wyloguj &7- Wylogowywuje Cie z konta SteamCraft"
- send "&7- &e/sc dodaj [nazwa_gry] &7- Dodaje gre do SteamCraft&b*"
- send "&7- &e/sc usungre [nazwa_gry] &7- Usuwa gre z SteamCraft&b*"
- send "&7- &e/sc gry &7- Lista gier w SteamCraft"
- send "&7- &e/sc mojegry &7- Lista twoich gier w SteamCraft"
- send "&7- &e/sc kup [nazwa_gry] &7- Kupujesz gre ze sklepu SteamCraft"
- send "&7- &e/sc dodajgraczowi [nazwa_gry] [gracz] &7- Dodaje gre ze sklepu SteamCraft dla gracza&b*"
- send "&7- &e/sc usungraczowi [nazwa_gry] [gracz] &7- Usuwa gre ze sklepu SteamCraft dla gracza&b*"
- send "&b* - dla administratora"
- send "&b by boleknowak"
- send "&2&m-----------------------------------------------------"
- else:
- send "&2&m-----------------------------------------------------"
- send "&b SteamCraft"
- send "&7- &e/sc stworz [haslo] &7- Tworzy konto SteamCraft"
- send "&7- &e/sc login [haslo] &7- Loguje Cie na konto SteamCraft"
- send "&b by boleknowak"
- send "&2&m-----------------------------------------------------"
- if arg 1 is "stworz":
- if arg 2 is set:
- if {steamcraft::%player%::account} is true:
- send "{@tag} &cMasz juz konto!"
- else:
- set {steamcraft::%player%::password} to arg 2
- send "{@tag} &aTwoje nowe konto to: &6%player%&a, a haslo: &6%arg 2%"
- set {steamcraft::%player%::account} to true
- add "%player%_%arg 2%" to {steamcraft::account::*}
- if arg 1 is "usun":
- if {steamcraft::%player%::account} is true:
- send "{@tag} &aPomyslnie usunales konto SteamCraft!"
- delete {steamcraft::%player%::account}
- delete {steamcraft::%player%::password}
- remove "%player%_%{steamcraft::%player%::password}%" from {steamcraft::account::*}
- else:
- send "{@tag} &cNie masz konta!"
- if arg 1 is "lista":
- if player has permission "steamcraft.lista.uzytkownicy":
- send "{@tag} &6Lista kont SteamCraft:"
- send "{@tag} &9Ilosc kont: %size of {steamcraft::account::*}%"
- send "{@tag} &9Konta:"
- set {_} to "%{steamcraft::account::*}%"
- replace all "and" with ", " in {_}
- send "%{_}%"
- delete {_}
- if arg 1 is "login":
- if arg 2 is set:
- if {steamcraft::%player%::account} is true:
- if arg 2 is "%{steamcraft::%player%::password}%":
- if {steamcraft::%player%::logged} is true:
- send "{@tag} &cJestes zalogowany!"
- else:
- send "{@tag} &aZalogowano!"
- set {steamcraft::%player%::logged} to true
- else:
- send "{@tag} &cPodales zle haslo, lub twoje konto nie istnieje!"
- else:
- send "{@tag} &cNie masz konta!"
- if arg 1 is "logout" or "wyloguj":
- if {steamcraft::%player%::logged} is true:
- set {steamcraft::%player%::logged} to false
- send "{@tag} &aWylogowales sie pomyslnie!"
- else:
- send "{@tag} &cNie jestes zalogowany!"
- if arg 1 is "dodaj":
- if arg 2 is set:
- if player has permission "steamcraft.add.game":
- if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
- send "&cNie ma takiego skryptu." to player
- else:
- send "&aDodano: &6&l%arg 2%" to player
- add "%arg 2%" to {steamcraft::games::*}
- else:
- send "{@tag} &cNie mozesz tego zrobic!"
- if arg 1 is "usungre":
- if arg 2 is set:
- if player has permission "steamcraft.remove.game":
- remove "%arg 2%" from {steamcraft::games::*}
- send "{@tag} &aUsunales gre: &6&l%arg 2%"
- if arg 1 is "gry":
- send "{@tag} &9Ilosc gier: %size of {steamcraft::games::*}%"
- send "{@tag} &9Gry:"
- set {_} to "%{steamcraft::games::*}%"
- replace all " and" with ", " in {_}
- replace all "<none>" with "Brak gier!" in {_}
- send "&a%{_}%"
- delete {_}
- if arg 1 is "kup":
- if arg 2 is set:
- if {steamcraft::%player%::logged} is false:
- send "{@tag} &cMusisz byc zalogowany!"
- else:
- if {steamcraft::%player%::account::balance} >= {@cena.kupna}:
- loop {steamcraft::games::*}:
- if loop-value is arg 2:
- send "{@tag} &aZakupiles gre &6&l%arg 2%&a, koszt &6&l50"
- add "%arg 2%" to {steamcraft::%player%::games::*}
- stop
- send "{@tag} &cNie ma takiej gry!"
- stop
- else:
- send "{@tag} &cNie stac Cie!"
- if arg 1 is "mojegry":
- if {steamcraft::%player%::logged} is false:
- send "{@tag} &cMusisz byc zalogowany!"
- else:
- send "{@tag} &9Moje gry:"
- set {_} to "%{steamcraft::%player%::games::*}%"
- replace all " and" with ", " in {_}
- replace all "<none>" with "Brak gier!" in {_}
- send "&a%{_}%"
- delete {_}
- if arg 1 is "dodajgraczowi":
- if arg 2 is set:
- if player-arg is set:
- if player has permission "steamcraft.addgame.user":
- if {steamcraft::%player%::account} is true:
- if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
- send "{@tag} &cNie ma takiej gry"
- else:
- add "%arg 2%" to {steamcraft::%player-arg%::games::*}
- send "{@tag} &aDodano gre &6&l%arg 2% &agraczowi &6&l%player-arg%"
- if arg 1 is "usungraczowi":
- if arg 2 is set:
- if player-arg is set:
- if player has permission "steamcraft.removegame.user":
- if {steamcraft::%player%::account} is true:
- loop {steamcraft::%player-arg%::games::*}:
- if loop-value is arg 2:
- remove "%arg 2%" from {steamcraft::%player-arg%::games::*}
- send "{@tag} &aUsunieto gre &6&l%arg 2% &agraczowi &6&l%player-arg%"
- stop
- if arg 1 is "graj":
- if arg 2 is set:
- if {steamcraft::%player%::logged} is false:
- send "{@tag} &cMusisz byc zalogowany!"
- else:
- loop {steamcraft::%player%::games::*}:
- if loop-value is arg 2:
- execute console command "pex user %player% add ""steamcraft.joingame.bypass"""
- send "{@tag} &aŁączenie z grą..."
- wait 2 seconds
- execute player command "%arg 2% join"
- wait 5 tick
- execute console command "pex user %player% remove ""steamcraft.joingame.bypass"""
- stop
- send "{@tag} &cNie masz tej gry!"
- stop
- on quit:
- execute player command "sc logout"
Advertisement
Add Comment
Please, Sign In to add comment