Clan is created. But clan leader is not set. UTF-8.
drdeft opened this issue ยท 3 comments
SimpleClans-DEV-133.jar
[00:27:54] [Server thread/INFO]: DrDeft issued server command: /clan create &6Test&6 Test
[00:27:54] [Server thread/ERROR]: Error at SQL INSERT Query: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 304,850 milliseconds ago. The last packet sent successfully to the server was 304,851 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
[00:27:54] [Server thread/ERROR]: Query: INSERT INTO sc_players
( uuid
, name
, leader
, tag
, friendly_fire
, neutral_kills
, rival_kills
, civilian_kills
, deaths
, last_seen
, join_date
, packed_past_clans
, flags
) VALUES ( 'c9388f1b-f698-3cf7-b4b5-20a0598cdada', 'DrDeft',0,'',0,0,0,0,0,'1454794074051',' 1454794074051','','{"bb-enabled":true,"channel-state":[true,true,true],"cape-enabled":true,"channel":"NONE","chat-shortcut":false,"rank":"","hide-tag":true}');
[00:27:54] [Server thread/INFO]: [Clan Announces] [DrDeft] * Clan Test created
MySQL options:
wait_timeout=60
All is fine in other plugins, using databases (LogBlock, PEX, WorldGuard...)
All files (Plugin + Configs + Database + MySQL configs)
https://dropmefiles.com/hmgE4
Bug. Clan is created. But clan leader is not set.
Manusl SQL query writes data fine. But plugin doesn't.
INSERT INTO sc_players ( uuid, name, leader, tag, friendly_fire, neutral_kills, rival_kills, civilian_kills, deaths, last_seen, join_date, packed_past_clans, flags) VALUES ( 'c9388f1b-f698-3cf7-b4b5-20a0598cdada', 'DrDeft',0,'',0,0,0,0,0,'1454794074051',' 1454794074051','','{"bb-enabled":true,"channel-state":[true,true,true],"cape-enabled":true,"channel":"NONE","chat-shortcut":false,"rank":"","hide-tag":true}');
And clan creater doesn't become the clan leader.
leader must be 1, not 0 in SQL query when creating the clan.
INSERT INTO sc_players ( uuid, name, leader, tag, friendly_fire, neutral_kills, rival_kills, civilian_kills, deaths, last_seen, join_date, packed_past_clans, flags) VALUES ( 'c9388f1b-f698-3cf7-b4b5-20a0598cdada', 'DrDeft',1,'',0,0,0,0,0,'1454794074051',' 1454794074051','','{"bb-enabled":true,"channel-state":[true,true,true],"cape-enabled":true,"channel":"NONE","chat-shortcut":false,"rank":"","hide-tag":true}');