This is my First commit and Ivan didn't help me!
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
package ru.prisonlife.PrisonAPI.connect;
|
||||
|
||||
import com.mysql.fabric.jdbc.FabricMySQLDriver;
|
||||
|
||||
import java.sql.*;
|
||||
|
||||
public class DataBasePrison4Life {
|
||||
protected Driver driver;
|
||||
protected Connection connection;
|
||||
{ try {
|
||||
driver = new FabricMySQLDriver();
|
||||
DriverManager.registerDriver(driver);
|
||||
connection = DriverManager.getConnection(
|
||||
"jdbc:mysql://localhost:3306/prison4life",
|
||||
"root", "root");
|
||||
|
||||
@@ -3,7 +3,9 @@ package ru.prisonlife.PrisonAPI.template;
|
||||
import org.bukkit.entity.Player;
|
||||
import ru.prisonlife.PrisonAPI.connect.DataBasePrison4Life;
|
||||
|
||||
import java.sql.*;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class Prisoner extends DataBasePrison4Life {
|
||||
private Player me;
|
||||
|
||||
Reference in New Issue
Block a user