mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Gamemode :D
This commit is contained in:
parent
dae0b00e35
commit
7f57b22e56
@ -11,7 +11,6 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="f6aaf715-4424-4f9e-96dc-b47edea10520" name="Default" comment="">
|
<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$/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$/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java" afterPath="$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||||
</list>
|
</list>
|
||||||
<ignored path="plot_news.iws" />
|
<ignored path="plot_news.iws" />
|
||||||
@ -70,8 +69,8 @@
|
|||||||
<file leaf-file-name="AbstractFlag.java" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="AbstractFlag.java" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/AbstractFlag.java">
|
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/AbstractFlag.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="97" max-vertical-offset="765">
|
<state vertical-scroll-proportion="0.0" vertical-offset="250" max-vertical-offset="918">
|
||||||
<caret line="19" column="76" selection-start-line="19" selection-start-column="76" selection-end-line="19" selection-end-column="76" />
|
<caret line="28" column="7" selection-start-line="28" selection-start-column="7" selection-end-line="28" selection-end-column="7" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@ -120,8 +119,8 @@
|
|||||||
<file leaf-file-name="PlayerEvents.java" pinned="false" current="true" current-in-tab="true">
|
<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">
|
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.3089431" vertical-offset="2020" max-vertical-offset="14858">
|
<state vertical-scroll-proportion="0.25365853" vertical-offset="1986" max-vertical-offset="14858">
|
||||||
<caret line="146" column="34" selection-start-line="146" selection-start-column="34" selection-end-line="146" selection-end-column="34" />
|
<caret line="142" column="29" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="29" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
<element signature="e#1751#1752#0" expanded="true" />
|
<element signature="e#1751#1752#0" expanded="true" />
|
||||||
@ -134,8 +133,8 @@
|
|||||||
<file leaf-file-name="PlotWorld.java" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="PlotWorld.java" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/PlotWorld.java">
|
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/PlotWorld.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1865" max-vertical-offset="2788">
|
<state vertical-scroll-proportion="0.0" vertical-offset="2052" max-vertical-offset="2975">
|
||||||
<caret line="142" column="79" selection-start-line="142" selection-start-column="79" selection-end-line="142" selection-end-column="79" />
|
<caret line="151" column="0" selection-start-line="151" selection-start-column="0" selection-end-line="151" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@ -765,7 +764,7 @@
|
|||||||
<workItem from="1413065609242" duration="214000" />
|
<workItem from="1413065609242" duration="214000" />
|
||||||
<workItem from="1413065904473" duration="9265000" />
|
<workItem from="1413065904473" duration="9265000" />
|
||||||
<workItem from="1413125251335" duration="4054000" />
|
<workItem from="1413125251335" duration="4054000" />
|
||||||
<workItem from="1413221404445" duration="17302000" />
|
<workItem from="1413221404445" duration="18630000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="First Commit">
|
<task id="LOCAL-00001" summary="First Commit">
|
||||||
<created>1411382351159</created>
|
<created>1411382351159</created>
|
||||||
@ -935,11 +934,15 @@
|
|||||||
<created>1413627152131</created>
|
<created>1413627152131</created>
|
||||||
<updated>1413627152131</updated>
|
<updated>1413627152131</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="43" />
|
<task id="LOCAL-00043" summary="Gamemode">
|
||||||
|
<created>1413632691993</created>
|
||||||
|
<updated>1413632691993</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="44" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="95873000" />
|
<option name="totallyTimeSpent" value="97201000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="TodoView" selected-index="0">
|
<component name="TodoView" selected-index="0">
|
||||||
<todo-panel id="selected-file">
|
<todo-panel id="selected-file">
|
||||||
@ -1037,7 +1040,6 @@
|
|||||||
<option name="myTodoPanelSettings">
|
<option name="myTodoPanelSettings">
|
||||||
<TodoPanelSettings />
|
<TodoPanelSettings />
|
||||||
</option>
|
</option>
|
||||||
<MESSAGE value="Forgot to merge... Bleh..." />
|
|
||||||
<MESSAGE value="Well, I broke it, sorry :(" />
|
<MESSAGE value="Well, I broke it, sorry :(" />
|
||||||
<MESSAGE value="Fixed some items on the to-do list." />
|
<MESSAGE value="Fixed some items on the to-do list." />
|
||||||
<MESSAGE value="Started working on rate system :D" />
|
<MESSAGE value="Started working on rate system :D" />
|
||||||
@ -1062,7 +1064,8 @@
|
|||||||
<MESSAGE value="Fixed the uuid saving functions, added ability to change caching methods. " />
|
<MESSAGE value="Fixed the uuid saving functions, added ability to change caching methods. " />
|
||||||
<MESSAGE value="Some global settings :D" />
|
<MESSAGE value="Some global settings :D" />
|
||||||
<MESSAGE value="Flags :D" />
|
<MESSAGE value="Flags :D" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Flags :D" />
|
<MESSAGE value="Gamemode" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Gamemode" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
@ -1438,8 +1441,8 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/PlotWorld.java">
|
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/PlotWorld.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1865" max-vertical-offset="2788">
|
<state vertical-scroll-proportion="0.0" vertical-offset="2052" max-vertical-offset="2975">
|
||||||
<caret line="142" column="79" selection-start-line="142" selection-start-column="79" selection-end-line="142" selection-end-column="79" />
|
<caret line="151" column="0" selection-start-line="151" selection-start-column="0" selection-end-line="151" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@ -1462,8 +1465,8 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/AbstractFlag.java">
|
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/AbstractFlag.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="97" max-vertical-offset="765">
|
<state vertical-scroll-proportion="0.0" vertical-offset="250" max-vertical-offset="918">
|
||||||
<caret line="19" column="76" selection-start-line="19" selection-start-column="76" selection-end-line="19" selection-end-column="76" />
|
<caret line="28" column="7" selection-start-line="28" selection-start-column="7" selection-end-line="28" selection-end-column="7" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@ -1490,8 +1493,8 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java">
|
<entry file="file://$PROJECT_DIR$/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.3089431" vertical-offset="2020" max-vertical-offset="14858">
|
<state vertical-scroll-proportion="0.25365853" vertical-offset="1986" max-vertical-offset="14858">
|
||||||
<caret line="146" column="34" selection-start-line="146" selection-start-column="34" selection-end-line="146" selection-end-column="34" />
|
<caret line="142" column="29" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="29" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
<element signature="e#1751#1752#0" expanded="true" />
|
<element signature="e#1751#1752#0" expanded="true" />
|
||||||
|
@ -140,11 +140,11 @@ public class PlayerEvents implements Listener {
|
|||||||
List<String> creative = Arrays.asList("creative" , "cr", "1");
|
List<String> creative = Arrays.asList("creative" , "cr", "1");
|
||||||
List<String> survival = Arrays.asList("survival" , "su", "0");
|
List<String> survival = Arrays.asList("survival" , "su", "0");
|
||||||
List<String> adventure = Arrays.asList("adventure", "ad", "2");
|
List<String> adventure = Arrays.asList("adventure", "ad", "2");
|
||||||
if (creative.equals(str)) {
|
if (creative.contains(str)) {
|
||||||
return GameMode.CREATIVE;
|
return GameMode.CREATIVE;
|
||||||
} else if (survival.equals(str)) {
|
} else if (survival.contains(str)) {
|
||||||
return GameMode.SURVIVAL;
|
return GameMode.SURVIVAL;
|
||||||
} else if (adventure.equals(str)) {
|
} else if (adventure.contains(str)) {
|
||||||
return GameMode.ADVENTURE;
|
return GameMode.ADVENTURE;
|
||||||
} else {
|
} else {
|
||||||
return GameMode.SURVIVAL;
|
return GameMode.SURVIVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user