- Update Bukkit api, remove unneeded deprecation warning.

This commit is contained in:
Llm Dl committed 2020-03-18 09:40:09 -05:00
1 parent bc2e22caf6
commit 790b6f2328
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId> <artifactId>bukkit</artifactId>
<version>1.14.4-R0.1-SNAPSHOT</version> <version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -203,7 +203,6 @@ public class ChannelCommand extends BaseCommand implements CommandExecutor {
} }
// Split[0] = Channelname // Split[0] = Channelname
// Split[1} = Player to be muted // Split[1} = Player to be muted
@SuppressWarnings("deprecation")
Player muteePlayer = Bukkit.getPlayer(split[1]); Player muteePlayer = Bukkit.getPlayer(split[1]);
if (muteePlayer == null) { if (muteePlayer == null) {
TownyMessaging.sendErrorMsg(player, String.format(TownySettings.getLangString("tc_err_no_online_players_with_name"), split[1])); TownyMessaging.sendErrorMsg(player, String.format(TownySettings.getLangString("tc_err_no_online_players_with_name"), split[1]));