Skip to content

Commit

Permalink
check to make sure SQL is enabled before trying convert
Browse files Browse the repository at this point in the history
  • Loading branch information
bootswithdefer committed Dec 18, 2010
1 parent bd194f7 commit 9157288
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Stats/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,12 @@ public boolean onCommand(Player player, String[] split)
{
if (split.length == 2 && split[1].equalsIgnoreCase("convert"))
{
if (!useSQL)
{
player.sendMessage(Colors.Rose + "You are not running with SQL enabled.");
return true;
}

File dir = new File(directory);
FilenameFilter filter = new FilenameFilter() {
public boolean accept(File dir, String name) {
Expand Down

0 comments on commit 9157288

Please sign in to comment.