Archived
0

This is my First commit and Ivan didn't help me!

This commit is contained in:
Prot-CN
2019-01-31 02:25:12 +06:00
parent d07107e477
commit 3fceaff48d
2 changed files with 3 additions and 6 deletions

View File

@@ -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");

View File

@@ -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;