Skip to content

Commit

Permalink
fixed party join message
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenga8533 committed Feb 23, 2024
1 parent 7a027a2 commit 016fee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"- TODO: Changed /kv to parse out bad rags",
"- Fixed Garden box rendering outside",
"- Fixed blacklist auto kick",
"- Fixed trophy counter on session view"
"- Fixed trophy counter on session view",
"- Fixed party join message"
]
2 changes: 1 addition & 1 deletion features/party/JoinMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { registerWhen } from "../../utils/variables";
registerWhen(register("chat", (player) => {
if (settings.partyMessageLeader && !getIsLeader()) return;
const regex = new RegExp("\\$\\{name\\}", 'g');
delay(() => ChatLib.command(`gc ${settings.partyMessage.replace(regex, getPlayerName(player))}`), 250);
delay(() => ChatLib.command(`pc ${settings.partyMessage.replace(regex, getPlayerName(player))}`), 250);
}).setCriteria("${player} joined the party."), () => settings.partyMessage !== "");

/**
Expand Down

0 comments on commit 016fee0

Please sign in to comment.