Good morning, I was installing your plugin on one of my servers using MySQL, and I encountered an error. Apparently, in MySQL, the word "Rank" is a reserved keyword, which causes conflicts and floods the error console. Initially, I didn't understand the error messages. I resolved it by changing "Rank" to "RankPlayer" in the table creation and update queries, a total of 5 times in the code, and it was resolved. Perhaps you could consider making this change in future updates. I am using MySQL Server 8.0.33, but the word "Rank" has been reserved for many years.
MySql handle raised an exception (MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank='0', RankName='Newbie', RankSig='', RankImg='https://i.imgur.com/i6M4ZmV.pn' at line 1)
at MySql.Data.MySqlClient.MySqlCommand.EndExecuteNonQuery (System.IAsyncResult asyncResult) [0x00022] in <8d7380b3d3cf4bd8be324c584f371b44>:0
at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand.EndExecuteNonQuery(System.IAsyncResult)Change "Rank" for "RankPlayer" or "PlayerRank" in:
private void CreatSQLTable()
privatevoidUpdatePlayersDataSQL()
privatevoidUpdatePlayerDataSQL(BasePlayer player)
if (!entry.ContainsKey("Rank")) { rank = true; }
sqlLibrary.Insert(Sql.Builder.Append("INSERT XPerience (steamid, displayname, Rank, RankName, RankSig, ..........
update character set utf8 > utf8mb4 in:
private void CreatSQLTable()
I still haven't found a solution for using the 'reload' plugin command (o.reload *) in two plugins:
The error occurs during the loadout process:
MySql handle raised an exception in 'XPerience v1.7.6' plugin (NullReferenceException: Object reference not set to an instance of an object)
at MySql.Data.MySqlClient.MySqlCommand.EndExecuteNonQuery (System.IAsyncResult asyncResult) [0x00022] in <8d7380b3d3cf4bd8be324c584f371b44>:0 0b/s in, 0b/s out
at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand.EndExecuteNonQuery(System.IAsyncResult)
The error occurs during the loading process:
MySql handle raised an exception in 'KillRecords v1.3.6' plugin (NullReferenceException: Object reference not set to an instance of an object)
at MySql.Data.MySqlClient.MySqlCommand.EndExecuteNonQuery (System.IAsyncResult asyncResult) [0x00022] in <8d7380b3d3cf4bd8be324c584f371b44>:0 0b/s in, 0b/s out
at (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand.EndExecuteNonQuery(System.IAsyncResult)