bing2008 / VMangos-eluna

This project is a VMangos version with Eluna code merged.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› [Bug] PLAYER_EVENT_ON_COMMAND looks doesn't work anymore

oowow-core opened this issue Β· comments

πŸ› Bug report

--PLAYER_EVENT_ON_COMMAND = 42 -- (event, player, command) - Can return false
RegisterPlayerEvent(42, CMD.Input)

all command doesn't work now

Expected behavior

Steps to reproduce

  1. ...
  2. Profit

Version & Environment

Client Version:

Commit Hash:

OS Client:
OS Server:

Crashlog

  • None

Fix the issue: dcf59b6

Use this code to test it.

local function Player_Command(event,player,command)
	player:SendBroadcastMessage("Player_Command:player:"..player:GetName().." input: "..command)
end
local isCancel = RegisterPlayerEvent( PLAYER_EVENT_ON_COMMAND, Player_Command )

works, thanks!