Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 151 additions & 18 deletions patterns/NationsGloryJava.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ===========================
# Commandes Joueur
# ===========================

player_command:
pattern: "{timestamp} [INFO] {player} issued server command: {command}"

Expand All @@ -16,12 +17,14 @@ player_back:
# ===========================
# NationsStats
# ===========================

stats_login:
pattern: "{timestamp} [NationsStats] Connexion de {player} avec {money}$"
pattern: "{timestamp} [INFO] [NationsStats] Connexion de {player} avec {money}$"

# ===========================
# HDV — Hôtel des ventes
# ===========================

hdv_sell:
pattern: "{timestamp} [HDV] {player} vient de mettre en vente {qty}x ID:({itemid}) pour un prix unitaire de {unitprice} $/U (UUID:{uuid})"

Expand All @@ -31,35 +34,65 @@ hdv_buy:
hdv_remove:
pattern: "{timestamp} [HDV] {player} a retiré une annonce ({qty}x ID:({itemid}) pour {unitprice} $/U) (UUID:{uuid})"

hdv_info_pricecalc:
pattern: "{timestamp} [HDV] Le calcul du prix d'achat HDV affiché suit le calcul (quantité * prix unitaire * quantité), il faut diviser par la quantité pour avoir le bon prix d'achat"

# ===========================
# Factions / Relations / Claims
# ===========================

faction_kick:
pattern: "{timestamp} kicked {player} from the faction {faction}"
pattern: "{timestamp} [INFO] [Factions 2.2.2] {player} kicked {kicked_player} from the faction {country}"

chunk_claim:
pattern: "{timestamp} {player} did buy"
pattern: "{timestamp} [INFO] {country} {player} buy {world} {chunk_x} {chunk_y} pour {for_country} à votre pays"

chunk_unclaim:
pattern: "{timestamp} {player} did sell"
pattern: "{timestamp} [INFO] {country} {player} sell {world} {chunk_x} {chunk_y} pour {for_country} à votre pays"

chunk_pillage:
pattern: "{timestamp} {player} did pillage"
pattern: "{timestamp} [INFO] {country} {player} pillage {world} {chunk_x} {chunk_y} pour {for_country} à votre pays"

country_sale:
pattern: "{timestamp} MISE EN VENTE PAYS {country} POUR {price}$"
pattern: "{timestamp} [INFO] MISE EN VENTE PAYS {country} POUR {price}$"

relation_change:
pattern: "{timestamp} ({country_a}) set relation {relation} to {country_b}"

# ===========================
# Wars
# ===========================

war_add:
pattern: "{timestamp} [INFO] [NationsUtils] Add war event {war_reason} between {country_a} and {country_b}"

war_start:
pattern: "{timestamp} [INFO] [NationsGUI] START WAR between {country_a} and {country_b} for reason {reason}"

war_surrend:
pattern: "{timestamp} [INFO] [NationsGUI] {country} SURREND WAR AGAINST {country} APPLY REWARDS : {reward}#{amount}"

war_status_change:
pattern: "{timestamp} [INFO] [NationsUtils] Change status of war request between {country_a} and {country_b} by {player} to {status}"

war_inactivity:
pattern: "{timestamp} [INFO] [NationsUtils] Change war inactivity for {country} from {latest_value} to {new_value}({country_a} vs {country_b})"

war_won:
pattern: "{timestamp} [INFO] [NationsUtils] War won by {country_a} against {country_b}"

war_cancel:
pattern: "{timestamp} Cancel war between {country_a} and {country_b} because the player {player} leaved the country {leaved_country}"

country_refuse_colonisation:
pattern: "{timestamp} Le pays {country} refuse d'être colonisé par {empire}, mise en ennemie automatique"
war_event:
pattern: "{timestamp} [INFO] [NationsUtils] Add war event {event} between {country_a} and {country_b}"

war_decrease_powerloss:
pattern: "{timestamp} [INFO] [Factions] Decrease powerLoss from war against {country} from {latest_value} to {new_value}"

war_end_decrease_powerloss:
pattern: "{timestamp} [INFO] [Factions] Decrease powerLoss from won in war against {country} from 1 to -9 (no powerLoss left)"

