diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 45e556118..49f56394c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -9,7 +9,7 @@ - + @@ -47,10 +47,10 @@ - - + + - + @@ -831,7 +831,7 @@ - + 1411382351159 @@ -1029,11 +1029,15 @@ 1413709386703 1413709386703 - - @@ -1131,7 +1135,6 @@ - @@ -1156,7 +1159,8 @@ - @@ -1635,10 +1639,10 @@ - - + + - + diff --git a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java index 0e5494ce8..d98101cc7 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -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")); } }