Jump to content

Recommended Posts

Posted

Hi there, I was making a command to show the player history names, everything is okay with the command. The command is: "/checkname"(aliases: /name) but when player say on chat "checkname"(or the command aliases) the command run. Have a method to cancel it and just when player type: "/checkname" the command run?

Thanks.

Posted (edited)

Here the register command code: 

ClientCommandHandler.instance.registerCommand(new CheckNameHistoryCMD());

 

And I just remove the @Override above the compareTo or I need return a another int?

Edited by Snaking
Posted
3 minutes ago, diesieben07 said:

Client commands are broken like this at the moment unfortunately. There was a pull request for it (#3360), but it seems it was abandoned. I will make a new one.

But I my mod is 1.8.9 version. Maybe the mod version I use is abandoned too?

Posted

Cause if yes, I wanted to know if you had the same issues than me. Cause I really don't know what cause it, does not make sense, Cause it's a command, and it wotk without "/"

Posted
2 minutes ago, diesieben07 said:

Like I already said, it is a known bug with client commands. There was a PR to fix it (I linked it above). I now made a new one (#3847).

Okay, Maybe I try use other versions, Or I just stay with this, cause is just if sender send the message on chat. Thank you.

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.