diff --git a/gradle.properties b/gradle.properties index 4a0b4a7..834dcd1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,6 +10,6 @@ loader_version=0.14.19-babric.3-bta halplibe_version=3.1.4 # Mod -mod_version=1.2.6 +mod_version=1.2.7 mod_group=net.pedroricardo mod_name=commander diff --git a/output/production/commander-bta.main/fabric.mod.json b/output/production/commander-bta.main/fabric.mod.json index 6fd5462..73825f5 100644 --- a/output/production/commander-bta.main/fabric.mod.json +++ b/output/production/commander-bta.main/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "commander", - "version": "1.2.3", + "version": "1.2.6", "name": "Commander", "description": "This mod overhauls the command system.", @@ -9,8 +9,8 @@ "Pedro Ricardo" ], "contact": { - "homepage": "", - "sources": "" + "homepage": "https://pedroricardo.net", + "sources": "https://github.com/Pedro270707/commander-bta" }, "license": "CC0-1.0", diff --git a/output/production/commander-bta.main/net/pedroricardo/commander/content/CommanderCommandManager.class b/output/production/commander-bta.main/net/pedroricardo/commander/content/CommanderCommandManager.class index 9a50a9a..020aaf4 100644 Binary files a/output/production/commander-bta.main/net/pedroricardo/commander/content/CommanderCommandManager.class and b/output/production/commander-bta.main/net/pedroricardo/commander/content/CommanderCommandManager.class differ diff --git a/output/production/commander-bta.main/net/pedroricardo/commander/gui/GuiChatSuggestions.class b/output/production/commander-bta.main/net/pedroricardo/commander/gui/GuiChatSuggestions.class index b0c357b..c0ad156 100644 Binary files a/output/production/commander-bta.main/net/pedroricardo/commander/gui/GuiChatSuggestions.class and b/output/production/commander-bta.main/net/pedroricardo/commander/gui/GuiChatSuggestions.class differ diff --git a/output/production/commander-bta.main/net/pedroricardo/commander/mixin/GuiChatMixin.class b/output/production/commander-bta.main/net/pedroricardo/commander/mixin/GuiChatMixin.class index dc6b165..0235b96 100644 Binary files a/output/production/commander-bta.main/net/pedroricardo/commander/mixin/GuiChatMixin.class and b/output/production/commander-bta.main/net/pedroricardo/commander/mixin/GuiChatMixin.class differ diff --git a/src/main/java/net/pedroricardo/commander/content/CommanderCommandManager.java b/src/main/java/net/pedroricardo/commander/content/CommanderCommandManager.java index 74b0698..b7607e7 100644 --- a/src/main/java/net/pedroricardo/commander/content/CommanderCommandManager.java +++ b/src/main/java/net/pedroricardo/commander/content/CommanderCommandManager.java @@ -75,8 +75,8 @@ public void init() { this.registerLegacyCommands(); } - public void execute(String s, CommanderCommandSource commandSource) throws CommandSyntaxException { - this.DISPATCHER.execute(s, commandSource); + public int execute(String s, CommanderCommandSource commandSource) throws CommandSyntaxException { + return this.DISPATCHER.execute(s, commandSource); } public CommandDispatcher getDispatcher() { diff --git a/src/main/java/net/pedroricardo/commander/content/CommanderConsoleCommandSource.java b/src/main/java/net/pedroricardo/commander/content/CommanderConsoleCommandSource.java index 6b68c43..d523328 100644 --- a/src/main/java/net/pedroricardo/commander/content/CommanderConsoleCommandSource.java +++ b/src/main/java/net/pedroricardo/commander/content/CommanderConsoleCommandSource.java @@ -94,7 +94,7 @@ public World getWorld(int dimension) { @Override public void movePlayerToDimension(EntityPlayer player, int dimension) { if (player instanceof EntityPlayerMP) this.server.playerList.sendPlayerToOtherDimension((EntityPlayerMP) player, dimension); - throw new IllegalStateException("Player is not an instance of EntityPlayerMP"); + else throw new IllegalStateException("Player is not an instance of EntityPlayerMP"); } @Override diff --git a/src/main/java/net/pedroricardo/commander/content/CommanderServerCommandSource.java b/src/main/java/net/pedroricardo/commander/content/CommanderServerCommandSource.java index 6279e37..b72e822 100644 --- a/src/main/java/net/pedroricardo/commander/content/CommanderServerCommandSource.java +++ b/src/main/java/net/pedroricardo/commander/content/CommanderServerCommandSource.java @@ -96,7 +96,7 @@ public World getWorld(int dimension) { @Override public void movePlayerToDimension(EntityPlayer player, int dimension) { if (player instanceof EntityPlayerMP) this.server.playerList.sendPlayerToOtherDimension((EntityPlayerMP) player, dimension); - throw new IllegalStateException("Player is not an instance of EntityPlayerMP"); + else throw new IllegalStateException("Player is not an instance of EntityPlayerMP"); } @Override diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 73825f5..9ea260a 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "commander", - "version": "1.2.6", + "version": "1.2.7", "name": "Commander", "description": "This mod overhauls the command system.",