Jump to content

Disable /msg


Geramy92

Recommended Posts

Posted

Hallo,

is there a chance to disable /msg?

our script has an own /pm where user must pay some $$

but the users use /msg but they needn't do that

so i am asking: Can I Disable this command /msg?

Posted

onPlayerPrivateMessage event is probably what you're looking for. When it triggers, cancel it using cancelEvent.

Alternatively, you can modify your ACL to not allow people to use the /msg command.

EDIT: Alter-alternatively you could of course make players pay when onPlayerPrivateMessage is triggered

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...