|
49 | 49 | import com.bencodez.advancedcore.api.user.usercache.value.DataValueInt; |
50 | 50 | import com.bencodez.advancedcore.api.user.usercache.value.DataValueString; |
51 | 51 | import com.bencodez.advancedcore.api.user.userstorage.Column; |
| 52 | +import com.bencodez.advancedcore.api.user.userstorage.DataType; |
52 | 53 | import com.bencodez.advancedcore.api.user.userstorage.mysql.api.config.MysqlConfigVelocity; |
53 | 54 | import com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy; |
54 | 55 | import com.bencodez.advancedcore.bungeeapi.globaldata.GlobalMySQL; |
@@ -370,7 +371,7 @@ public void onTimeChangedFinished(TimeType type) { |
370 | 371 | if (type.equals(TimeType.MONTH)) { |
371 | 372 | getMysql().copyColumnData(TopVoter.Monthly.getColumnName(), "LastMonthTotal"); |
372 | 373 | } |
373 | | - getMysql().wipeColumnData(TopVoter.of(type).getColumnName()); |
| 374 | + getMysql().wipeColumnData(TopVoter.of(type).getColumnName(), DataType.INTEGER); |
374 | 375 |
|
375 | 376 | for (RegisteredServer s : getAvailableAllServers()) { |
376 | 377 | getGlobalDataHandler().setBoolean(s.getServerInfo().getName(), "ForceUpdate", true); |
@@ -423,7 +424,7 @@ public void onTimeChangedFinished(TimeType type) { |
423 | 424 | if (type.equals(TimeType.MONTH)) { |
424 | 425 | getMysql().copyColumnData(TopVoter.Monthly.getColumnName(), "LastMonthTotal"); |
425 | 426 | } |
426 | | - getMysql().wipeColumnData(TopVoter.of(type).getColumnName()); |
| 427 | + getMysql().wipeColumnData(TopVoter.of(type).getColumnName(), DataType.INTEGER); |
427 | 428 |
|
428 | 429 | for (RegisteredServer s : getAvailableAllServers()) { |
429 | 430 | getGlobalDataHandler().setBoolean(s.getServerInfo().getName(), "ForceUpdate", true); |
|
0 commit comments