Skocz do zawartości
  • 0

Whitelist


ryutsu-kun

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1
options:

	# Domyslny powod
	default-reason: &4Niestety! &cNa serwerze jest whitelista

command /esej:whitelist [<text>] [<text>] [<player>]:
	description: Biala lista.
	aliases: /whitelist
	trigger:
		if argument 1 is "dodaj" or "add":
			add player-argument to {esej::WhiteList::list::*}
			send "&cDodano gracza do whitelisty"
		if argument 1 is "usun" or "remove" or "delete":
			remove player-argument from (esej::WhiteList::list::*}
			send "&cUsunieto gracz z whitelisty"
		if argument 1 is "wlacz" or "enable" or "on":
			set {esej::whitelist::status} to true
			send "&8» &3Wlaczono &6whiteliste"
			if argument 2 is set:
				set {esej::whitelist::reason} to argument 2
				stop
			else:
				set {esej::whitelist::reason} to "{@default-reason}"
		if argument 1 is "wylacz" or "disable" or "off":
			set {esej::whitelist::status} to false
			send "&8» &cWylaczono &6whiteliste"
			stop
on connect:
	if {esej::whitelist::status} is true:
		if {esej::whitelist::list::*} not contains "%player%":
			cancel event
			kick player due to "%{esej::whitelist::reason}%"
			stop
		stop
	stop 

 

Odnośnik do komentarza
https://skript.pl/temat/20030-whitelist/#findComment-136049
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...