Dependency for Dynasty Salary
Adds interactions for clients to order building projects from builders.
How a project works
- The client types
/commande chantier Taverne @Eno. The project type can contain spaces and accents, for exampleMaison en pierre. - The builder receives the message “@Player ordered Taverne. Do you want to accept?”, with the clickable buttons [Accepter] and [Refuser]. They can also type
/commande Accepter. - When finished, the builder types
/chantier Terminé, and the client receives a [Valider] button. - The client types
/chantier Validé, and the builder is paid the construction salary set inmetiers.json(10 ☾ by default).
MORE
- Only players whose job is paid per construction can receive an order. This is the dependency on Dynasty Salary.
- Commands work with or without capital letters and accents (
Terminé,termine,Validé,valide…). - The project number is optional when only one project is involved.
- An offline player receives the order, the approval request or their salary the next time they log in.
- The client can send the project back to the builder with
/chantier contester [reason], or cancel the order before it’s finished with/commande annuler. /chantier listeshows the player’s last 10 projects, with action buttons.- Staff can settle a dispute or handle a client who has left with
/chantier admin annuler <id>and/chantier admin valider <id>. - Safeguards, adjustable in
config/dynasty_chantiers/config.json: an unanswered order expires after 24 h, a builder can have at most 3 ongoing projects, and a client at most 3 open orders.
=========================
Ajoute des intéractions pour passer commande pour des chantiers entre le builder et le client
Commandes :
Déroulement d’un chantier
- Le client tape
/commande chantier Taverne @Eno. Le type peut contenir des espaces et des accents, par exempleMaison en pierre. - Le builder reçoit le message « @Pseudo a commandé Taverne. Voulez-vous accepter ? », avec les boutons cliquables [Accepter] et [Refuser]. Il peut aussi taper
/commande Accepter. - Quand il a fini, le builder tape
/chantier Terminé, et le client reçoit un bouton [Valider]. - Le client tape
/chantier Validé, et le builder est payé selon le salaire de construction défini dansmetiers.json(10 ☾ par défaut)
MORE :
- Seuls les joueurs avec un métier payé à la construction peuvent recevoir une commande. C’est la dépendance à Dynasty Salary.
- Les commandes acceptent les majuscules ou non, avec ou sans accents (
Terminé,termine,Validé,valide…). - Le numéro de chantier est facultatif quand il n’y a qu’un seul chantier concerné.
- Un joueur hors ligne reçoit la commande, la demande de validation ou son salaire à sa prochaine connexion.
- Le client peut renvoyer le chantier au builder avec
/chantier contester [raison], ou annuler sa commande avant la fin avec/commande annuler. /chantier listeaffiche les 10 derniers chantiers du joueur, avec des boutons d’action.- Le staff peut régler un litige ou le cas d’un client parti avec
/chantier admin annuler <id>et/chantier admin valider <id>. - Garde-fous, réglables dans
config/dynasty_chantiers/config.json: une commande sans réponse expire au bout de 24 h, un builder peut avoir 3 chantiers en cours au maximum, et un client 3 commandes ouvertes au maximum.