mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-13 17:40:05 +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 @@ import javax.annotation.Nonnull;
|
||||
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 class CommandCopy extends CommandBase implements IClientCommand
|
||||
@Override
|
||||
public String getUsage( @Nonnull ICommandSender sender )
|
||||
{
|
||||
return "computercraft_copy <text>";
|
||||
return "/" + NAME + " <text>";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user