Skip to content

Commit

Permalink
Update CBMessage.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ShonP40 committed Sep 20, 2021
1 parent b0b2482 commit a7c44f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cheatbreaker/api/commands/CBMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
return false;
} else {
for (Player player : Bukkit.getOnlinePlayers()) {
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));
}

sender.sendMessage(ChatColor.GREEN + "Successfully sent a CheatBreaker message.");
Expand Down

0 comments on commit a7c44f1

Please sign in to comment.