Skip to content

Commit

Permalink
fix: idea warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingrim4 committed Nov 1, 2024
1 parent f81b910 commit 3313cfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.ComponentBuilder;
import net.md_5.bungee.api.chat.HoverEvent;
import net.md_5.bungee.api.chat.hover.content.Text;

public class UpdateSystem {

Expand Down Expand Up @@ -128,7 +129,7 @@ public void checkForUpdates(Player player) {
BaseComponent[] components = new ComponentBuilder("[§bOrebfuscator§f]§7 A new release is available ")
.append("§f§l[CLICK HERE]")
.event(new ClickEvent(ClickEvent.Action.OPEN_URL, this.getHtmlUrl()))
.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§7Click here to see the latest release").create())).create();
.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder("§7Click here to see the latest release").create()))).create();
OrebfuscatorCompatibility.runForPlayer(player, () -> {
player.spigot().sendMessage(components);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.comphenix.protocol.utility.MinecraftReflection;

import net.imprex.orebfuscator.util.BlockPos;
import net.imprex.orebfuscator.util.ServerVersion;

public class WrappedClientboundLevelChunkPacketData {

Expand Down

0 comments on commit 3313cfa

Please sign in to comment.