瀏覽代碼

Don't block yourself.

tags/v0.4.4^2
Peyrille Benjamin 4 年之前
父節點
當前提交
2059e2ce09
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      src/server/components/extensions/socialCommands.js

+ 5
- 0
src/server/components/extensions/socialCommands.js 查看文件

@@ -258,6 +258,11 @@ module.exports = {
return;
}

if (target === this.obj.name) {
this.sendMessage('You cannot block yourself', 'color-redA');
return;
}

this.blockedPlayers.push(target);
this.sendMessage(`Successfully blocked ${target}`, 'color-yellowB');



Loading…
取消
儲存