mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-27 19:24:43 +02:00
Sort of forgot to actually change the players time...
This commit is contained in:
@ -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"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user