Skip to content

Commit

Permalink
change Outdated warning to not reference Minehut
Browse files Browse the repository at this point in the history
  • Loading branch information
Setloth committed Sep 30, 2022
1 parent be1b30d commit cf02892
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/java/page/echology/lifesteal/Lifesteal.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static ItemStack item() {
}

public static void warnOutdated(CommandSender sender) {
sender.spigot().sendMessage(Utils.colored("\n\n&6&l[!] &r&c&oLifesteal is outdated! Please update it via the Minehut dashboard. If you do not update, it may stop working, and you will not receive the latest improvements. \n&7Current installed version: &e&l"+Lifesteal.VERSION +"&r&7\nLatest released version: &e&l"+Lifesteal.CURRENT+"\n\n"));
sender.spigot().sendMessage(Utils.colored("\n\n&6&l[!] &r&c&oLifesteal is outdated! I heavily suggest you update to receive the latest fixes and improvements! \n&7Download link (GitHub): &bhttps://github.com/Sploric/Lifesteal/releases/latest \n&7Current installed version: &e&l"+Lifesteal.VERSION +"&r&7\nLatest released version: &e&l"+Lifesteal.CURRENT+"\n\n"));
}
public static void warnOutdated() {
warnOutdated(Bukkit.getConsoleSender());
Expand Down
13 changes: 5 additions & 8 deletions src/main/java/page/echology/lifesteal/command/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

import dev.triumphteam.cmd.bukkit.annotation.Permission;
import dev.triumphteam.cmd.core.BaseCommand;
import dev.triumphteam.cmd.core.annotation.*;
import dev.triumphteam.cmd.core.annotation.Command;
import dev.triumphteam.cmd.core.annotation.CommandFlags;
import dev.triumphteam.cmd.core.annotation.Flag;
import dev.triumphteam.cmd.core.annotation.SubCommand;
import dev.triumphteam.cmd.core.flag.Flags;
import dev.triumphteam.gui.components.GuiType;
import dev.triumphteam.gui.guis.Gui;
import net.kyori.adventure.text.Component;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.HoverEvent;
import net.md_5.bungee.api.chat.hover.content.Content;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.attribute.Attribute;
Expand All @@ -18,14 +17,12 @@
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import page.echology.lifesteal.Lifesteal;
import page.echology.lifesteal.config.Config;
import page.echology.lifesteal.utility.Utils;

import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Logger;

@Command("lifesteal")
public class Main extends BaseCommand {
Expand Down Expand Up @@ -158,7 +155,7 @@ public void config(CommandSender sender) {



Gui gui = Gui.gui(GuiType.WORKBENCH).title(Component.text("Configure Crafting")).create();
Gui gui = Gui.gui(GuiType.WORKBENCH).create();
gui.enableAllInteractions();

gui.open(player);
Expand Down

0 comments on commit cf02892

Please sign in to comment.