Skip to content

Commit 6c2a077

Browse files
committed
Add more aliases to subcommands of /twitch, bump version
1 parent 1a55805 commit 6c2a077

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.daemon=false
55

66
modId = streamchatmod
77
modName = StreamChatMod
8-
version = 1.3.1
8+
version = 1.3.2
99
minecraftVersion = 1.8.9
1010
forgeVersion = 11.15.1.2318-1.8.9
1111
mappings = stable_22

src/main/java/me/mini_bomba/streamchatmod/commands/TwitchCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void processCommand(ICommandSender sender, String[] args) throws CommandE
7474
break;
7575
case "enable":
7676
case "on":
77+
case "start":
7778
if (!mod.config.isTwitchTokenSet()) throw new CommandException("Twitch token is not configured! Use /twitch token to configure it.");
7879
if (mod.twitch != null) throw new CommandException("Twitch chat is already enabled!");
7980
mod.config.twitchEnabled.set(true);
@@ -85,6 +86,7 @@ public void processCommand(ICommandSender sender, String[] args) throws CommandE
8586
break;
8687
case "disable":
8788
case "off":
89+
case "stop":
8890
if (mod.twitch == null && !mod.config.twitchEnabled.getBoolean()) throw new CommandException("Twitch chat is already disabled!");
8991
mod.config.twitchEnabled.set(false);
9092
mod.config.saveIfChanged();

0 commit comments

Comments
 (0)