Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daffyyyy committed Jan 9, 2024
1 parent d173816 commit f78cd88
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion CS2-SimpleAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
public override string ModuleName => "CS2-SimpleAdmin";
public override string ModuleDescription => "Simple admin plugin for Counter-Strike 2 :)";
public override string ModuleAuthor => "daffyy";
public override string ModuleVersion => "1.2.6a";
public override string ModuleVersion => "1.2.6b";

public CS2_SimpleAdminConfig Config { get; set; } = new();

Expand Down Expand Up @@ -123,6 +123,18 @@ PRIMARY KEY (`id`)
command = new MySqlCommand(sql, connection);
command.ExecuteNonQuery();

sql = @"CREATE TABLE `sa_servers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`address` varchar(64) NOT NULL,
`hostname` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `address` (`address`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
";

command = new MySqlCommand(sql, connection);
command.ExecuteNonQuery();

connection.Close();
}
}
Expand Down

0 comments on commit f78cd88

Please sign in to comment.