Skip to content

Commit

Permalink
Time to sleep. zzZZZZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Nov 8, 2023
1 parent 54509b0 commit 0d5f025
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
title: "DeathMessages v1.4.18-SNAPSHOT"
automatic_release_tag: "dev"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: "target/*.jar"
files: "target/DeathMessages-*.jar"
prerelease: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import dev.mrshawn.deathmessages.enums.DamageTypes;
import dev.mrshawn.deathmessages.enums.Permission;
import dev.mrshawn.deathmessages.utils.Assets;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.EntityType;

Expand All @@ -27,6 +29,9 @@ public void onCommand(CommandSender sender, String[] args) {
DeathMessages.getInstance().adventure().sender(sender).sendMessage(Assets.convertFromLegacy(Assets.formatMessage("Commands.DeathMessages.No-Permission")));
return;
}

DeathMessages.getInstance().adventure().sender(sender).sendMessage(Component.text("You are trying to use a deprecated command. Command edit will be removed since DeathMessages 1.4.19", NamedTextColor.RED));

if (args.length <= 3) {
DeathMessages.getInstance().adventure().sender(sender).sendMessage(Assets.convertFromLegacy(Assets.formatMessage("Commands.DeathMessages.Sub-Commands.Edit.Usage")));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
return arguments;
}

// Dreeam TODO - Command edit Will be removed in since DeathMessages 1.4.19
// Dreeam TODO - Command edit Will be removed since DeathMessages 1.4.19
if (args[0].equalsIgnoreCase("edit")) {
if (args.length == 3) {
// /dm edit <player> <mobName>
Expand Down

0 comments on commit 0d5f025

Please sign in to comment.