Jump to content

Chat commands


Cupcake
 Share

Recommended Posts

he is asking for slash command /pass to set password for channel as example, not gm command .password

its been long i dont work with mangos source and ive never have seen someone deal with with slash commands per acc access, so not sure and dont know if its possible, but my best guess would be channelhandler.cpp or chathandler.cpp, whatever file is named, good luck restricting client expected behavior

Link to comment
Share on other sites

Then change

WorldSession::HandleChannelPasswordOpcode

WorldSession::HandleChannelSetOwnerOpcode

etc...

add this for example to each to prevent handling slash commands... (or send proper message to player that he has no priviledges to do it)

if (GetSecurity < SEC_MODERATOR)

return;

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use