Skocz do zawartości
  • 0

Logowanie na chacie


infusz

Pytanie

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
42 minuty temu, infusz napisał:

Witam szukam skryptu na logowanie ktory ma komendy na chacie:

.register (haslo) (haslo)

oraz

.login (haslo)

Musi być to skrypt? Najlepiej byłoby użyć do tego pluginu authme reloaded, ale jeżeli bardzo potrzebujesz skryptu, to jest taki na forum, ale może on nie działać na nowszych wersjach.

 

Odnośnik do komentarza
https://skript.pl/temat/51426-logowanie-na-chacie/#findComment-316289
Udostępnij na innych stronach

  • 0

ale po co, skoro masz authme 

14 minut temu, infusz napisał:

prosty skrypt na logowanie

nie będę popierać nieszyfrowania haseł (wiem, że się da, ale op chce "prosty")

Odnośnik do komentarza
https://skript.pl/temat/51426-logowanie-na-chacie/#findComment-316292
Udostępnij na innych stronach

  • 0
22 minuty temu, CoFFeIN04 napisał:

ale po co, skoro masz authme 

nie będę popierać nieszyfrowania haseł (wiem, że się da, ale op chce "prosty")

... 

a czy ty umiesz czytać napisałem: 

chodzi mi tutaj o to aby ktos napisal prosty skrypt na logowanie

.register haslo haslo

i

.login haslo

cos takiego jak np w proxy do minecrafta

 

w authme jest logowanie pod /login a nie na czacie jak chce ;)

Odnośnik do komentarza
https://skript.pl/temat/51426-logowanie-na-chacie/#findComment-316293
Udostępnij na innych stronach

  • 0
command /register <text> <text>:
	trigger:
		if {password::%uuid of player%} is set:
			send "Login! .login <password>"
			stop
		if arg-1 is arg-2:
			set {password::%uuid of player%} to text-argument hashed with SHA-256
		else:
			send "&c.register <password> <password>"
command /login <text>:
	trigger:
		if {password::%uuid of player%} is not set:
			send "Register first! .register <password> <password>"
		if text-argument hashed with SHA-256 is {password::%uuid of player%}:
			message "Login successful."
			set {logged::%uuid of player%} to true
		else:
			message "Wrong password!"
on join:
	if {password::%uuid of player%} is not set:
		send "Register now! .register <password> <password>"
	else:
		send "Login! .login <password>"
on quit:
	set {logged::%uuid of player%} to false

on chat:
	if message starts with ".login" or ".register":
		cancel event
		execute player command "%subtext of message from characters 2 to (length of message)%"

prosze

Odnośnik do komentarza
https://skript.pl/temat/51426-logowanie-na-chacie/#findComment-316302
Udostępnij na innych stronach

  • 0
13 godzin temu, CoFFeIN04 napisał:
command /register <text> <text>:
	trigger:
		if {password::%uuid of player%} is set:
			send "Login! .login <password>"
			stop
		if arg-1 is arg-2:
			set {password::%uuid of player%} to text-argument hashed with SHA-256
		else:
			send "&c.register <password> <password>"
command /login <text>:
	trigger:
		if {password::%uuid of player%} is not set:
			send "Register first! .register <password> <password>"
		if text-argument hashed with SHA-256 is {password::%uuid of player%}:
			message "Login successful."
			set {logged::%uuid of player%} to true
		else:
			message "Wrong password!"
on join:
	if {password::%uuid of player%} is not set:
		send "Register now! .register <password> <password>"
	else:
		send "Login! .login <password>"
on quit:
	set {logged::%uuid of player%} to false

on chat:
	if message starts with ".login" or ".register":
		cancel event
		execute player command "%subtext of message from characters 2 to (length of message)%"

prosze

[09:17:11 INFO]: [Skript] Reloading the config and all scripts...
[09:17:11 INFO]: Loaded a total of 12584 english aliases
[09:17:12 ERROR]: Can't understand this condition/effect: set player-argument's prefix to argument 1 (proxy.sk, line 27: set player-argument's prefix to argument 1')
[09:17:12 ERROR]: Can't understand this expression: 'text-argument hashed with SHA-256' (proxy.sk, line 36: set {password::%uuid of player%} to text-argument hashed with SHA-256')
[09:17:12 ERROR]: can't understand this condition: 'text-argument hashed with SHA-256 is {password::%uuid of player%}' (proxy.sk, line 43: if text-argument hashed with SHA-256 is {password::%uuid of player%}:')
[09:17:12 INFO]: Loaded 3 scripts with a total of 8 triggers and 3 commands in 0.6 seconds
[09:17:12 INFO]: [Skript] Encountered 3 errors while reloading the config and all scripts!

 

Notro

Wstawiam kod w code.

Notatka dodana przez Notro

Odnośnik do komentarza
https://skript.pl/temat/51426-logowanie-na-chacie/#findComment-316320
Udostępnij na innych stronach

  • 0
31 minut temu, infusz napisał:

09:17:12 ERROR]: Can't understand this condition/effect: set player-argument's prefix to argument 1 (proxy.sk, line 27: set player-argument's prefix to argument 1')

nie widze czegos takiego w kodzie,

poprawiony kod

command /register <text> <text>:
	trigger:
		if {password::%uuid of player%} is set:
			send "Login! .login <password>"
			stop
		if arg-1 is arg-2:
			set {password::%uuid of player%} to argument-1 hashed with SHA-256
		else:
			send "&c.register <password> <password>"
command /login <text>:
	trigger:
		if {password::%uuid of player%} is not set:
			send "Register first! .register <password> <password>"
		if text-argument hashed with SHA-256 is {password::%uuid of player%}:
			message "Login successful."
			set {logged::%uuid of player%} to true
		else:
			message "Wrong password!"
on join:
	if {password::%uuid of player%} is not set:
		send "Register now! .register <password> <password>"
	else:
		send "Login! .login <password>"
on quit:
	set {logged::%uuid of player%} to false

on chat:
	if message starts with ".login" or ".register":
		cancel event
		execute player command "%subtext of message from characters 2 to (length of message)%"

 

pokaż jeszcze komendę /ver Skript, bo domyślam się że jest to pewnie jakiś skript 2.1.2 (jeśli tak jest to zaktualizuj)

Edytowane przez CoFFeIN04
Odnośnik do komentarza
https://skript.pl/temat/51426-logowanie-na-chacie/#findComment-316324
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ę...