add new field...

Signed-off-by: j502647092 <jtb1@163.com>
master
j502647092 2015-09-15 23:04:17 +08:00
parent 7a98072a8d
commit 4b11a9ddfe
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ public class CTZServerBridge extends JavaPlugin {
.add("z", "DOUBLE NOT NULL DEFAULT 0")
.add("email", "VARCHAR(50) NOT NULL DEFAULT 'mc@mc.com'")
.add("world", "VARCHAR(20) DEFAULT 'world'")
.add("islogged", "SMALLINT(6) NOT NULL DEFAULT 0");
.add("islogged", "SMALLINT(6) NOT NULL DEFAULT 0")
.add("allowlogin", "SMALLINT(6) NOT NULL DEFAULT 0");
String Conditions = "UNIQUE (`player`)";
if (!sql.createTables(dbtable, kv, Conditions))
ccs.sendMessage(ChatColor.RED + "数据表 " + dbtable + " 创建失败,请尝试手动创建并重启服务器...");