Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mato authored and Mato committed Dec 18, 2021
1 parent d1dd2cb commit 2fbc6dc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/de/xite/scoreboard/commands/ScoreboardCommand.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package de.xite.scoreboard.commands;

import java.util.Map.Entry;

import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
Expand Down
1 change: 0 additions & 1 deletion src/de/xite/scoreboard/modules/board/ScoreboardPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.HashMap;
import java.util.Map.Entry;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.DisplaySlot;
import org.bukkit.scoreboard.Objective;
Expand Down
1 change: 1 addition & 0 deletions src/de/xite/scoreboard/versions/version_1_10.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class version_1_10 {
public static Integer getPing(Player p) {
return ((CraftPlayer) p).getHandle().ping;
}
@SuppressWarnings("deprecation")
public static void sendTab(Player player, String head, String foot){
IChatBaseComponent header = new ChatMessage(head);
IChatBaseComponent footer = new ChatMessage(foot);
Expand Down
1 change: 1 addition & 0 deletions src/de/xite/scoreboard/versions/version_1_11.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class version_1_11 {
public static Integer getPing(Player p) {
return ((CraftPlayer) p).getHandle().ping;
}
@SuppressWarnings("deprecation")
public static void sendTab(Player player, String head, String foot){
IChatBaseComponent header = new ChatMessage(head);
IChatBaseComponent footer = new ChatMessage(foot);
Expand Down
1 change: 1 addition & 0 deletions src/de/xite/scoreboard/versions/version_1_12.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class version_1_12 {
public static Integer getPing(Player p) {
return ((CraftPlayer) p).getHandle().ping;
}
@SuppressWarnings("deprecation")
public static void sendTab(Player p, String header, String footer) {
IChatBaseComponent tabheader = ChatSerializer.a("{\"text\": \"" + header + "\"}");
IChatBaseComponent tabfooter = ChatSerializer.a("{\"text\": \"" + footer + "\"}");
Expand Down

0 comments on commit 2fbc6dc

Please sign in to comment.