Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- #
- # Command Creator #
- # -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- #
- # #
- # Skrypt napisany przez Jan kk (youtube.com/user/JankkPL) #
- # #
- # ------------------------------- #
- #
- # Zabraniam: #
- # - Modyfikowania kodu #
- # - Podszywania sie pod autora #
- # Zezwalam na: #
- # - Modyfikowanie komend poprzez komende /commandcreator #
- # - Wykorzystywanie skryptu na serwerach publicznych #
- #
- # ------------------------------- #
- command /commandcreator [<text>] [<text>] [<text>] [<text>]:
- aliases: ccc
- trigger:
- if player is an op:
- if arg 1 is "stworz" or "create":
- if arg 2 is not set:
- send "&cPodaj ID komendy"
- stop
- if arg 3 is not set:
- send "&cPodaj komende!"
- stop
- if arg 4 is not set:
- send "&cPodaj tresc komendy!"
- stop
- if {commandcreator::komenda::%arg 2%} is set:
- send "&cKomenda o takim ID zostala juz stworzona."
- stop
- set {commandcreator::komenda::%arg 2%} to arg 3
- set {commandcreator::tresc::%arg 2%} to arg 4
- send "&2Komenda zostala poprawnie stworzona!"
- stop
- if arg 1 is "usun" or "delete":
- if arg 2 is not set:
- send "&cPodaj ID komendy!"
- stop
- if {commandcreator::komenda::%arg 2%} is not set:
- send "&cTaka komenda nie istnieje!"
- stop
- clear {commandcreator::komenda::%arg 2%}
- clear {commandcreator::tresc::%arg 2%}
- send "&2Poprawnie usunieto komende!"
- stop
- if arg 1 is "reload":
- execute player command "sk reload %script%"
- stop
- send "&a-- &f<[]> &aCommandCreator &f<[]> &a--"
- send "&6/CommandCreator stworz <ID> <komenda> <tresc>"
- send "&7- tworzy nowa komende"
- send "&6/CommandCreator usun <ID>"
- send "&7- usuwa komende"
- send "&6/CommandCreator reload"
- send "&7- przeladowywuje skrypt"
- stop
- send "&cNie masz uprawnien!"
- on command:
- loop {commandcreator::komenda::*}:
- if command is "%loop-value%":
- cancel event
- send "%colored {commandcreator::tresc::%loop-value%}%"
- # ------------------------------- #
Advertisement
Add Comment
Please, Sign In to add comment