Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- if folder "plugins/clan" doesn't exists:
- create folder "plugins/clan"
- create folder "plugins/clan/info"
- command /clan [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&7==========&eCLAN==========" to player
- send "&e/clan zaloz (tag) (nazwa) &f- &ezaklada clan" to player
- send "&e/clan zapros (nick) &f- &ezaprasza gracza do clanu" to player
- send "&e/clan usun &f- &eusuwa clan" to player
- send "&e/clan wyrzuc (nick) &f- &ewyrzuca gracza z clanu" to player
- send "&7==========&eCLAN==========" to player
- if arg 1 is "zaloz":
- if arg 2 is not set:
- send "&eNie wpisales tagu clanu"
- if arg 3 is not set:
- send "&eNie wpisales nazwy clanu"
- if arg 2 is set:
- if arg 3 is set:
- if file "plugins/clan/info/%arg 2%.yml" doesn't exists:
- create file "plugins/clan/info/%arg 2%.yml"
- set yaml value "c.tag" from file "plugins/clan/info/%arg 2%.yml" to "%arg 2%"
- set yaml value "c.nazwa" from file "plugins/clan/info/%arg 2%.yml" to "%arg 3%"
- set yaml value "c.zalozyciel" from file "plugins/clan/info/%arg 2%.yml" to "%player%"
- add "%player%" to yaml list "c.czlonkowie" from "plugins/clan/info/%arg 2%.yml"
- send "&eZalozyles clan o tagu &f%arg 2% &ea o nazwie &f%arg 3%"
- else:
- send "&eTaki clan o takiej nazwie i o takim tagu juz istnieje!"
- stop
- if arg 1 is "usun":
- if arg 2 is set:
- delete yaml value "%arg 2%" from file "info.yml"
Advertisement
Add Comment
Please, Sign In to add comment