mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
- Update Bukkit api, remove unneeded deprecation warning.
This commit is contained in:
1 parent
bc2e22caf6
commit
790b6f2328
2 files changed
+1
-2
No files matched your search
@@ -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]));
|
||||||
|
|||||||
Reference in new issue
Block a user