Posted April 15, 20178 yr 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.
April 15, 20178 yr Author 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 April 15, 20178 yr by Snaking
April 15, 20178 yr Author 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?
April 15, 20178 yr Author 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 "/"
April 15, 20178 yr Author 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.