Skocz do zawartości
  • 0

Rangi na chacie


Diszeej

Pytanie

Witam. Potrzebuje skryptu na chat, w tym sensie, ze chce, aby bylo jak EssentialsChat.(Nie chce Essentials na serwie ;p)

Ze np. Admin ma tak: &cADMIN &fMaestro_ &7>> &ctekst lub [ranga] &fMaestro_ &7>> &cTekst

 

Jakby co plugin na permisje to: LuckPerms

Odnośnik do komentarza
https://skript.pl/temat/19296-rangi-na-chacie/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Nie rozumiem czy jest sens kombinować w skript z rangami  . Są do tego pluginy nie tylko essentials . Napisz na priv wyjsle Ci cos co ułatwi ci sprawę bez essentials.

Edytowane przez MrWyjebka
Odnośnik do komentarza
https://skript.pl/temat/19296-rangi-na-chacie/#findComment-131387
Udostępnij na innych stronach

  • 0

Ja do tego wykorzystałbym funkcje 

on load:
	if folder "plugins/ad-chat/" doesn't exists:
		create folder "plugins/ad-chat/"
	if file "plugins/ad-chat/config.yml" doesn't exists:
		create file "plugins/ad-chat/config.yml"
		wf "### Jesli chcesz wykorzystac czyis nick uzyj '%{_p}%'" to "plugins/ad-chat/config.yml"
		wf "chatadmin: 'Admin %{_p}% >> %message%'" to "plugins/ad-chat/config.yml"
		wf "chatmoderator: 'Moderator %{_p}% >> %message%'" to "plugins/ad-chat/config.yml"
	set {chatadmin} to single value "chatadmin" get of "plugins/ad-chat/config.yml"
	set {chatmoderator} to single value "chatmoderator" get of "plugins/ad-chat/config.yml"
function newChatAdmin(p: player):
	cancel event
	broadcast "%{chatadmin}%"
function newChatModerator(p: player):
	cancel event
	broadcast "%{chatmoderator}%"
on chat:
	if player has permission "chat.admin":
		newChatAdmin(player)
	if player has permission "chat.moderator":
		newChatModerator(player)
	stop

Masz dodatkowo folder , a w nim plik config.yml

Edytowane przez iм×kvρi
Odnośnik do komentarza
https://skript.pl/temat/19296-rangi-na-chacie/#findComment-131397
Udostępnij na innych stronach

  • 0
Godzinę temu, iм×kvρi napisał:

Ja do tego wykorzystałbym funkcje 


on load:
	if folder "plugins/ad-chat/" doesn't exists:
		create folder "plugins/ad-chat/"
	if file "plugins/ad-chat/config.yml" doesn't exists:
		create file "plugins/ad-chat/config.yml"
		wf "### Jesli chcesz wykorzystac czyis nick uzyj '%{_p}%'" to "plugins/ad-chat/config.yml"
		wf "chatadmin: 'Admin %{_p}% >> %message%'" to "plugins/ad-chat/config.yml"
		wf "chatmoderator: 'Moderator %{_p}% >> %message%'" to "plugins/ad-chat/config.yml"
	set {chatadmin} to single value "chatadmin" get of "plugins/ad-chat/config.yml"
	set {chatmoderator} to single value "chatmoderator" get of "plugins/ad-chat/config.yml"
function newChatAdmin(p: player):
	cancel event
	broadcast "%{chatadmin}%"
function newChatModerator(p: player):
	cancel event
	broadcast "%{chatmoderator}%"
on chat:
	if player has permission "chat.admin":
		newChatAdmin(player)
	if player has permission "chat.moderator":
		newChatModerator(player)
	stop

Masz dodatkowo folder , a w nim plik config.yml

A jak czat jest wyłączony albo ktoś ma mute'a? Może pisać :/

Odnośnik do komentarza
https://skript.pl/temat/19296-rangi-na-chacie/#findComment-131410
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ę...