# ===========================
# Factions
# ===========================

chunk_access:
pattern: "{timestamp} [INFO] [Factions] Player {player} set access to player {player} in chunk {x}, {z} to true"
Expand All @@ -84,10 +117,11 @@ faction_demote:

faction_perms:
pattern: "{timestamp} [INFO] [FACTION] {player} changed faction permission {permission} to [{ALLY}, {LEADER}, {MEMBER}, {NEUTRAL}, {OFFICER}, {RECRUIT}]"

# ===========================
# Transactions bancaires
# Bank transactions
# ===========================

bank_deposit:
pattern: "{timestamp} [NationsGUI] TRANSACTION BANK - DEPOSIT {player} {amount}$ in {country}"

Expand All @@ -97,6 +131,7 @@ bank_take:
# ===========================
# Taxes / salaires
# ===========================

player_tax:
pattern: "{timestamp} [Factions] {player} vient d'être prélevé d'une taxe de {amount}"

Expand All @@ -109,6 +144,7 @@ empire_tax:
# ===========================
# PvP / Combat / Kills
# ===========================

kill_wilderness:
pattern: "{timestamp} [Factions] KILL EN WILDERNESS DE {killer} ({killer_country}) sur {victim} ({victim_country})"

Expand All @@ -124,6 +160,7 @@ player_death:
# ===========================
# Intrusions / Divers
# ===========================

kick_chat:
pattern: "{timestamp} {player} tried to send an empty message"

Expand All @@ -133,6 +170,7 @@ intrusion:
# ===========================
# Trade (échanges)
# ===========================

trade_give:
pattern: "{timestamp} [TRADE] {player} GIVE {itemid} x{qty} TO {target}"

Expand All @@ -151,6 +189,7 @@ trade_give_back_fail:
# ===========================
# Missiles
# ===========================

missile_launch_request:
pattern: "{timestamp} Call playerCanLauncherMissile for missile ({missile}) ({player}) ({x}) ({y}) ({z})"

Expand All @@ -163,6 +202,7 @@ missile_exploded:
# ===========================
# Banque — Ajout / retrait membres
# ===========================

bank_add_member:
pattern: "{timestamp} Ajout du joueur {player} dans la banque {country} par {by}"

Expand All @@ -172,6 +212,7 @@ bank_remove_member:
# ===========================
# Homes (set/delete)
# ===========================

home_set:
pattern: "{timestamp} Player {player} set new home {name} in {x}, {y}, {z}, {world}"

Expand All @@ -181,12 +222,14 @@ home_delete:
# ===========================
# Machines / Config
# ===========================

machine_edit:
pattern: "{timestamp} Modification machine de hasard en ({x}), ({y}), ({z}) par ({player}) : nouveau taux : ({rate})"

# ===========================
# Inventaires (Backpack / EnderChest)
# ===========================

backpack_transaction:
pattern: "{timestamp} BackPack Transaction - {player} - +{added}@-{removed}"

Expand All @@ -196,23 +239,113 @@ enderchest_transaction:
# ===========================
# Debug skill
# ===========================

player_skills:
pattern: "{timestamp} [Debug] Player {player} has skills : miner : {miner}, hunter : {hunter}, farmer : {farmer}, builder : {builder}, engineer : {engineer}, lumberjack : {lumberjack}"

# ===========================
# NationsJob
# ===========================

spawn_obscure_block:
pattern: "{timestamp} [INFO] [NationsJob] SPAWN OBSCURE BLOCK IN {x}, {y}, {z} BY PLAYER {player}"

spawn_millenial_wood:
pattern: "{timestamp} [INFO] [NationsJob] SPAWN MILLENIAL WOOD IN {x}, {y}, {z} BY PLAYER {player}"

# ===========================
# Guerres
# ChestShop
# ===========================
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern variable {direction} is ambiguous. Consider using a more descriptive name like {transaction_type} or clarifying in documentation what values this field represents (e.g., "to"/"from", "bought"/"sold", etc.).

Suggested change
# ===========================
# ===========================
# {direction}: direction of the transaction, e.g. "to"/"from" the target player or shop.

