Skip to content
This repository was archived by the owner on Apr 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public void onDisable() {
commands.clear();
Gui.resetInstance();
getServer().getMessenger().unregisterOutgoingPluginChannel(this);
getServer().getMessenger().unregisterIncomingPluginChannel(this);
getLogger().info("メタバースプラグインが無効になりました。");
sqlUtil.disconnect();
}
Expand Down Expand Up @@ -134,6 +133,7 @@ public void setListener() {
PM.registerEvents(new BankListener(), this);
PM.registerEvents(Gui.getInstance(), this);
PM.registerEvents(new PublicListener(), this);
this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
DiscordSRV.api.subscribe(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ public static Integer getkickcount(UUID uuid){
@Getter private final static String pass = MetaversePlugin.getConfiguration().getString("mysql.pass");
@Getter private final static int port = MetaversePlugin.getConfiguration().getInt("mysql.port");
@Getter private final static String url = MetaversePlugin.getConfiguration().getString("mysql.url");
private final static String url_connection = "jdbc:mysql://"+url+":"+port+"/"+db_name+"?autoReconnect=true";
private final static String url_connection = "jdbc:mysql://"+url+":"+port+"/"+db_name+"?autoReconnect=true&maxReconnects=10";
private static Connection conn;
}