mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-25 22:53:22 +00:00
Try to hide CommandCopy from most completions.
"/computercraf" auto-completes to "/computercraft_copy" instead of "/computercraft", which is rather annoying, as the former is not meant to be used normally.
This commit is contained in:
parent
ce0685c31f
commit
7fd19c43e9
|
@ -24,7 +24,11 @@
|
|||
public class CommandCopy extends CommandBase implements IClientCommand
|
||||
{
|
||||
public static final CommandCopy INSTANCE = new CommandCopy();
|
||||
private static final String NAME = "computercraft_copy";
|
||||
|
||||
/**
|
||||
* We start with a "~" so we're less likely to show up on completions.
|
||||
*/
|
||||
private static final String NAME = "~computercraft_copy";
|
||||
|
||||
private CommandCopy()
|
||||
{
|
||||
|
@ -47,7 +51,7 @@ public String getName()
|
|||
@Override
|
||||
public String getUsage( @Nonnull ICommandSender sender )
|
||||
{
|
||||
return "computercraft_copy <text>";
|
||||
return "/" + NAME + " <text>";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user