Copilot uses AI. Check for mistakes.

chestshop_transaction:
pattern: "{timestamp} [ChestShop] {player} {action} {qty} {item} for {price} {direction} {target} at [world] {x}, {y}, {z}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Capture ChestShop world name instead of literal

This pattern hard-codes at [world], so it only matches transactions that occur in a world literally named “world”. ChestShop logs include the world name in brackets (e.g., at [world_nether] …), and those entries will not parse with this pattern, causing missed transactions whenever servers use non-default world names. Consider capturing the world token (e.g., [{world}]) so multi-world logs still match.

Useful? React with 👍 / 👎.


chestshop_transaction_log:
pattern: "{timestamp} LOG TRANSACTION CHEST {details}"

# ===========================
# Adminshop / Catalog
# ===========================
war_reason_add:
pattern: "{timestamp} [INFO] [NationsUtils] Add war event {reason} between {country} and {country}"

catalog_transaction:
pattern: "{timestamp} [INFO] [NationsGUI] [Catalog] Player {player} bought the item {id} {quantity} for {price}$ (including delivery {tax}$) to player Bank"

# ===========================
# Warzone
# ===========================

warzone_add_skill:
pattern: "{timestamp} [WarZone] Add {details}"

warzone_add_power:
pattern: "{timestamp} [WarZone] Add {details}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 formes différentes :
{timestamp} [INFO] [WarZone] Add 0.25 skill multiplier to {country}
{timestamp} [INFO] [WarZone] Add 1.0 power to {country}
{timestamp} [INFO] [WarZone] Le pays {country} vient de recevoir un powerboost de 1.0 de la warzone.


warzone_add_powerboost:
pattern: "{timestamp} [INFO] [WarZone] Le pays {country} vient de recevoir un powerboost de {amount} de la warzone."

war_surrend:
pattern: "{timestamp} [INFO] [NationsGUI] {country} SURREND WAR AGAINST {country} APPLY REWARDS : {reward}#{amount}"
# ===========================
# Economie / Pays
# ===========================

country_buy:
pattern: "{timestamp} [INFO] ACHAT PAYS {country} PAR {pseudo} POUR {price}$"

country_action_buy:
pattern: "{timetamp} [INFO] [NationsGUI] ACHAT ACTION : {country_a}({player}) buy action of {country_b} for {price}$"

country_found:
pattern: "{timestamp} [INFO] ONU >> {country} vient de fonder le pays {country} !"

country_new_leader:
pattern: "{timestamp} [INFO] ONU >> {player} est le nouveau dirigeant du pays {country} !"


# ===========================
# Powerboost
# ===========================

powerboost_player:
pattern: "{timestamp} POWERBOOST DE {player} {details}"

powerboost_country:
pattern: "{timestamp} Powerboost to {country} {details}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Détails :
Je n'ai trouvé aucune logs concernant les powerboost joueur/pays hors warzone


powerboost_decrease:
pattern: "{timestamp} [INFO] [Factions] BAISSE POWERBOOST DE {country} DE {latest_value} A {new_value}"

# ===========================
# Meteor
# ===========================

meteor_spawn:
pattern: "{timestamp} [INFO] METEOR SPAWNED IN {planet} on player {player} at {x}, {y}, {z}"

# ===========================
# Access / Permissions
# ===========================

access_set:
pattern: "{timestamp} [INFO] [Factions] Player {player} set access to player {player} in chunk {x}, {z} to true"

access_remove:
pattern: "{timestamp} [INFO] [Factions] Player {player} remove access to player {player} in chunk {x}, {z} to false"

# ===========================
# Divers
# ===========================

duel_start:
pattern: "{timestamp} [INFO] START DUEL {player_a} vs {player_b} BET {amount}"

restricted_item_interaction:
pattern: "{timestamp} [INFO] [NationsUtils] Player {player} interacts with restricted item {id}"

missile_launch:
pattern: "{timestamp} [INFO] ({country}) vient de lancer un missile {missil} sur {target}"

# ===========================
# Player session
# ===========================

player_left:
pattern: '{timestamp} [INFO] §7[*banner id="minus"]§7 {player} ({number}/{maxplayer})'