Skip to content

Commit 0470993

Browse files
committed
Adjustments to wiping column data
1 parent 7de3dff commit 0470993

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import com.bencodez.advancedcore.api.user.usercache.value.DataValueInt;
4040
import com.bencodez.advancedcore.api.user.usercache.value.DataValueString;
4141
import com.bencodez.advancedcore.api.user.userstorage.Column;
42+
import com.bencodez.advancedcore.api.user.userstorage.DataType;
4243
import com.bencodez.advancedcore.api.user.userstorage.mysql.api.config.MysqlConfigBungee;
4344
import com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy;
4445
import com.bencodez.advancedcore.bungeeapi.globaldata.GlobalMySQL;
@@ -361,7 +362,7 @@ public void onTimeChangedFinished(TimeType type) {
361362
if (type.equals(TimeType.MONTH)) {
362363
getMysql().copyColumnData(TopVoter.Monthly.getColumnName(), "LastMonthTotal");
363364
}
364-
getMysql().wipeColumnData(TopVoter.of(type).getColumnName());
365+
getMysql().wipeColumnData(TopVoter.of(type).getColumnName(), DataType.INTEGER);
365366

366367
if (!config.getGlobalDataEnabled()) {
367368
return;
@@ -418,7 +419,7 @@ public void onTimeChangedFinished(TimeType type) {
418419
if (type.equals(TimeType.MONTH)) {
419420
getMysql().copyColumnData(TopVoter.Monthly.getColumnName(), "LastMonthTotal");
420421
}
421-
getMysql().wipeColumnData(TopVoter.of(type).getColumnName());
422+
getMysql().wipeColumnData(TopVoter.of(type).getColumnName(), DataType.INTEGER);
422423

423424
if (!config.getGlobalDataEnabled()) {
424425
return;

VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import com.bencodez.advancedcore.api.user.usercache.value.DataValueInt;
5050
import com.bencodez.advancedcore.api.user.usercache.value.DataValueString;
5151
import com.bencodez.advancedcore.api.user.userstorage.Column;
52+
import com.bencodez.advancedcore.api.user.userstorage.DataType;
5253
import com.bencodez.advancedcore.api.user.userstorage.mysql.api.config.MysqlConfigVelocity;
5354
import com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy;
5455
import com.bencodez.advancedcore.bungeeapi.globaldata.GlobalMySQL;
@@ -370,7 +371,7 @@ public void onTimeChangedFinished(TimeType type) {
370371
if (type.equals(TimeType.MONTH)) {
371372
getMysql().copyColumnData(TopVoter.Monthly.getColumnName(), "LastMonthTotal");
372373
}
373-
getMysql().wipeColumnData(TopVoter.of(type).getColumnName());
374+
getMysql().wipeColumnData(TopVoter.of(type).getColumnName(), DataType.INTEGER);
374375

375376
for (RegisteredServer s : getAvailableAllServers()) {
376377
getGlobalDataHandler().setBoolean(s.getServerInfo().getName(), "ForceUpdate", true);
@@ -423,7 +424,7 @@ public void onTimeChangedFinished(TimeType type) {
423424
if (type.equals(TimeType.MONTH)) {
424425
getMysql().copyColumnData(TopVoter.Monthly.getColumnName(), "LastMonthTotal");
425426
}
426-
getMysql().wipeColumnData(TopVoter.of(type).getColumnName());
427+
getMysql().wipeColumnData(TopVoter.of(type).getColumnName(), DataType.INTEGER);
427428

428429
for (RegisteredServer s : getAvailableAllServers()) {
429430
getGlobalDataHandler().setBoolean(s.getServerInfo().getName(), "ForceUpdate", true);

0 commit comments

Comments
 (0)