Jump to content

Recommended Posts

Posted

Hi, I'm trying to register a new command that all players can use (like help). I registered under the server starting event, overrided getRequiredPermissionLevel from command base to be 0 (just like help), but non-ops are still getting "you do not have permissions to use this command".

 

I looked into it; strangely, it seems the "regular available commands" (help, seed, tell, and me) are hard coded. Anyone know a way around it?

Posted

Oh my god just like last time (also a command question) and all the time... after spending over an hour searching fruitlessly, I immediately find the solution after posting my question on a forum. Anyways... for anyone looking for the solution, also override the

public boolean canCommandSenderUseCommand(ICommandSender par1ICommandSender)

method in CommandBase

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.