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

@ -9,7 +9,7 @@
</artifacts-to-build>
</component>
<component name="ChangeListManager">
<list default="true" id="f6aaf715-4424-4f9e-96dc-b47edea10520" name="Default" comment="Fix :3&#10;">
<list default="true" id="f6aaf715-4424-4f9e-96dc-b47edea10520" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java" afterPath="$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list>
@ -47,10 +47,10 @@
<file leaf-file-name="PlayerEvents.java" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.66721314" vertical-offset="1582" max-vertical-offset="15470">
<caret line="127" column="23" selection-start-line="127" selection-start-column="23" selection-end-line="127" selection-end-column="23" />
<state vertical-scroll-proportion="0.47213113" vertical-offset="2534" max-vertical-offset="15470">
<caret line="176" column="38" selection-start-line="176" selection-start-column="38" selection-end-line="176" selection-end-column="38" />
<folding>
<element signature="e#0#26520#0" expanded="true" />
<element signature="e#0#26532#0" expanded="true" />
<element signature="imports" expanded="true" />
<element signature="e#1804#1805#0" expanded="true" />
<element signature="e#1859#1860#0" expanded="true" />
@ -831,7 +831,7 @@
<workItem from="1413065609242" duration="214000" />
<workItem from="1413065904473" duration="9265000" />
<workItem from="1413125251335" duration="4054000" />
<workItem from="1413221404445" duration="24407000" />
<workItem from="1413221404445" duration="24578000" />
</task>
<task id="LOCAL-00001" summary="First Commit">
<created>1411382351159</created>
@ -1029,11 +1029,15 @@
<created>1413709386703</created>
<updated>1413709386703</updated>
</task>
<option name="localTasksCounter" value="50" />
<task id="LOCAL-00050" summary="Simple bug fixes + exception printing (debug for now)">
<created>1413710090266</created>
<updated>1413710090266</updated>
</task>
<option name="localTasksCounter" value="51" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="102978000" />
<option name="totallyTimeSpent" value="103149000" />
</component>
<component name="TodoView" selected-index="0">
<todo-panel id="selected-file">
@ -1131,7 +1135,6 @@
<option name="myTodoPanelSettings">
<TodoPanelSettings />
</option>
<MESSAGE value="Improved economy (multiplies price * plots) :D&#10;Added you to plugin.yml" />
<MESSAGE value="Yup." />
<MESSAGE value="I hope this works..." />
<MESSAGE value="Added money given on delete." />
@ -1156,7 +1159,8 @@
<MESSAGE value="Some fixes :p" />
<MESSAGE value="Fixed caption" />
<MESSAGE value="Fix :3&#10;" />
<option name="LAST_COMMIT_MESSAGE" value="Fix :3&#10;" />
<MESSAGE value="Simple bug fixes + exception printing (debug for now)" />
<option name="LAST_COMMIT_MESSAGE" value="Simple bug fixes + exception printing (debug for now)" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
@ -1635,10 +1639,10 @@
</entry>
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.66721314" vertical-offset="1582" max-vertical-offset="15470">
<caret line="127" column="23" selection-start-line="127" selection-start-column="23" selection-end-line="127" selection-end-column="23" />
<state vertical-scroll-proportion="0.47213113" vertical-offset="2534" max-vertical-offset="15470">
<caret line="176" column="38" selection-start-line="176" selection-start-column="38" selection-end-line="176" selection-end-column="38" />
<folding>
<element signature="e#0#26520#0" expanded="true" />
<element signature="e#0#26532#0" expanded="true" />
<element signature="imports" expanded="true" />
<element signature="e#1804#1805#0" expanded="true" />
<element signature="e#1859#1860#0" expanded="true" />

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"));
}
}