diff options
author | RoseGoldIsntGay <yoavkau@gmail.com> | 2021-11-07 18:34:22 +0200 |
---|---|---|
committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2021-11-07 18:34:22 +0200 |
commit | 6f69d1e1aff688bf2f5ca34754640eed5102b045 (patch) | |
tree | e931c56ad48dedb4cec6ffceb78ef0b320c1c192 /src/main/java/rosegoldaddons/OpenSettings.java | |
download | RGA-6f69d1e1aff688bf2f5ca34754640eed5102b045.tar.gz RGA-6f69d1e1aff688bf2f5ca34754640eed5102b045.tar.bz2 RGA-6f69d1e1aff688bf2f5ca34754640eed5102b045.zip |
committed
or something
Diffstat (limited to 'src/main/java/rosegoldaddons/OpenSettings.java')
-rw-r--r-- | src/main/java/rosegoldaddons/OpenSettings.java | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/main/java/rosegoldaddons/OpenSettings.java b/src/main/java/rosegoldaddons/OpenSettings.java new file mode 100644 index 0000000..0e79b74 --- /dev/null +++ b/src/main/java/rosegoldaddons/OpenSettings.java @@ -0,0 +1,57 @@ +package rosegoldaddons; + +import net.minecraft.command.CommandBase; +import net.minecraft.command.ICommand; +import net.minecraft.command.ICommandSender; +import net.minecraft.util.BlockPos; +import org.jetbrains.annotations.NotNull; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class OpenSettings implements ICommand { + @Override + public String getCommandName() { + return "rosegoldaddons"; + } + + @Override + public String getCommandUsage(ICommandSender sender) { + return "/" + getCommandName(); + } + + @Override + public List<String> getCommandAliases() { + return new ArrayList<>(Arrays.asList("rosegoldaddons", "rga")); + } + + @Override + public void processCommand(ICommandSender sender, String[] args) { + /*EntityPlayerSP player = (EntityPlayerSP) sender; + player.addChatMessage(new ChatComponentText("hi "+player.getName()+"!"));*/ + Main.display = Main.configFile.gui(); + return; + } + + @Override + public boolean canCommandSenderUseCommand(ICommandSender sender) { + return true; + } + + @Override + public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { + return new ArrayList<>(); + } + + @Override + public boolean isUsernameIndex(String[] args, int index) { + return false; + } + + @Override + public int compareTo(@NotNull ICommand o) { + return 0; + } +} + |