Add a Key Property

Aperta
#8,932 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by reading ExprTagKey and MinecraftTag, which the issue names as the pattern and handler points. Trace how tag properties and key expressions are registered, then check nearby tests for expression syntax coverage. Done means key of {_mytag} still works and a key property is available without blocking addons from defining a key pattern.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority: low suggestion
Suggestion

At the moment, there is no property for key making it so addons or Skript itself cannot have a syntax with a pattern like e.g. send key of {_mybossbar}
And even if addons wanted to make one, they can't due to Skript using the pattern in ExprTagKey ([namespace[d]] key[s])

It would be nice if the pattern for ExprTagKey was changed to require namespace[d] and then a key handler was added onto MinecraftTag so that key of {_mytag} would still function.
And also would be nice if Skript could add the property itself of course as it would be needed for the above anyway.
Possibly also deprecate ExprTagKey if the change is implemented but that would just be a future breaking change for no reason.

Why?

Explained above

Other

No response

Agreement
  • I have read the guidelines above and affirm I am following them with this suggestion.
Lingua principale
Java
Stelle
1.3k
Fork
456
Merge medio
4g 14h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SkriptLang/Skript

Tutte le issue di SkriptLang/Skript

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.