clear command fix
This commit is contained in:
parent
f41eeb0e08
commit
82836c2ef3
@ -61,7 +61,7 @@ module.exports = (io, socket) => {
|
||||
case "/clear": {
|
||||
const [_, targetName] = args;
|
||||
const targetPlayer = await Player.findOne({
|
||||
where: { name: targetName },
|
||||
where: { username: targetName },
|
||||
});
|
||||
if (!targetPlayer) throw new Error("Player not found.");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user