We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b2482 commit a7c44f1Copy full SHA for a7c44f1
src/main/java/com/cheatbreaker/api/commands/CBMessage.java
@@ -30,7 +30,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
30
return false;
31
} else {
32
for (Player player : Bukkit.getOnlinePlayers()) {
33
- CheatBreakerAPI.getInstance().sendNotification(player, new CBNotification(message, Long.parseInt(args[0]), TimeUnit.SECONDS));
+ CheatBreakerAPI.getInstance().sendNotification(player, new CBNotification(message, (long)Integer.parseInt(args[0]), TimeUnit.SECONDS));
34
}
35
36
sender.sendMessage(ChatColor.GREEN + "Successfully sent a CheatBreaker message.");
0 commit comments