Get it to build again and update to java 1.8 in the pom.xml
This commit is contained in:
@ -20,6 +20,7 @@ public class ScoreBoardManager {
|
||||
private HashMap<UUID, Scoreboard> boards;
|
||||
private OfflinePlayer time;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected ScoreBoardManager(JailMain plugin) {
|
||||
this.pl = plugin;
|
||||
this.man = plugin.getServer().getScoreboardManager();
|
||||
@ -42,6 +43,7 @@ public class ScoreBoardManager {
|
||||
* @param player of whom to add the scoreboard to.
|
||||
* @param pris data for the provided prisoner
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public void addScoreBoard(Player player, Prisoner pris) {
|
||||
if(!boards.containsKey(player.getUniqueId())) {
|
||||
boards.put(player.getUniqueId(), man.getNewScoreboard());
|
||||
@ -98,6 +100,7 @@ public class ScoreBoardManager {
|
||||
* @param player of whom to update the scoreboard for.
|
||||
* @param pris data for the player
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
private void updatePrisonersBoard(Player player, Prisoner pris) {
|
||||
boards.get(player.getUniqueId()).getObjective("test").getScore(time).setScore(pris.getRemainingTimeInMinutesInt());
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
usage = "/handcuff [player]"
|
||||
)
|
||||
public class HandCuffCommand implements Command {
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
Player player = jm.getPlugin().getServer().getPlayer(args[0]);
|
||||
|
||||
|
@ -22,6 +22,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
usage = "/unhandcuff [player]"
|
||||
)
|
||||
public class UnHandCuffCommand implements Command {
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
Player player = jm.getPlugin().getServer().getPlayerExact(args[0]);
|
||||
|
||||
|
@ -52,6 +52,7 @@ public class JailCommand implements Command {
|
||||
* - If the cell is not empty then checks to be sure that cell exists
|
||||
* - If the prisoner is online or not.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
if(jm.getJails().isEmpty()) {
|
||||
sender.sendMessage(Lang.NOJAILS.get());
|
||||
|
@ -19,6 +19,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
usage = "/jail record [name] (display)"
|
||||
)
|
||||
public class JailRecordCommand implements Command {
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
if(args.length == 2) {
|
||||
// /jail record <username>
|
||||
|
@ -23,6 +23,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
usage = "/jail telein [jail] (name)"
|
||||
)
|
||||
public class JailTeleInCommand implements Command {
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
Jail j = jm.getJail(args[1]);
|
||||
|
||||
|
@ -23,6 +23,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
usage = "/jail teleout [jail] (name)"
|
||||
)
|
||||
public class JailTeleOutCommand implements Command {
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
Jail j = jm.getJail(args[1]);
|
||||
|
||||
|
@ -27,6 +27,7 @@ import com.graywolf336.jail.enums.Settings;
|
||||
public class JailVoteCommand implements Command {
|
||||
private static final String[] options = new String[] { "yes", "no" };
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
if(jm.getPlugin().getConfig().getBoolean(Settings.JAILVOTEENABLED.getPath()) && jm.getPlugin().getJailVoteManager() != null && !jm.getJails().isEmpty()) {
|
||||
Player p = (Player) sender;
|
||||
|
@ -103,6 +103,7 @@ public class OldInputOutput {
|
||||
ps.close();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void LoadPrisoners() throws SQLException {
|
||||
if(pl.getJailManager().getJails().size() != 0) {
|
||||
PreparedStatement ps = getConnection().prepareStatement("SELECT * FROM jail_prisoners");
|
||||
|
Reference in New Issue
Block a user