Sort of forgot to actually change the players time...

This commit is contained in:
Sauilitired
2014-10-19 11:17:40 +02:00
parent a18ac3ad05
commit e767834144
2 changed files with 18 additions and 14 deletions

View File

@ -172,9 +172,9 @@ public class PlayerEvents implements Listener {
}
if(plot.settings.getFlag("time") != null) {
try {
int time = Integer.parseInt(plot.settings.getFlag("time").getValue());
Long time = Long.parseLong(plot.settings.getFlag("time").getValue());
player.setPlayerTime(time, true);
} catch(Exception e) {
e.printStackTrace();
plot.settings.setFlags(FlagManager.removeFlag(plot.settings.getFlags(), "time"));
}
}