Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[PvPrangs][v1.0]
- # by boryso15
- # for uPvP
- #======================================================================#
- # Skrypt stworzony przez boryso15 | Specjalnie dla UPvP #
- #======================================================================#
- #===================================#
- # LICENCJA #
- #===================================#
- # ZAKAZ: #
- # * Modyfikowania treści skryptu #
- # * Przywłaszczania sobie #
- # autorstwa skryptu #
- # * Zarabiania na skrypcie #
- # * Udostępniania skryptu w swoich #
- # paczkach serwerowych #
- # * Usuwania treści zawierających #
- # informacje o autorze #
- # * Podszywania się pod autora #
- #===================================#
- # POZWOLENIA: #
- # * Modyfikowanie wiadomości #
- # skryptu na własne potrzeby #
- #===================================#
- # Mylnie odczytana licencja nie #
- # zwalnia z przestrzegania jej! #
- #===================================#
- on load:
- send "&f[&5PvP&arangs&f][v.1.0]&6 LADOWANIE " to console
- send "&f[&5PvP&arangs&f]&5PvP&arangs&f by &5&lboryso15 for &2u&7PvP" to console
- if folder "plugins/PvPrangs" doesn't exists:
- send "&f[&5PvP&arangs&f]&c BRAK POTRZEBNYCH PLIKOW" to console
- send "&f[&5PvP&arangs&f]&2 TWORZENIE POTRZEBNYCH PLKOW" to console
- create folder "plugins/PvPrangs/PLAYERS"
- on unload:
- send "&f[&5PvP&arangs&f]&6 WYLACZANIE" to console
- every 720 minutes:
- clear {_loopplayer::*}
- set {_loopplayer::*} to all files in "plugins/PvPrangs/PLAYERS/"
- loop {_loopplayer::*}:
- set {_nickname} to single value "nickname" get of "plugins/PvPrangs/PLAYERS/%loop-value%"
- set {_dateofexpired} to single value "dateofexpired" get of "plugins/PvPrangs/PLAYERS/%loop-value%"
- set {_datefromnow} to subtext of "%now%" between 0 and 5
- if {_datefromnow} is {_dateofexpired}:
- execute console command "/pex user %{_nickname}% group set default"
- send "&f[&5PvP&arangs&f] %{_nickname}% zostal zdegradowany do rangi default" to console
- send "&f[&5PvP&arangs&f] %{_nickname}% zostal/a zdegradowany/a do rangi domyslnej" to all players
- df "plugins/PvPrangs/PLAYERS/%{_nickname}%.yml"
- command /miesiac <text> <text>:
- usage: &5&l/miesiac <gracz> <ranga>
- trigger:
- if executor have permissions "advranks.promote" or "*" or "advranks.*":
- set {_ndate} to subtext of "%now%" between 0 and 5
- set "nickname" to "%argument 1%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- set "rank" to "%argument 2%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- set {_nday} to subtext of "%now%" between 0 and 2
- set {_nmonth} to subtext of "%now%" between 4 and 5
- if {_nmonth} is "1":
- set {_emonth} to "2"
- if {_nmonth} is "2":
- set {_emonth} to "3"
- if {_nmonth} is "3":
- set {_emonth} to "4"
- if {_nmonth} is "4":
- set {_emonth} to "5"
- if {_nmonth} is "5":
- set {_emonth} to "6"
- if {_nmonth} is "6":
- set {_emonth} to "7"
- if {_nmonth} is "7":
- set {_emonth} to "8"
- if {_nmonth} is "8":
- set {_emonth} to "9"
- if {_nmonth} is "9":
- set {_emonth} to "10"
- if {_nmonth} is "10":
- set {_emonth} to "11"
- if {_nmonth} is "11":
- set {_emonth} to "12"
- if {_nmonth} is "12":
- set {_emonth} to "1"
- set {_edate} to "%{_nday}%.%{_emonth}%"
- set "date" to "%{_nday}%.%{_nmonth}%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- set "dateofexpired" to "%{_edate}%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- send "%player%: mianowal %argument 1% na %argument 2% na 1 miesiac" to console
- send "&f[&5PvP&arangs&f] %argument 1% zostal/a mianowany/a na %argument 2% na 1 miesiąc" to all players
- execute console command "/pex user %argument 1% group set %argument 2%"
- exit
- else:
- send "&f[&5PvP&arangs&f]&c Nie masz uprawnien" to player
- exit
- command /czas <text> <text> <text>:
- usage: &5&l/czas <gracz> <ranga> <dzień.miesiąc>
- trigger:
- if executor have permissions "PvPrangs.promote" or "*" or "PvPrangs.*":
- set "nickname" to "%argument 1%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- set "rank" to "%argument 2%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- set {_nday} to subtext of "%now%" between 0 and 2
- set {_nmonth} to subtext of "%now%" between 4 and 5
- set "date" to "%{_nday}%.%{_nmonth}%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- set "dateofexpired" to "%argument 3%" in yaml file "plugins/PvPrangs/PLAYERS/%argument 1%.yml"
- send "%player%: mianowal %argument 1% na %argument 2% do %argument 3%" to console
- send "&f[&5Advanced&aRanks&f] %argument 1% zostal/a mianowany/a na %argument 2% do %argument 3%" to all players
- execute console command "/pex user %argument 1% group set %argument 2%"
- exit
- else:
- send "&f[&5PvP&arangs]
- command /rangi <text>:
- usage: &5&l/rangi <reload/pomoc/info>
- trigger:
- if argument 1 is "pomoc":
- send "&a========================================================================================" to executor
- send " &f[&5PvP&arangs&f]" to executor
- send "&a========================================================================================" to executor
- send "&5/miesiac <gracz> <ranga> - ustawia rangę gracza na 1 miesiąc" to executor
- send "&5/czas <gracz> <ranga> <dzień.miesiąc> - ustawia rangę do daty określonej w komendzie" to executor
- send "&5/PvP reload - przeładowuje "PvP rangs" to executor
- send "&a========================================================================================" to executor
- exit
- if argument 1 is "reload":
- if executor have permissions "PvPrangs .reload" or "*" or "PvPrangs.*":
- execute console command "/sk reload %script%"
- exit
- else:
- send "&f[&5PvP&arangs&f]&c Nie masz uprawnien" to player
- exit
- if argument 1 is "info":
- send "&f[&5PvP&arangs&f] stworzony przez boryso15 dla &f[&2U&fPvP]" to executor
- exit
Advertisement
Add Comment
Please, Sign In to add comment