- tous les appels à printStackTrace() sont supprimés et remplacés par Log.severe() - Ajout de de l'historiqe de ping et de login kick - AbstractConfig et AbstractConfigManager maintenant dans PandacubeUtil pour être utilisé par tous les plugins (évite code en double) - Connexion MySQL supporte UTF-8 (mb4) - Correction de Quelques erreurs lorsqu'une table SQL n'est pas initialisée avant son utilisation - Correction de bugs lors de le gestion des clé étrangères dans l'ORM.
31 lines
916 B
Java
31 lines
916 B
Java
package fr.pandacube.java.util.db;
|
|
|
|
import fr.pandacube.java.util.db.sql_tools.SQLElement;
|
|
import fr.pandacube.java.util.db.sql_tools.SQLField;
|
|
import fr.pandacube.java.util.db.sql_tools.SQLType;
|
|
|
|
public class SQLPingHistory extends SQLElement<SQLPingHistory> {
|
|
|
|
public SQLPingHistory() {
|
|
super();
|
|
}
|
|
|
|
public SQLPingHistory(int id) {
|
|
super(id);
|
|
}
|
|
|
|
@Override
|
|
protected String tableName() {
|
|
return "pandacube_ping_history";
|
|
}
|
|
|
|
|
|
|
|
public static final SQLField<SQLPingHistory, Long> time = new SQLField<>("time", SQLType.BIGINT, false);
|
|
public static final SQLField<SQLPingHistory, String> ip = new SQLField<>("ip", SQLType.VARCHAR(128), true);
|
|
public static final SQLField<SQLPingHistory, Integer> minecraftVersion = new SQLField<>("minecraftVersion", SQLType.INT, false, 0);
|
|
public static final SQLField<SQLPingHistory, String> hostName = new SQLField<>("hostName", SQLType.VARCHAR(128), true);
|
|
|
|
|
|
}
|