Switched to UUID-s and YAML
https://www.reddit.com/r/TheButtonMinecraft/comments/3p1zo7/
This commit is contained in:
parent
ae1505ec56
commit
0d72c9fd84
23 changed files with 6471 additions and 342 deletions
6240
.metadata/.log
6240
.metadata/.log
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
content_assist_disabled_computers=org.eclipse.jdt.ui.textProposalCategory\u0000org.eclipse.jdt.ui.javaAllProposalCategory\u0000org.eclipse.jdt.ui.javaTypeProposalCategory\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory\u0000
|
||||
content_assist_lru_history=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><history maxLHS\="100" maxRHS\="10"><lhs name\="java.util.function.Predicate"><rhs name\="tk.sznp.thebuttonautoflair.MyPredicate"/></lhs><lhs name\="java.util.List"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.RandomAccess"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.lang.Cloneable"><rhs name\="java.util.ArrayList"/><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.util.Collection"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.lang.Iterable"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.AbstractList"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.AbstractCollection"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.ArrayList"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"><rhs name\="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"/></lhs><lhs name\="java.util.Map"><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.util.AbstractMap"><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.util.HashMap"><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.lang.IllegalArgumentException"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.RuntimeException"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.Exception"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.Throwable"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.NumberFormatException"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.CharSequence"><rhs name\="java.lang.StringBuilder"/></lhs><lhs name\="java.lang.AbstractStringBuilder"><rhs name\="java.lang.StringBuilder"/></lhs><lhs name\="java.lang.Appendable"><rhs name\="java.lang.StringBuilder"/></lhs></history>
|
||||
content_assist_lru_history=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><history maxLHS\="100" maxRHS\="10"><lhs name\="java.util.function.Predicate"><rhs name\="tk.sznp.thebuttonautoflair.MyPredicate"/></lhs><lhs name\="java.util.List"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.RandomAccess"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.lang.Cloneable"><rhs name\="java.util.ArrayList"/><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.util.Collection"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.lang.Iterable"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.AbstractList"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.AbstractCollection"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="java.util.ArrayList"><rhs name\="java.util.ArrayList"/></lhs><lhs name\="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"><rhs name\="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"/></lhs><lhs name\="java.util.Map"><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.util.AbstractMap"><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.util.HashMap"><rhs name\="java.util.HashMap"/></lhs><lhs name\="java.lang.IllegalArgumentException"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.RuntimeException"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.Exception"><rhs name\="java.lang.NumberFormatException"/><rhs name\="org.bukkit.configuration.InvalidConfigurationException"/></lhs><lhs name\="java.lang.Throwable"><rhs name\="java.lang.NumberFormatException"/><rhs name\="org.bukkit.configuration.InvalidConfigurationException"/></lhs><lhs name\="java.lang.NumberFormatException"><rhs name\="java.lang.NumberFormatException"/></lhs><lhs name\="java.lang.CharSequence"><rhs name\="java.lang.StringBuilder"/></lhs><lhs name\="java.lang.AbstractStringBuilder"><rhs name\="java.lang.StringBuilder"/></lhs><lhs name\="java.lang.Appendable"><rhs name\="java.lang.StringBuilder"/></lhs><lhs name\="org.bukkit.configuration.ConfigurationSection"><rhs name\="org.bukkit.configuration.file.YamlConfiguration"/></lhs><lhs name\="org.bukkit.configuration.file.FileConfiguration"><rhs name\="org.bukkit.configuration.file.YamlConfiguration"/></lhs><lhs name\="org.bukkit.configuration.MemoryConfiguration"><rhs name\="org.bukkit.configuration.file.YamlConfiguration"/></lhs><lhs name\="org.bukkit.configuration.Configuration"><rhs name\="org.bukkit.configuration.file.YamlConfiguration"/></lhs><lhs name\="org.bukkit.configuration.MemorySection"><rhs name\="org.bukkit.configuration.file.YamlConfiguration"/></lhs><lhs name\="org.bukkit.configuration.file.YamlConfiguration"><rhs name\="org.bukkit.configuration.file.YamlConfiguration"/></lhs><lhs name\="org.bukkit.configuration.InvalidConfigurationException"><rhs name\="org.bukkit.configuration.InvalidConfigurationException"/></lhs></history>
|
||||
content_assist_number_of_computers=21
|
||||
content_assist_proposals_background=255,255,255
|
||||
content_assist_proposals_foreground=0,0,0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
PROBLEMS_FILTERS_MIGRATE=true
|
||||
TASKS_FILTERS_MIGRATE=true
|
||||
eclipse.preferences.version=1
|
||||
platformState=1430672370540
|
||||
quickStart=false
|
||||
|
|
|
@ -206,6 +206,7 @@
|
|||
<children xsi:type="advanced:Placeholder" xmi:id="_c2BAOCr1EeWsptewEJl0pA" elementId="org.eclipse.ui.console.ConsoleView" toBeRendered="false" ref="_77anYSr0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="advanced:Placeholder" xmi:id="_c2BAOSr1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.BookmarkView" toBeRendered="false" ref="_77anYir0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="advanced:Placeholder" xmi:id="_c2BAOir1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProgressView" toBeRendered="false" ref="_77anYyr0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="advanced:Placeholder" xmi:id="_JGbyAHRFEeWPht_THO3sUQ" elementId="org.eclipse.ui.views.TaskList" toBeRendered="false" ref="_77anYCr0EeWsptewEJl0pA"/>
|
||||
</children>
|
||||
</children>
|
||||
</children>
|
||||
|
@ -235,24 +236,25 @@
|
|||
<tags>categoryTag:Help</tags>
|
||||
</sharedElements>
|
||||
<sharedElements xsi:type="advanced:Area" xmi:id="_7EfmcCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.editorss" selectedElement="_7EfmcSr0EeWsptewEJl0pA">
|
||||
<children xsi:type="basic:PartStack" xmi:id="_7EfmcSr0EeWsptewEJl0pA" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_1DUL8GehEeWnA--ML9SqFQ">
|
||||
<children xsi:type="basic:PartStack" xmi:id="_7EfmcSr0EeWsptewEJl0pA" elementId="org.eclipse.e4.primaryDataStack" selectedElement="__kGwMD-LEeWprK50eVwiGQ">
|
||||
<tags>newtablook</tags>
|
||||
<tags>org.eclipse.e4.primaryDataStack</tags>
|
||||
<tags>EditorStack</tags>
|
||||
<children xsi:type="basic:Part" xmi:id="__kGwMD-LEeWprK50eVwiGQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="PluginMain.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="1022" selectionTopPixel="0"/>
</editor>"/>
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="103" selectionTopPixel="0"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
<tags>activeOnClose</tags>
|
||||
</children>
|
||||
<children xsi:type="basic:Part" xmi:id="_yopyED35EeW_qLWp8BCh0w" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="MaybeOfflinePlayer.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/MaybeOfflinePlayer.java" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/MaybeOfflinePlayer.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="666" selectionTopPixel="0"/>
</editor>"/>
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/MaybeOfflinePlayer.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="2330" selectionTopPixel="573"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
</children>
|
||||
<children xsi:type="basic:Part" xmi:id="_LwEvgEZrEeWD5J47i2JVBw" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="AnnouncerThread.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/AnnouncerThread.java" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/AnnouncerThread.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="276" selectionTopPixel="0"/>
</editor>"/>
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/AnnouncerThread.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="363" selectionTopPixel="0"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
|
@ -264,14 +266,13 @@
|
|||
<tags>removeOnHide</tags>
|
||||
</children>
|
||||
<children xsi:type="basic:Part" xmi:id="_1DUL8GehEeWnA--ML9SqFQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="PlayerListener.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="5832" selectionTopPixel="1923"/>
</editor>"/>
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="1846" selectionTopPixel="0"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
<tags>activeOnClose</tags>
|
||||
</children>
|
||||
<children xsi:type="basic:Part" xmi:id="_j_800GlSEeWSYeReuMncYg" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="Commands.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="16781" selectionTopPixel="7323"/>
</editor>"/>
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.jdt.ui.CompilationUnitEditor">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="1006" selectionTopPixel="330"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
|
@ -330,7 +331,7 @@
|
|||
<tags>categoryTag:General</tags>
|
||||
</sharedElements>
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_77aAUCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.gif" tooltip="0 errors, 1 warning, 0 others" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view PRIMARY_SORT_FIELD="org.eclipse.ui.ide.severityAndDescriptionField" categoryGroup="org.eclipse.ui.ide.severity" markerContentGenerator="org.eclipse.ui.ide.problemsGenerator" partName="Problems">
<columnWidths org.eclipse.ui.ide.locationField="90" org.eclipse.ui.ide.markerType="90" org.eclipse.ui.ide.pathField="120" org.eclipse.ui.ide.resourceField="90" org.eclipse.ui.ide.severityAndDescriptionField="300"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.severityAndDescriptionField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/>
</view>"/>
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view PRIMARY_SORT_FIELD="org.eclipse.ui.ide.severityAndDescriptionField" categoryGroup="org.eclipse.ui.ide.severity" markerContentGenerator="org.eclipse.ui.ide.problemsGenerator" partName="Problems">
<expanded>
<category IMemento.internal.id="Errors"/>
<category IMemento.internal.id="Warnings"/>
</expanded>
<columnWidths org.eclipse.ui.ide.locationField="90" org.eclipse.ui.ide.markerType="90" org.eclipse.ui.ide.pathField="120" org.eclipse.ui.ide.resourceField="90" org.eclipse.ui.ide.severityAndDescriptionField="300"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.severityAndDescriptionField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/>
</view>"/>
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:General</tags>
|
||||
<menus xmi:id="_dGEOYCr1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView">
|
||||
|
@ -339,9 +340,15 @@
|
|||
</menus>
|
||||
<toolbar xmi:id="_dGEOYSr1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView" visible="false"/>
|
||||
</sharedElements>
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_77anYCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.views.TaskList" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Tasks" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/tasks_tsk.gif" closeable="true">
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_77anYCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.views.TaskList" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Tasks" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/tasks_tsk.gif" tooltip="0 items" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view PRIMARY_SORT_FIELD="org.eclipse.ui.ide.completionField" categoryGroup="none" markerContentGenerator="org.eclipse.ui.ide.tasksGenerator" partName="Tasks">
<columnWidths org.eclipse.ui.ide.completionField="40" org.eclipse.ui.ide.descriptionField="300" org.eclipse.ui.ide.locationField="90" org.eclipse.ui.ide.markerType="90" org.eclipse.ui.ide.pathField="120" org.eclipse.ui.ide.priorityField="30" org.eclipse.ui.ide.resourceField="90"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.completionField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.priorityField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.descriptionField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/>
</view>"/>
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:General</tags>
|
||||
<menus xmi:id="_JJz2IHRFEeWPht_THO3sUQ" elementId="org.eclipse.ui.views.TaskList">
|
||||
<tags>ViewMenu</tags>
|
||||
<tags>menuContribution:menu</tags>
|
||||
</menus>
|
||||
<toolbar xmi:id="_JJ0dMHRFEeWPht_THO3sUQ" elementId="org.eclipse.ui.views.TaskList" visible="false"/>
|
||||
</sharedElements>
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_77anYSr0EeWsptewEJl0pA" elementId="org.eclipse.ui.console.ConsoleView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Console" iconURI="platform:/plugin/org.eclipse.ui.console/icons/full/cview16/console_view.gif" closeable="true">
|
||||
<tags>View</tags>
|
||||
|
@ -395,11 +402,17 @@
|
|||
</menus>
|
||||
<toolbar xmi:id="_c3XEASr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.PackageExplorer" visible="false"/>
|
||||
</sharedElements>
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_c16SgCr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.JavadocView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Javadoc" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/javadoc.gif" closeable="true">
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_c16SgCr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.JavadocView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Javadoc" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/javadoc.gif" tooltip="" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view/>"/>
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:Java</tags>
|
||||
<menus xmi:id="_8GUxsHREEeWPht_THO3sUQ" elementId="org.eclipse.jdt.ui.JavadocView">
|
||||
<tags>ViewMenu</tags>
|
||||
<tags>menuContribution:menu</tags>
|
||||
</menus>
|
||||
<toolbar xmi:id="_8GVYwHREEeWPht_THO3sUQ" elementId="org.eclipse.jdt.ui.JavadocView" visible="false"/>
|
||||
</sharedElements>
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_c165kCr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.SourceView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Declaration" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/source.gif" tooltip="tk.sznp.thebuttonautoflair.PluginMain.HasIGFlair(String playername) : Boolean - TheButtonAutoFlair/src" closeable="true">
|
||||
<sharedElements xsi:type="basic:Part" xmi:id="_c165kCr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.SourceView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Declaration" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/source.gif" tooltip="" closeable="true">
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view/>"/>
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:Java</tags>
|
||||
|
@ -432,18 +445,18 @@
|
|||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_6K2osCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.workbench.file">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUpd4HQVEeWibJMWLNq2rg" elementId="new.group"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUqE8HQVEeWibJMWLNq2rg" elementId="newWizardDropDown"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUqE8XQVEeWibJMWLNq2rg" elementId="new.ext" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUqE8nQVEeWibJMWLNq2rg" elementId="save.group" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUqE83QVEeWibJMWLNq2rg" elementId="save"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUqsAHQVEeWibJMWLNq2rg" elementId="saveAll"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUqsAXQVEeWibJMWLNq2rg" elementId="save.ext" visible="false"/>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_nUrTEHQVEeWibJMWLNq2rg" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwLkHQVEeWibJMWLNq2rg" elementId="print.ext" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwLkXQVEeWibJMWLNq2rg" elementId="build.group"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwyoHQVEeWibJMWLNq2rg" elementId="build.ext" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwyoXQVEeWibJMWLNq2rg" elementId="additions"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJnr8HRUEeWJsLH5v-A5gA" elementId="new.group"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJnr8XRUEeWJsLH5v-A5gA" elementId="newWizardDropDown"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJnr8nRUEeWJsLH5v-A5gA" elementId="new.ext" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJnr83RUEeWJsLH5v-A5gA" elementId="save.group" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJoTAHRUEeWJsLH5v-A5gA" elementId="save"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJoTAXRUEeWJsLH5v-A5gA" elementId="saveAll"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJoTAnRUEeWJsLH5v-A5gA" elementId="save.ext" visible="false"/>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_SJo6EHRUEeWJsLH5v-A5gA" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJuZoHRUEeWJsLH5v-A5gA" elementId="print.ext" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJuZoXRUEeWJsLH5v-A5gA" elementId="build.group"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJuZonRUEeWJsLH5v-A5gA" elementId="build.ext" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJvAsHRUEeWJsLH5v-A5gA" elementId="additions"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_6K2osSr0EeWsptewEJl0pA" elementId="additions" toBeRendered="false">
|
||||
<tags>toolbarSeparator</tags>
|
||||
|
@ -451,38 +464,38 @@
|
|||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_dIOxkCr1EeWsptewEJl0pA" elementId="adt.actionSet.avdManager">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncYdkHQVEeWibJMWLNq2rg" elementId="android_project"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZEoHQVEeWibJMWLNq2rg" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZEoXQVEeWibJMWLNq2rg" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STMesHRUEeWJsLH5v-A5gA" elementId="android_project"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STMesXRUEeWJsLH5v-A5gA" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STMesnRUEeWJsLH5v-A5gA" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_Mv4F0C3kEeWvSKv3oe_gqg" elementId="org.eclipse.debug.ui.breakpointActionSet">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZEonQVEeWibJMWLNq2rg" elementId="breakpointGroup"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrsHQVEeWibJMWLNq2rg" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFwHRUEeWJsLH5v-A5gA" elementId="breakpointGroup"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFwXRUEeWJsLH5v-A5gA" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_dI4R0Cr1EeWsptewEJl0pA" elementId="adt.actionSet.lint">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrsXQVEeWibJMWLNq2rg" elementId="android_project"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrsnQVEeWibJMWLNq2rg" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFwnRUEeWJsLH5v-A5gA" elementId="android_project"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFw3RUEeWJsLH5v-A5gA" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_dIyyQCr1EeWsptewEJl0pA" elementId="adt.actionSet.wizards">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrs3QVEeWibJMWLNq2rg" elementId="android_project"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrtHQVEeWibJMWLNq2rg" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFxHRUEeWJsLH5v-A5gA" elementId="android_project"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFxXRUEeWJsLH5v-A5gA" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_8zAWsCr0EeWsptewEJl0pA" elementId="org.eclipse.debug.ui.launchActionSet">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrtXQVEeWibJMWLNq2rg" elementId="debug"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncZrtnQVEeWibJMWLNq2rg" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSwHQVEeWibJMWLNq2rg" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSwXQVEeWibJMWLNq2rg" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNFxnRUEeWJsLH5v-A5gA" elementId="debug"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs0HRUEeWJsLH5v-A5gA" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs0XRUEeWJsLH5v-A5gA" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs0nRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_dG7xECr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.JavaElementCreationActionSet">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSwnQVEeWibJMWLNq2rg" elementId="JavaWizards"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSw3QVEeWibJMWLNq2rg" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSxHQVEeWibJMWLNq2rg" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSxXQVEeWibJMWLNq2rg" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs03RUEeWJsLH5v-A5gA" elementId="JavaWizards"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs1HRUEeWJsLH5v-A5gA" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs1XRUEeWJsLH5v-A5gA" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STNs1nRUEeWJsLH5v-A5gA" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_8voSkCr0EeWsptewEJl0pA" elementId="org.eclipse.jst.j2ee.J2eeMainActionSet" visible="false">
|
||||
<tags>Draggable</tags>
|
||||
|
@ -492,20 +505,20 @@
|
|||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_8xJVgCr0EeWsptewEJl0pA" elementId="org.eclipse.search.searchActionSet">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ncaSxnQVEeWibJMWLNq2rg" elementId="Search"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nca50HQVEeWibJMWLNq2rg" elementId="openType"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nca50XQVEeWibJMWLNq2rg" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nca50nQVEeWibJMWLNq2rg" elementId="org.eclipse.search.OpenSearchDialogPage"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STOT4HRUEeWJsLH5v-A5gA" elementId="Search"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STOT4XRUEeWJsLH5v-A5gA" elementId="openType"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STOT4nRUEeWJsLH5v-A5gA" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STOT43RUEeWJsLH5v-A5gA" elementId="org.eclipse.search.OpenSearchDialogPage"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_Slo_UC3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.actionSet.presentation">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDSOYHQVEeWibJMWLNq2rg" elementId="Presentation"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDSOYXQVEeWibJMWLNq2rg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDSOYnQVEeWibJMWLNq2rg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDS1cHQVEeWibJMWLNq2rg" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDS1cXQVEeWibJMWLNq2rg" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDS1cnQVEeWibJMWLNq2rg" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_qDS1c3QVEeWibJMWLNq2rg" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfXfwHRUEeWJsLH5v-A5gA" elementId="Presentation"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfYG0HRUEeWJsLH5v-A5gA" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfYG0XRUEeWJsLH5v-A5gA" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfYG0nRUEeWJsLH5v-A5gA" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfYt4HRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfYt4XRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_VfYt4nRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_8wdZACr0EeWsptewEJl0pA" elementId="org.eclipse.wst.server.ui.internal.webbrowser.actionSet" visible="false">
|
||||
<tags>Draggable</tags>
|
||||
|
@ -523,15 +536,15 @@
|
|||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.workbench.navigate">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwyonQVEeWibJMWLNq2rg" elementId="history.group"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwyo3QVEeWibJMWLNq2rg" elementId="group.application" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUwypHQVEeWibJMWLNq2rg" elementId="backardHistory"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUxZsHQVEeWibJMWLNq2rg" elementId="forwardHistory"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUxZsXQVEeWibJMWLNq2rg" elementId="pin.group"/>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_nUyAwHQVEeWibJMWLNq2rg" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.gif" tooltip="Pin the current editor" enabled="false" command="_3_eWRCr0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nca503QVEeWibJMWLNq2rg" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nca51HQVEeWibJMWLNq2rg" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nca51XQVEeWibJMWLNq2rg" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJvAsXRUEeWJsLH5v-A5gA" elementId="history.group"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJvAsnRUEeWJsLH5v-A5gA" elementId="group.application" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJvAs3RUEeWJsLH5v-A5gA" elementId="backardHistory"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJvnwHRUEeWJsLH5v-A5gA" elementId="forwardHistory"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJvnwXRUEeWJsLH5v-A5gA" elementId="pin.group"/>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_SJwO0HRUEeWJsLH5v-A5gA" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.gif" tooltip="Pin the current editor" enabled="false" command="_3_eWRCr0EeWsptewEJl0pA"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STOT5HRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STO68HRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_STO68XRUEeWJsLH5v-A5gA" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoSr0EeWsptewEJl0pA" elementId="group.editor" toBeRendered="false">
|
||||
<tags>toolbarSeparator</tags>
|
||||
|
@ -543,8 +556,8 @@
|
|||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_6LT7sCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.workbench.help" visible="false">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUyn0HQVEeWibJMWLNq2rg" elementId="group.help"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_nUyn0XQVEeWibJMWLNq2rg" elementId="group.application" visible="false"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJw14HRUEeWJsLH5v-A5gA" elementId="group.help"/>
|
||||
<children xsi:type="menu:OpaqueToolItem" xmi:id="_SJw14XRUEeWJsLH5v-A5gA" elementId="group.application" visible="false"/>
|
||||
</children>
|
||||
<children xsi:type="menu:ToolControl" xmi:id="_61nc8Cr0EeWsptewEJl0pA" elementId="PerspectiveSpacer" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.LayoutModifierToolControl">
|
||||
<tags>stretch</tags>
|
||||
|
|
Binary file not shown.
|
@ -22,5 +22,5 @@ INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spi
|
|||
3604769962.index
|
||||
994834796.index
|
||||
3954291735.index
|
||||
1508644233.index
|
||||
3045053200.index
|
||||
1508644233.index
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<qualifiedTypeNameHistroy>
|
||||
<fullyQualifiedTypeName name="org.json.simple.parser.JSONParser"/>
|
||||
<fullyQualifiedTypeName name="com.google.gson.stream.JsonReader"/>
|
||||
<fullyQualifiedTypeName name="java.io.Reader"/>
|
||||
<fullyQualifiedTypeName name="java.io.InputStreamReader"/>
|
||||
<fullyQualifiedTypeName name="org.json.JSONObject"/>
|
||||
<fullyQualifiedTypeName name="org.json.JSONArray"/>
|
||||
<fullyQualifiedTypeName name="java.util.Dictionary"/>
|
||||
<fullyQualifiedTypeName name="java.util.Map"/>
|
||||
|
@ -46,18 +41,23 @@
|
|||
<fullyQualifiedTypeName name="java.util.HashMap"/>
|
||||
<fullyQualifiedTypeName name="java.lang.NumberFormatException"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.entity.Player"/>
|
||||
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.AnnouncerThread"/>
|
||||
<fullyQualifiedTypeName name="com.google.common.io.Files"/>
|
||||
<fullyQualifiedTypeName name="com.earth2me.essentials.PlayerList"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.event.entity.PlayerDeathEvent"/>
|
||||
<fullyQualifiedTypeName name="java.util.Random"/>
|
||||
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.PluginMain"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.Location"/>
|
||||
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"/>
|
||||
<fullyQualifiedTypeName name="java.lang.StringBuilder"/>
|
||||
<fullyQualifiedTypeName name="java.util.ArrayList"/>
|
||||
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.PlayerListener"/>
|
||||
<fullyQualifiedTypeName name="au.com.mineauz.minigames.MinigamePlayer"/>
|
||||
<fullyQualifiedTypeName name="au.com.mineauz.minigames.PlayerData"/>
|
||||
<fullyQualifiedTypeName name="au.com.mineauz.minigames.Minigames"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.configuration.ConfigurationSection"/>
|
||||
<fullyQualifiedTypeName name="java.util.UUID"/>
|
||||
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.AnnouncerThread"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.configuration.InvalidConfigurationException"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.configuration.file.YamlConfiguration"/>
|
||||
<fullyQualifiedTypeName name="org.bukkit.Bukkit"/>
|
||||
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"/>
|
||||
</qualifiedTypeNameHistroy>
|
||||
|
|
|
@ -63,4 +63,6 @@
|
|||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1444670056840_60" label="Window Working Set" name="Aggregate for window 1444670056840"/>
|
||||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1444765060466_61" label="Window Working Set" name="Aggregate for window 1444765060465"/>
|
||||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1445007205549_62" label="Window Working Set" name="Aggregate for window 1445007205549"/>
|
||||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1445020965882_63" label="Window Working Set" name="Aggregate for window 1445020965882"/>
|
||||
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1445034124504_64" label="Window Working Set" name="Aggregate for window 1445034124503"/>
|
||||
</workingSetManager>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,7 @@
|
|||
package tk.sznp.thebuttonautoflair;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
@ -29,7 +30,7 @@ public class Commands implements CommandExecutor {
|
|||
case "u": {
|
||||
if (args.length < 1)
|
||||
return false;
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AllPlayers.get(player
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.GetFromName(player
|
||||
.getName()); // 2015.08.08.
|
||||
if (!p.CommentedOnReddit
|
||||
&& !args[0].toLowerCase().equals("admin")
|
||||
|
@ -143,12 +144,12 @@ public class Commands implements CommandExecutor {
|
|||
if (args.length == 0) {
|
||||
return false;
|
||||
} else {
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = false;
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getUniqueId()).RPMode = false;
|
||||
String message = "";
|
||||
for (String arg : args)
|
||||
message += arg + " ";
|
||||
player.chat(message.substring(0, message.length() - 1));
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = true;
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getUniqueId()).RPMode = true;
|
||||
}
|
||||
return true;
|
||||
default:
|
||||
|
@ -173,7 +174,7 @@ public class Commands implements CommandExecutor {
|
|||
PluginMain.LoadFiles(true); // 2015.08.09.
|
||||
for (Player p : PluginMain.GetPlayers()) {
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AddPlayerIfNeeded(p
|
||||
.getName());
|
||||
.getUniqueId());
|
||||
// if(mp.Flair!=null)
|
||||
if (mp.CommentedOnReddit) {
|
||||
PluginMain.AppendPlayerDisplayFlair(mp, p); // 2015.08.09.
|
||||
|
@ -265,12 +266,12 @@ public class Commands implements CommandExecutor {
|
|||
SendMessage(player, message);
|
||||
return;
|
||||
}
|
||||
if (!MaybeOfflinePlayer.AllPlayers.containsKey(args[2])) {
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.GetFromName(args[2]);
|
||||
if (p == null) {
|
||||
String message = "§cPlayer not found: " + args[2] + "§r";
|
||||
SendMessage(player, message);
|
||||
return;
|
||||
}
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AllPlayers.get(args[2]);
|
||||
SendMessage(player, "Player name: " + p.PlayerName);
|
||||
SendMessage(player, "User flair: " + p.Flair);
|
||||
SendMessage(player, "Username: " + p.UserName);
|
||||
|
@ -304,21 +305,6 @@ public class Commands implements CommandExecutor {
|
|||
targetplayer.Flair = flair;
|
||||
targetplayer.CommentedOnReddit = true; // Or at least has a flair in
|
||||
// some way
|
||||
if (!PluginMain.RemoveLineFromFile("customflairs.txt",
|
||||
targetplayer.PlayerName)) {
|
||||
SendMessage(player, "§cError removing previous custom flair!§r");
|
||||
return;
|
||||
}
|
||||
File file = new File("customflairs.txt");
|
||||
try {
|
||||
BufferedWriter bw;
|
||||
bw = new BufferedWriter(new FileWriter(file, true));
|
||||
bw.write(targetplayer.PlayerName + " " + targetplayer.Flair + "\n");
|
||||
bw.close();
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
PluginMain.LastException = e; // 2015.08.09.
|
||||
}
|
||||
SendMessage(player, "§bThe flair has been set. Player: "
|
||||
+ targetplayer.PlayerName + " Flair: " + flair + "§r");
|
||||
}
|
||||
|
@ -335,8 +321,13 @@ public class Commands implements CommandExecutor {
|
|||
"§cYou need to start the flair with a color code: &6(19s)&r");
|
||||
return;
|
||||
}
|
||||
SetPlayerFlair(player, MaybeOfflinePlayer.AddPlayerIfNeeded(args[2]),
|
||||
args[3]);
|
||||
Player p = Bukkit.getPlayer(args[2]);
|
||||
if (p == null) {
|
||||
SendMessage(player, "§cPLayer not found.&r");
|
||||
return;
|
||||
}
|
||||
SetPlayerFlair(player,
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(p.getUniqueId()), args[3]);
|
||||
}
|
||||
|
||||
private static void DoUpdatePlugin(Player player) { // 2015.08.10.
|
||||
|
@ -399,21 +390,7 @@ public class Commands implements CommandExecutor {
|
|||
SendMessage(player, "§cUsage: /u announce remove <index>");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
if (!PluginMain.RemoveLineFromFile("announcemessages.txt",
|
||||
Integer.parseInt(args[2]) + 1)) {
|
||||
SendMessage(player,
|
||||
"§cError removing announce message!§r");
|
||||
return;
|
||||
} else {
|
||||
PluginMain.AnnounceMessages.remove(Integer
|
||||
.parseInt(args[2]));
|
||||
SendMessage(player, "§bAnnouncement removed.§r");
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
SendMessage(player, "§cUsage: /u announce remove <index>§r");
|
||||
return;
|
||||
}
|
||||
PluginMain.AnnounceMessages.remove(Integer.parseInt(args[2]));
|
||||
break;
|
||||
case "settime":
|
||||
if (args.length < 3) {
|
||||
|
@ -527,6 +504,7 @@ public class Commands implements CommandExecutor {
|
|||
SendMessage(player, message);
|
||||
return;
|
||||
}
|
||||
//SendMessage(player, "Player " + p.getName() + " position saved/loaded.");s
|
||||
// SendMessage(player, "Player " + p.getName() +
|
||||
// " position saved/loaded.");s
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
package tk.sznp.thebuttonautoflair;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class MaybeOfflinePlayer { // 2015.08.08.
|
||||
public String PlayerName;
|
||||
|
@ -15,18 +18,64 @@ public class MaybeOfflinePlayer { // 2015.08.08.
|
|||
public boolean FlairRecognised; // 2015.08.10.
|
||||
public boolean CommentedOnReddit; // 2015.08.10.
|
||||
public boolean RPMode; // 2015.08.25.
|
||||
public boolean PressedF; //2015.09.18.
|
||||
public Location SavedLocation; //2015.10.02.
|
||||
public static HashMap<String, MaybeOfflinePlayer> AllPlayers = new HashMap<>(); // 2015.08.08.
|
||||
public boolean PressedF; // 2015.09.18.
|
||||
public Location SavedLocation; // 2015.10.02.
|
||||
|
||||
public static MaybeOfflinePlayer AddPlayerIfNeeded(String playername) {
|
||||
if (!AllPlayers.containsKey(playername)) {
|
||||
public UUID UUID;
|
||||
|
||||
public static HashMap<UUID, MaybeOfflinePlayer> AllPlayers = new HashMap<>();
|
||||
|
||||
public static MaybeOfflinePlayer AddPlayerIfNeeded(UUID uuid) {
|
||||
if (!AllPlayers.containsKey(uuid)) {
|
||||
MaybeOfflinePlayer player = new MaybeOfflinePlayer();
|
||||
player.PlayerName = playername;
|
||||
// player.PlayerName = playername;
|
||||
player.UUID = uuid;
|
||||
player.Flair = ""; // 2015.08.10.
|
||||
AllPlayers.put(playername, player);
|
||||
AllPlayers.put(uuid, player);
|
||||
return player;
|
||||
}
|
||||
return AllPlayers.get(playername);
|
||||
return AllPlayers.get(uuid);
|
||||
}
|
||||
|
||||
public static void Load(YamlConfiguration yc) {
|
||||
ConfigurationSection cs = yc.getConfigurationSection("players");
|
||||
for (String key : cs.getKeys(false)) {
|
||||
ConfigurationSection cs2 = cs.getConfigurationSection(key);
|
||||
MaybeOfflinePlayer mp = AddPlayerIfNeeded(java.util.UUID
|
||||
.fromString(cs2.getString("uuid")));
|
||||
mp.UserName = cs2.getString("username");
|
||||
mp.Flair = cs2.getString("flair");
|
||||
mp.AcceptedFlair = cs2.getBoolean("acceptedflair");
|
||||
mp.IgnoredFlair = cs2.getBoolean("ignoredflair");
|
||||
mp.FlairDecided = cs2.getBoolean("flairdecided");
|
||||
mp.FlairRecognised = cs2.getBoolean("flairrecognised");
|
||||
mp.CommentedOnReddit = cs2.getBoolean("commentedonreddit");
|
||||
mp.PlayerName = cs2.getString("playername");
|
||||
}
|
||||
}
|
||||
|
||||
public static void Save(YamlConfiguration yc) {
|
||||
ConfigurationSection cs = yc
|
||||
.createSection("players");
|
||||
for (MaybeOfflinePlayer mp : MaybeOfflinePlayer.AllPlayers.values()) {
|
||||
ConfigurationSection cs2 = cs.createSection(mp.UUID.toString());
|
||||
cs2.set("playername", mp.PlayerName);
|
||||
cs2.set("username", mp.UserName);
|
||||
cs2.set("flair", mp.Flair);
|
||||
cs2.set("acceptedflair", mp.AcceptedFlair);
|
||||
cs2.set("ignoredflair", mp.IgnoredFlair);
|
||||
cs2.set("flairdecided", mp.FlairDecided);
|
||||
cs2.set("flairrecognised", mp.FlairRecognised);
|
||||
cs2.set("commentedonreddit", mp.CommentedOnReddit);
|
||||
cs2.set("uuid", mp.UUID.toString());
|
||||
}
|
||||
}
|
||||
|
||||
public static MaybeOfflinePlayer GetFromName(String name)
|
||||
{
|
||||
for(MaybeOfflinePlayer mp : AllPlayers.values())
|
||||
if(mp.PlayerName.equalsIgnoreCase(name))
|
||||
return mp;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,8 +30,9 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
@EventHandler
|
||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
Player p = event.getPlayer();
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(p.getName()); // 2015.08.08.
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AllPlayers.get(p.getName()); // 2015.08.08.
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AddPlayerIfNeeded(p
|
||||
.getUniqueId());
|
||||
mp.PlayerName = p.getName(); // 2015.10.17. 0:58
|
||||
if (mp.CommentedOnReddit)
|
||||
PluginMain.AppendPlayerDisplayFlair(mp, p); // 2015.08.09.
|
||||
else { // 2015.07.20.
|
||||
|
@ -40,7 +41,9 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
p.sendMessage(message);
|
||||
message = "§bhttps://www.reddit.com/r/TheButtonMinecraft/comments/3d25do/§r";
|
||||
p.sendMessage(message);
|
||||
message = "§bIf you don't want the flair, type /u ignore to prevent this message on login.§r";
|
||||
message = "§6If you don't want the flair, type /u ignore to prevent this message on login.§r";
|
||||
p.sendMessage(message);
|
||||
message = "§bIf you already commented your name, then please wait a few seconds.§r";
|
||||
p.sendMessage(message);
|
||||
}
|
||||
}
|
||||
|
@ -97,13 +100,13 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
}
|
||||
|
||||
public static String NotificationSound; // 2015.08.14.
|
||||
public static float NotificationPitch; // 2015.08.14.
|
||||
public static double NotificationPitch; // 2015.08.14.
|
||||
|
||||
public static boolean ShowRPTag = false; // 2015.08.31.
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerChat(AsyncPlayerChatEvent event) {
|
||||
MaybeOfflinePlayer player = MaybeOfflinePlayer.AllPlayers.get(event
|
||||
MaybeOfflinePlayer player = MaybeOfflinePlayer.GetFromName(event
|
||||
.getPlayer().getName());
|
||||
String flair = player.Flair; // 2015.08.08.
|
||||
if (player.IgnoredFlair)
|
||||
|
@ -116,9 +119,9 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
p.playSound(p.getLocation(), Sound.ORB_PICKUP, 1.0f, 0.5f); // 2015.08.12.
|
||||
else
|
||||
p.playSound(p.getLocation(), NotificationSound, 1.0f,
|
||||
NotificationPitch); // 2015.08.14.
|
||||
(float) NotificationPitch); // 2015.08.14.
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AddPlayerIfNeeded(p
|
||||
.getName()); // 2015.08.17.
|
||||
.getUniqueId()); // 2015.08.17.
|
||||
if (mp.Flair.length() > 1)
|
||||
color = mp.Flair.substring(0, 2);
|
||||
}
|
||||
|
@ -146,8 +149,8 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
p.playSound(p.getLocation(), Sound.ORB_PICKUP, 1.0f, 0.5f); // 2015.08.12.
|
||||
else
|
||||
p.playSound(p.getLocation(), NotificationSound, 1.0f,
|
||||
NotificationPitch); // 2015.08.14.
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(p.getName()); // 2015.08.17.
|
||||
(float) NotificationPitch); // 2015.08.14.
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(p.getUniqueId()); // 2015.08.17.
|
||||
}
|
||||
if (p != null) {
|
||||
message = message.replaceAll(nwithoutformatting, n
|
||||
|
@ -223,7 +226,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
}
|
||||
}
|
||||
if (e.getMessage().equalsIgnoreCase("F")) {
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AllPlayers.get(e
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.GetFromName(e
|
||||
.getPlayer().getName());
|
||||
if (!mp.PressedF) {
|
||||
if (ActiveF)
|
||||
|
@ -235,7 +238,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
e.setMessage("§2" + e.getMessage());
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("tellraw @p [\"\"");
|
||||
sb.append("tellraw @a [\"\"");
|
||||
sb.append(",{\"text\":\"Hashtags:\"}");
|
||||
int index = -1;
|
||||
ArrayList<String> list = new ArrayList<String>();
|
||||
|
@ -282,7 +285,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
|||
FCount = 0;
|
||||
FTime = System.currentTimeMillis();
|
||||
for (Player p : PluginMain.GetPlayers()) {
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AllPlayers.get(p
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.GetFromName(p
|
||||
.getName());
|
||||
mp.PressedF = false;
|
||||
p.sendMessage("§bPress F to pay respects.§r");
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package tk.sznp.thebuttonautoflair;
|
||||
|
||||
import com.palmergames.bukkit.towny.object.Town;
|
||||
import com.palmergames.bukkit.towny.object.WorldCoord;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.json.JSONArray;
|
||||
|
@ -18,6 +19,7 @@ import java.util.ArrayList;
|
|||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||
// A user, which flair isn't obtainable:
|
||||
|
@ -92,7 +94,10 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
else
|
||||
ign = ign.substring(start, end);
|
||||
ign = ign.trim();
|
||||
if (HasIGFlair(ign))
|
||||
MaybeOfflinePlayer mp = MaybeOfflinePlayer.GetFromName(ign);
|
||||
if(mp==null)
|
||||
continue;
|
||||
if (HasIGFlair(mp.UUID))
|
||||
continue;
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
|
@ -114,7 +119,7 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
flairclass = flairdata[2];
|
||||
else
|
||||
flairclass = "unknown";
|
||||
SetFlair(ign, flair, flairclass, author);
|
||||
SetFlair(mp.UUID, flair, flairclass, author);
|
||||
}
|
||||
try {
|
||||
Thread.sleep(10000);
|
||||
|
@ -122,7 +127,7 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
Thread.currentThread().interrupt();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//System.out.println("Error!\n" + e);
|
||||
// System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
}
|
||||
}
|
||||
|
@ -145,14 +150,14 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
|
||||
public static Map<String, String> TownColors = new HashMap<String, String>(); // 2015.07.20.
|
||||
|
||||
public Boolean HasIGFlair(String playername) {
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AddPlayerIfNeeded(playername); // 2015.08.08.
|
||||
public Boolean HasIGFlair(UUID uuid) {
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AddPlayerIfNeeded(uuid); // 2015.08.08.
|
||||
return p.CommentedOnReddit; // 2015.08.10.
|
||||
}
|
||||
|
||||
public void SetFlair(String playername, String text, String flairclass,
|
||||
public void SetFlair(UUID uuid, String text, String flairclass,
|
||||
String username) {
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AddPlayerIfNeeded(playername); // 2015.08.08.
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer.AddPlayerIfNeeded(uuid); // 2015.08.08.
|
||||
String finalflair;
|
||||
p.FlairDecided = true;
|
||||
p.FlairRecognised = true;
|
||||
|
@ -198,18 +203,12 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
p.Flair = finalflair; // 2015.08.08.
|
||||
p.CommentedOnReddit = true; // 2015.08.10.
|
||||
p.UserName = username; // 2015.08.08.
|
||||
for (Player player : getServer().getOnlinePlayers()) // <-- 2015.08.08.
|
||||
{
|
||||
if (player.getName().equals(playername)) {
|
||||
AppendPlayerDisplayFlair(p, player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.out.println("Added flair for " + p.PlayerName);
|
||||
AppendPlayerDisplayFlair(p, Bukkit.getPlayer(uuid));
|
||||
}
|
||||
|
||||
public static String GetFlair(Player player) { // 2015.07.16.
|
||||
String flair = MaybeOfflinePlayer.AllPlayers.get(player.getName()).Flair; // 2015.08.08.
|
||||
// return flair==null ? "" : flair;
|
||||
String flair = MaybeOfflinePlayer.AllPlayers.get(player.getUniqueId()).Flair; // 2015.08.08.
|
||||
return flair; // 2015.08.10.
|
||||
}
|
||||
|
||||
|
@ -217,9 +216,9 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
Player p) // <-- 2015.08.09.
|
||||
{
|
||||
|
||||
if (MaybeOfflinePlayer.AllPlayers.get(p.getName()).IgnoredFlair)
|
||||
if (MaybeOfflinePlayer.AllPlayers.get(p.getUniqueId()).IgnoredFlair)
|
||||
return;
|
||||
if (MaybeOfflinePlayer.AllPlayers.get(p.getName()).AcceptedFlair) {
|
||||
if (MaybeOfflinePlayer.AllPlayers.get(p.getUniqueId()).AcceptedFlair) {
|
||||
if (!player.FlairDecided)
|
||||
p.sendMessage("§9Your flair type is unknown. Are you a non-presser or a can't press? (/u nonpresser or /u cantpress)§r"); // 2015.08.09.
|
||||
} else
|
||||
|
@ -233,15 +232,11 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
return "";
|
||||
}
|
||||
|
||||
public static String GetPlayerTown(Player player) { // 2015.07.20.
|
||||
try {
|
||||
Town town = WorldCoord.parseWorldCoord(player).getTownBlock()
|
||||
.getTown(); // TODO
|
||||
return town.getName();
|
||||
} catch (Exception e) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
/*
|
||||
* public static String GetPlayerTown(Player player) { // 2015.07.20. try {
|
||||
* Town town = WorldCoord.parseWorldCoord(player).getTownBlock() .getTown();
|
||||
* return town.getName(); } catch (Exception e) { return ""; } }
|
||||
*/
|
||||
|
||||
public static Collection<? extends Player> GetPlayers() {
|
||||
return Instance.getServer().getOnlinePlayers();
|
||||
|
@ -261,205 +256,53 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
|||
}
|
||||
System.out.println("Loading files for The Button Minecraft plugin..."); // 2015.08.09.
|
||||
try {
|
||||
File file = new File("flairsaccepted.txt");
|
||||
if (file.exists()) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(
|
||||
"flairsaccepted.txt"));
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
String name = line.replace("\n", "");
|
||||
// System.out.println("Name: " + name);
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(name).AcceptedFlair = true; // 2015.08.08.
|
||||
}
|
||||
br.close();
|
||||
}
|
||||
File file = new File("announcemessages.txt");
|
||||
if (file.exists())
|
||||
file.delete();
|
||||
file = new File("flairsaccepted.txt");
|
||||
if (file.exists())
|
||||
file.delete();
|
||||
file = new File("flairsignored.txt");
|
||||
if (file.exists())
|
||||
file.delete();
|
||||
file = new File("thebuttonmc.yml");
|
||||
if (file.exists()) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(
|
||||
"flairsignored.txt"));
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
String name = line.replace("\n", "");
|
||||
MaybeOfflinePlayer.AddPlayerIfNeeded(name).IgnoredFlair = true; // 2015.08.08.
|
||||
}
|
||||
br.close();
|
||||
}
|
||||
file = new File("autoflairconfig.txt");
|
||||
if (file.exists()) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(file));
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
String[] s = line.split(" ");
|
||||
if (s.length >= 2) // <-- 2015.08.10.
|
||||
TownColors.put(s[0], s[1]);
|
||||
}
|
||||
br.close();
|
||||
}
|
||||
file = new File("customflairs.txt"); // 2015.08.09.
|
||||
if (file.exists()) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(file));
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
String[] s = line.split(" ");
|
||||
if (s.length >= 2) // 2015.08.10.
|
||||
{
|
||||
MaybeOfflinePlayer p = MaybeOfflinePlayer
|
||||
.AddPlayerIfNeeded(s[0]);
|
||||
p.Flair = s[1]; // 2015.08.09.
|
||||
p.CommentedOnReddit = true; // Kind of
|
||||
p.FlairDecided = true;
|
||||
p.FlairRecognised = true;
|
||||
}
|
||||
}
|
||||
br.close();
|
||||
}
|
||||
file = new File("notificationsound.txt"); // 2015.08.09.
|
||||
if (file.exists()) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(file));
|
||||
String line = br.readLine();
|
||||
String[] split = line.split(" ");
|
||||
PlayerListener.NotificationSound = split[0];
|
||||
PlayerListener.NotificationPitch = Float.parseFloat(split[1]);
|
||||
br.close();
|
||||
}
|
||||
file = new File("announcemessages.txt"); // 2015.08.09.
|
||||
if (file.exists()) {
|
||||
BufferedReader br = new BufferedReader(new FileReader(file));
|
||||
String line;
|
||||
boolean first = true;
|
||||
while ((line = br.readLine()) != null) {
|
||||
if (first) {
|
||||
AnnounceTime = Integer.parseInt(line.trim());
|
||||
first = false;
|
||||
} else
|
||||
AnnounceMessages.add(line.trim());
|
||||
}
|
||||
br.close();
|
||||
} else {
|
||||
// Write time
|
||||
try {
|
||||
BufferedWriter bw;
|
||||
bw = new BufferedWriter(new FileWriter(file));
|
||||
bw.write(AnnounceTime + "\n");
|
||||
bw.close();
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
PluginMain.LastException = e; // 2015.08.09.
|
||||
}
|
||||
YamlConfiguration yc = new YamlConfiguration();
|
||||
yc.load(file);
|
||||
MaybeOfflinePlayer.Load(yc);
|
||||
PlayerListener.NotificationSound = yc
|
||||
.getString("notificationsound");
|
||||
PlayerListener.NotificationPitch = yc
|
||||
.getDouble("notificationpitch");
|
||||
AnnounceTime = yc.getInt("announcetime");
|
||||
AnnounceMessages.addAll(yc.getStringList("announcements"));
|
||||
}
|
||||
System.out.println("The Button Minecraft plugin loaded files!");
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
} catch (InvalidConfigurationException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
}
|
||||
}
|
||||
|
||||
public static void SaveFiles() // <-- 2015.08.09.
|
||||
{
|
||||
System.out.println("Saving files for The Button Minecraft plugin..."); // 2015.08.09.
|
||||
try {
|
||||
FileWriter fw;
|
||||
fw = new FileWriter("flairsaccepted.txt");
|
||||
fw.close();
|
||||
fw = new FileWriter("flairsignored.txt");
|
||||
fw.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
}
|
||||
try {
|
||||
File file = new File("flairsaccepted.txt");
|
||||
BufferedWriter bw = new BufferedWriter(new FileWriter(file, true));
|
||||
for (MaybeOfflinePlayer player : MaybeOfflinePlayer.AllPlayers
|
||||
.values()) // <-- 2015.08.08.
|
||||
{
|
||||
if (!player.AcceptedFlair)
|
||||
continue; // 2015.08.08.
|
||||
bw.write(player.PlayerName + "\n");
|
||||
}
|
||||
bw.close();
|
||||
file = new File("flairsignored.txt");
|
||||
bw = new BufferedWriter(new FileWriter(file, true));
|
||||
for (MaybeOfflinePlayer player : MaybeOfflinePlayer.AllPlayers
|
||||
.values()) // <-- 2015.08.08.
|
||||
{
|
||||
if (!player.IgnoredFlair)
|
||||
continue; // 2015.08.08.
|
||||
bw.write(player.PlayerName + "\n");
|
||||
}
|
||||
bw.close();
|
||||
File file = new File("thebuttonmc.yml");
|
||||
YamlConfiguration yc = new YamlConfiguration();
|
||||
MaybeOfflinePlayer.Save(yc);
|
||||
yc.set("notificationsound", PlayerListener.NotificationSound);
|
||||
yc.set("notificationpitch", PlayerListener.NotificationPitch);
|
||||
yc.set("announcetime", AnnounceTime);
|
||||
yc.set("announcements", AnnounceMessages);
|
||||
yc.save(file);
|
||||
System.out.println("The Button Minecraft plugin saved files!");
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean RemoveLineFromFile(String file, String line) { // 2015.08.09.
|
||||
File inputFile = new File(file);
|
||||
File tempFile = new File("_temp.txt");
|
||||
|
||||
if (!inputFile.exists())
|
||||
return true; // 2015.08.10.
|
||||
|
||||
try {
|
||||
BufferedReader reader = new BufferedReader(
|
||||
new FileReader(inputFile));
|
||||
BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));
|
||||
|
||||
String lineToRemove = line;
|
||||
String currentLine;
|
||||
|
||||
while ((currentLine = reader.readLine()) != null) {
|
||||
// trim newline when comparing with lineToRemove
|
||||
String trimmedLine = currentLine.trim();
|
||||
if (trimmedLine.split(" ")[0].equals(lineToRemove))
|
||||
continue; // 2015.08.17.
|
||||
writer.write(currentLine + System.getProperty("line.separator"));
|
||||
}
|
||||
writer.close();
|
||||
reader.close();
|
||||
if (!tempFile.renameTo(inputFile)) {
|
||||
inputFile.delete();
|
||||
return tempFile.renameTo(inputFile);
|
||||
} else
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean RemoveLineFromFile(String file, int index) {
|
||||
File inputFile = new File(file);
|
||||
File tempFile = new File("_temp2.txt");
|
||||
|
||||
if (!inputFile.exists())
|
||||
return true; // 2015.08.10.
|
||||
|
||||
try {
|
||||
BufferedReader reader = new BufferedReader(
|
||||
new FileReader(inputFile));
|
||||
BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));
|
||||
|
||||
String currentLine;
|
||||
int i = 0;
|
||||
|
||||
while ((currentLine = reader.readLine()) != null) {
|
||||
if (i++ == index)
|
||||
continue;
|
||||
writer.write(currentLine + System.getProperty("line.separator"));
|
||||
}
|
||||
writer.close();
|
||||
reader.close();
|
||||
if (!tempFile.renameTo(inputFile)) {
|
||||
inputFile.delete();
|
||||
return tempFile.renameTo(inputFile);
|
||||
} else
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error!\n" + e);
|
||||
LastException = e; // 2015.08.09.
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue