Minor cleanup

This commit is contained in:
bm01 2013-01-27 00:02:01 +01:00
parent bff7919c21
commit 2356fda67a
2 changed files with 7 additions and 3 deletions

View File

@ -71,10 +71,14 @@ public final class Database {
mcMMO.p.getLogger().info("Connection to MySQL was a success!"); mcMMO.p.getLogger().info("Connection to MySQL was a success!");
} catch (SQLException ex) { } catch (SQLException ex) {
connection = null; connection = null;
if (reconnectAttempt == 0 || reconnectAttempt >= 11) mcMMO.p.getLogger().info("Connection to MySQL failed!"); if (reconnectAttempt == 0 || reconnectAttempt >= 11) {
mcMMO.p.getLogger().info("Connection to MySQL failed!");
}
} catch (ClassNotFoundException ex) { } catch (ClassNotFoundException ex) {
connection = null; connection = null;
if (reconnectAttempt == 0 || reconnectAttempt >= 11) mcMMO.p.getLogger().info("MySQL database driver not found!"); if (reconnectAttempt == 0 || reconnectAttempt >= 11) {
mcMMO.p.getLogger().info("MySQL database driver not found!");
}
} }
} }

View File

@ -48,7 +48,7 @@ import com.gmail.nossr50.util.Users;
public final class Combat { public final class Combat {
private static Config configInstance = Config.getInstance(); private static Config configInstance = Config.getInstance();
private Combat() {}; private Combat() {}
/** /**
* Apply combat modifiers and process and XP gain. * Apply combat modifiers and process and XP gain.