Skip to content

Commit

Permalink
Merge pull request #1397 from Dans-Plugins/minor-improvements
Browse files Browse the repository at this point in the history
Made some minor improvements to the code.
  • Loading branch information
dmccoystephenson authored May 7, 2022
2 parents 6b4d80b + a041ddd commit 91c5a2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.ArrayList;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public void execute(Player player, String[] args, String key) {
return;
}
int timeLimit = 120; // Time limit in seconds. TODO: Make config option.
if (args.length == 3) timeLimit = getIntSafe(args[2], 120);
if (args.length == 3) {
timeLimit = getIntSafe(args[2], 120);
}
inviteDuel(player, target, timeLimit);
player.sendMessage(translate("&b" + getText("AlertChallengeIssued", target.getName())));
} else if (safeEquals(args[0], getText("CmdDuelAccept"), "accept")) {
Expand Down

0 comments on commit 91c5a2c

Please sign in to comment.