Added RP mode switcher commands (/rp /nrp)

- Added /rp and /nrp
- Added an indicator if the player speaks in RP or non-RP mode
This commit is contained in:
Norbi Peti 2015-08-25 16:28:33 +02:00
parent e8d02565cb
commit 321e94af6c
46 changed files with 360 additions and 158 deletions

View file

@ -1175,3 +1175,138 @@ user global configuration and to define the default location to store repositori
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2015-08-20 12:03:37.735 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.egit.ui 2 0 2015-08-20 12:04:30.018
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-08-20 12:04:30.041
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Norbi'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2015-08-21 17:16:18.124 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -data D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spigot plugin -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.egit.ui 2 0 2015-08-21 17:16:33.522
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-08-21 17:16:33.559
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Norbi'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2015-08-22 17:26:16.114 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -data D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spigot plugin -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.egit.ui 2 0 2015-08-22 17:26:38.355
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-08-22 17:26:38.382
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Norbi'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2015-08-23 17:16:55.833 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.osgi 4 0 2015-08-23 17:17:21.079
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Control.createHandle(Control.java:704)
at org.eclipse.swt.widgets.Composite.createHandle(Composite.java:305)
at org.eclipse.swt.widgets.Control.createWidget(Control.java:744)
at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:134)
at org.eclipse.swt.widgets.Control.<init>(Control.java:112)
at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:75)
at org.eclipse.swt.widgets.Composite.<init>(Composite.java:95)
at org.eclipse.ui.splash.BasicSplashHandler.getBundleProgressMonitor(BasicSplashHandler.java:159)
at org.eclipse.ui.splash.BasicSplashHandler.getContent(BasicSplashHandler.java:265)
at org.eclipse.ui.internal.splash.EclipseSplashHandler.init(EclipseSplashHandler.java:91)
at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:751)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbench.java:772)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:690)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:568)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
!SESSION 2015-08-25 11:30:37.334 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.egit.ui 2 0 2015-08-25 11:35:58.463
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-08-25 11:35:58.581
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Norbi'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

Binary file not shown.

Binary file not shown.

View file

@ -240,20 +240,20 @@
<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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;852&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;1166&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/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="_h4cFECuhEeWsptewEJl0pA" 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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;11035&quot; selectionTopPixel=&quot;150&quot;/>&#xD;&#xA;&lt;/editor>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;3883&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
</children>
<children xsi:type="basic:Part" xmi:id="_t4aYYD4IEeW_qLWp8BCh0w" 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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;4003&quot; selectionTopPixel=&quot;1233&quot;/>&#xD;&#xA;&lt;/editor>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;1645&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
@ -324,7 +324,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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view PRIMARY_SORT_FIELD=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot; categoryGroup=&quot;org.eclipse.ui.ide.severity&quot; markerContentGenerator=&quot;org.eclipse.ui.ide.problemsGenerator&quot; partName=&quot;Problems&quot;>&#xD;&#xA;&lt;expanded>&#xD;&#xA;&lt;category IMemento.internal.id=&quot;Errors&quot;/>&#xD;&#xA;&lt;category IMemento.internal.id=&quot;Warnings (1 item)&quot;/>&#xD;&#xA;&lt;category IMemento.internal.id=&quot;Warnings&quot;/>&#xD;&#xA;&lt;/expanded>&#xD;&#xA;&lt;columnWidths org.eclipse.ui.ide.locationField=&quot;90&quot; org.eclipse.ui.ide.markerType=&quot;90&quot; org.eclipse.ui.ide.pathField=&quot;120&quot; org.eclipse.ui.ide.resourceField=&quot;90&quot; org.eclipse.ui.ide.severityAndDescriptionField=&quot;300&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.resourceField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.pathField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.locationField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.markerType&quot;/>&#xD;&#xA;&lt;/view>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view PRIMARY_SORT_FIELD=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot; categoryGroup=&quot;org.eclipse.ui.ide.severity&quot; markerContentGenerator=&quot;org.eclipse.ui.ide.problemsGenerator&quot; partName=&quot;Problems&quot;>&#xD;&#xA;&lt;columnWidths org.eclipse.ui.ide.locationField=&quot;90&quot; org.eclipse.ui.ide.markerType=&quot;90&quot; org.eclipse.ui.ide.pathField=&quot;120&quot; org.eclipse.ui.ide.resourceField=&quot;90&quot; org.eclipse.ui.ide.severityAndDescriptionField=&quot;300&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.resourceField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.pathField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.locationField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.markerType&quot;/>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
<menus xmi:id="_dGEOYCr1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView">
@ -426,18 +426,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="_FWVXUEZMEeWD5J47i2JVBw" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FWV-YEZMEeWD5J47i2JVBw" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FWV-YUZMEeWD5J47i2JVBw" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FWV-YkZMEeWD5J47i2JVBw" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FWWlcEZMEeWD5J47i2JVBw" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FWWlcUZMEeWD5J47i2JVBw" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FWWlckZMEeWD5J47i2JVBw" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_FWXMgEZMEeWD5J47i2JVBw" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZLP8EZMEeWD5J47i2JVBw" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZL3AEZMEeWD5J47i2JVBw" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZL3AUZMEeWD5J47i2JVBw" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZL3AkZMEeWD5J47i2JVBw" elementId="additions"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8AcEgXEeWTr6fvpYMQbA" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8AcUgXEeWTr6fvpYMQbA" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8AckgXEeWTr6fvpYMQbA" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8ngEgXEeWTr6fvpYMQbA" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8ngUgXEeWTr6fvpYMQbA" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8ngkgXEeWTr6fvpYMQbA" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lo8ng0gXEeWTr6fvpYMQbA" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_lo91oEgXEeWTr6fvpYMQbA" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpCuIEgXEeWTr6fvpYMQbA" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpDVMEgXEeWTr6fvpYMQbA" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpDVMUgXEeWTr6fvpYMQbA" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpDVMkgXEeWTr6fvpYMQbA" elementId="additions"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6K2osSr0EeWsptewEJl0pA" elementId="additions" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -445,38 +445,38 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dIOxkCr1EeWsptewEJl0pA" elementId="adt.actionSet.avdManager">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GVz3UEZMEeWD5J47i2JVBw" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV0eYEZMEeWD5J47i2JVBw" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV0eYUZMEeWD5J47i2JVBw" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ls-y8EgXEeWTr6fvpYMQbA" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ls_aAEgXEeWTr6fvpYMQbA" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltABEEgXEeWTr6fvpYMQbA" 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="_GV0eYkZMEeWD5J47i2JVBw" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV0eY0ZMEeWD5J47i2JVBw" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltABEUgXEeWTr6fvpYMQbA" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltABEkgXEeWTr6fvpYMQbA" 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="_GV0eZEZMEeWD5J47i2JVBw" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV0eZUZMEeWD5J47i2JVBw" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltABE0gXEeWTr6fvpYMQbA" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltABFEgXEeWTr6fvpYMQbA" 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="_GV1FcEZMEeWD5J47i2JVBw" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1FcUZMEeWD5J47i2JVBw" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltAoIEgXEeWTr6fvpYMQbA" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltAoIUgXEeWTr6fvpYMQbA" 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="_GV1FckZMEeWD5J47i2JVBw" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1Fc0ZMEeWD5J47i2JVBw" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1FdEZMEeWD5J47i2JVBw" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1FdUZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltAoIkgXEeWTr6fvpYMQbA" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltAoI0gXEeWTr6fvpYMQbA" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltAoJEgXEeWTr6fvpYMQbA" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltAoJUgXEeWTr6fvpYMQbA" 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="_GV1sgEZMEeWD5J47i2JVBw" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1sgUZMEeWD5J47i2JVBw" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1sgkZMEeWD5J47i2JVBw" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1sg0ZMEeWD5J47i2JVBw" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltBPMEgXEeWTr6fvpYMQbA" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltBPMUgXEeWTr6fvpYMQbA" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltBPMkgXEeWTr6fvpYMQbA" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltBPM0gXEeWTr6fvpYMQbA" 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>
@ -486,20 +486,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="_GV1shEZMEeWD5J47i2JVBw" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1shUZMEeWD5J47i2JVBw" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV1shkZMEeWD5J47i2JVBw" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV2TkEZMEeWD5J47i2JVBw" elementId="org.eclipse.search.OpenSearchDialogPage"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltDEYEgXEeWTr6fvpYMQbA" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltDrcEgXEeWTr6fvpYMQbA" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltDrcUgXEeWTr6fvpYMQbA" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltDrckgXEeWTr6fvpYMQbA" 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="_Y9QTkEZMEeWD5J47i2JVBw" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Y9Q6oEZMEeWD5J47i2JVBw" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Y9RhsEZMEeWD5J47i2JVBw" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Y9SIwEZMEeWD5J47i2JVBw" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Y9SIwUZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Y9SIwkZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Y9SIw0ZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkAwEgXEeWTr6fvpYMQbA" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkn0EgXEeWTr6fvpYMQbA" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkn0UgXEeWTr6fvpYMQbA" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkn0kgXEeWTr6fvpYMQbA" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkn00gXEeWTr6fvpYMQbA" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkn1EgXEeWTr6fvpYMQbA" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_mlkn1UgXEeWTr6fvpYMQbA" 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>
@ -517,15 +517,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="_FZMeEEZMEeWD5J47i2JVBw" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZMeEUZMEeWD5J47i2JVBw" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZMeEkZMEeWD5J47i2JVBw" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZMeE0ZMEeWD5J47i2JVBw" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZMeFEZMEeWD5J47i2JVBw" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_FZNFIEZMEeWD5J47i2JVBw" 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="_GV2TkUZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV2TkkZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_GV2Tk0ZMEeWD5J47i2JVBw" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpDVM0gXEeWTr6fvpYMQbA" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpD8QEgXEeWTr6fvpYMQbA" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpD8QUgXEeWTr6fvpYMQbA" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpD8QkgXEeWTr6fvpYMQbA" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpD8Q0gXEeWTr6fvpYMQbA" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_lpEjUEgXEeWTr6fvpYMQbA" 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="_ltDrc0gXEeWTr6fvpYMQbA" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltDrdEgXEeWTr6fvpYMQbA" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ltESgEgXEeWTr6fvpYMQbA" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoSr0EeWsptewEJl0pA" elementId="group.editor" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -537,8 +537,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="_FZNsMEZMEeWD5J47i2JVBw" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_FZNsMUZMEeWD5J47i2JVBw" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpFKYEgXEeWTr6fvpYMQbA" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_lpFKYUgXEeWTr6fvpYMQbA" 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>

View file

@ -1,26 +1,25 @@
INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spigot plugin\.metadata\.plugins\org.eclipse.jdt.core
3045053200.index
3656756579.index
3089967703.index
2674037006.index
323251068.index
355369697.index
1934142626.index
3716007315.index
1934142626.index
1045485630.index
605290374.index
533208796.index
1337478678.index
1528680760.index
1737447423.index
1467104569.index
1737447423.index
4187470955.index
2535676096.index
1787405673.index
866502542.index
1017853417.index
115418958.index
3954291735.index
994834796.index
3604769962.index
994834796.index
3954291735.index
3045053200.index
1508644233.index
3656756579.index

View file

@ -1,2 +1,2 @@
#Cached timestamps
#Thu Jul 16 13:42:59 CEST 2015
#Thu Aug 20 23:57:56 CEST 2015

View file

@ -2,12 +2,13 @@
<section name="Workbench">
<section name="org.eclipse.ui.texteditor.FindReplaceDialog">
<item value="false" key="isRegEx"/>
<item value="Can" key="selection"/>
<item value="nwithout" key="selection"/>
<item value="false" key="casesensitive"/>
<item value="false" key="incremental"/>
<item value="true" key="wrap"/>
<item value="false" key="wholeword"/>
<list key="findhistory">
<item value="nwithout"/>
<item value="can"/>
<item value="cant"/>
<item value="non-pr"/>

View file

@ -18,4 +18,8 @@
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1439556351031_15" label="Window Working Set" name="Aggregate for window 1439556351031"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1439798561527_16" label="Window Working Set" name="Aggregate for window 1439798561526"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1440021873386_17" label="Window Working Set" name="Aggregate for window 1440021873385"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1440065060385_18" label="Window Working Set" name="Aggregate for window 1440065060385"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1440170190527_19" label="Window Working Set" name="Aggregate for window 1440170190526"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1440257194930_20" label="Window Working Set" name="Aggregate for window 1440257194930"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1440495345413_21" label="Window Working Set" name="Aggregate for window 1440495345413"/>
</workingSetManager>

Binary file not shown.

View file

@ -6,7 +6,6 @@
<classpathentry kind="lib" path="D:/Downloads/commons-io-2.4-bin/commons-io-2.4/commons-io-2.4.jar"/>
<classpathentry kind="lib" path="D:/Downloads/commons-io-2.4-bin/commons-io-2.4/commons-io-2.4-javadoc.jar"/>
<classpathentry kind="lib" path="D:/Downloads/Essentials/Essentials.jar"/>
<classpathentry kind="lib" path="D:/Downloads/Essentials/EssentialsChat.jar"/>
<classpathentry kind="lib" path="D:/Downloads/1404231200wpdm_Towny_Advanced/Towny.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View file

@ -5,3 +5,9 @@ commands:
u:
description: Auto-flair system. Accept or ignore flair.
usage: "&cUsage: /u accept|ignore|opme&r"
rp:
description: Enable RolePlay mode or say something in RP.
usage: "&cUsage: /rp [message]&r"
nrp:
description: Disable RolePlay mode or say something in non-RP.
usage: "&cUsage: /nrp [message]&r"

View file

@ -12,12 +12,14 @@ public class AnnouncerThread {
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
for (Player player : PluginMain.GetPlayers())
player.sendMessage(PluginMain.AnnounceMessages
.get(AnnounceMessageIndex));
AnnounceMessageIndex++;
if (AnnounceMessageIndex == PluginMain.AnnounceMessages.size())
AnnounceMessageIndex = 0;
if (PluginMain.AnnounceMessages.size() > AnnounceMessageIndex) {
for (Player player : PluginMain.GetPlayers())
player.sendMessage(PluginMain.AnnounceMessages
.get(AnnounceMessageIndex));
AnnounceMessageIndex++;
if (AnnounceMessageIndex == PluginMain.AnnounceMessages.size())
AnnounceMessageIndex = 0;
}
}
}
}

View file

@ -22,92 +22,135 @@ public class Commands implements CommandExecutor {
String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
if (args.length < 1)
return false;
MaybeOfflinePlayer p = MaybeOfflinePlayer.AllPlayers.get(player
.getName()); // 2015.08.08.
// if(!PluginMain.PlayerFlairs.containsKey(player.getName()))
if (!p.CommentedOnReddit && !args[0].toLowerCase().equals("admin")) {
player.sendMessage("§cError: You need to write your username to the reddit thread at /r/TheButtonMinecraft§r");
switch (cmd.getName()) {
case "u": {
if (args.length < 1)
return false;
MaybeOfflinePlayer p = MaybeOfflinePlayer.AllPlayers.get(player
.getName()); // 2015.08.08.
// if(!PluginMain.PlayerFlairs.containsKey(player.getName()))
if (!p.CommentedOnReddit
&& !args[0].toLowerCase().equals("admin")) {
player.sendMessage("§cError: You need to write your username to the reddit thread at /r/TheButtonMinecraft§r");
return true;
}
if (!p.FlairRecognised
&& !args[0].toLowerCase().equals("admin")) { // 2015.08.10.
player.sendMessage("Sorry, but your flair isn't recorded. Please ask a mod to set it for you.");
return true;
}
if (!p.FlairDecided && !args[0].toLowerCase().equals("admin")) { // 2015.08.19.
player.sendMessage("Please select between /u nonpresser and /u cantpress");
return true;
}
switch (args[0].toLowerCase()) // toLowerCase: 2015.08.09.
{
case "accept": {
if (p.IgnoredFlair)
p.IgnoredFlair = false; // 2015.08.08.
if (!p.AcceptedFlair) {
String flair = p.Flair; // 2015.08.08.
// PluginMain.AppendPlayerDisplayFlairFinal(player,
// flair);
// //2015.07.20.
p.AcceptedFlair = true; // 2015.08.08.
PluginMain.AppendPlayerDisplayFlair(p, player);
player.sendMessage("§bYour flair has been set:§r "
+ flair);
} else
player.sendMessage("§cYou already have this user's flair.§r");
break;
}
case "ignore": {
if (p.AcceptedFlair)
p.AcceptedFlair = false; // 2015.08.08.
if (!p.IgnoredFlair) {
p.IgnoredFlair = true;
// String flair=p.Flair; //2015.08.08.
// PluginMain.RemovePlayerDisplayFlairFinal(player,
// flair);
// //2015.07.20.
player.sendMessage("§bYou have ignored this request. You can still use /u accept though.§r");
} else
player.sendMessage("§cYou already ignored this request.§r");
break;
}
/*
* case "reload": //2015.07.20. DoReload(player); break;
*/
case "admin": // 2015.08.09.
DoAdmin(player, args);
break;
case "nonpresser": // 2015.08.09.
if (!p.AcceptedFlair) {
player.sendMessage("§cYou need to accept the flair first.§r");
break;
}
if (p.FlairDecided) {
player.sendMessage("§cYou have already set the flair type.§r");
break;
}
SetPlayerFlair(player, p, "§7(--s)§r");
break;
case "cantpress": // 2015.08.09.
if (!p.AcceptedFlair) {
player.sendMessage("§cYou need to accept the flair first.§r");
break;
}
if (p.FlairDecided) {
player.sendMessage("§cYou have already set the flair type or your flair type is known.§r");
break;
}
SetPlayerFlair(player, p, "§r(??s)§r");
break;
case "opme": // 2015.08.10.
player.sendMessage("It would be nice, isn't it?"); // Sometimes
// I'm
// bored
// too
break;
case "announce":
DoAnnounce(player, args);
break;
default:
return false;
}
return true;
}
if (!p.FlairRecognised && !args[0].toLowerCase().equals("admin")) { // 2015.08.10.
player.sendMessage("Sorry, but your flair isn't recorded. Please ask a mod to set it for you.");
case "rp":
if (args.length == 0) {
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = true;
player.sendMessage("§2RP mode on.§r");
} else {
boolean rpmode = MaybeOfflinePlayer
.AddPlayerIfNeeded(player.getName()).RPMode;
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = true;
String message = "";
for(String arg : args)
message+=arg+" ";
player.chat(message.substring(0, message.length()-1));
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = rpmode;
}
return true;
}
if (!p.FlairDecided && !args[0].toLowerCase().equals("admin")) { // 2015.08.19.
player.sendMessage("Please select between /u nonpresser and /u cantpress");
case "nrp":
if (args.length == 0) {
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = false;
player.sendMessage("§8RP mode off.§r");
} else {
boolean rpmode = MaybeOfflinePlayer
.AddPlayerIfNeeded(player.getName()).RPMode;
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = false;
String message = "";
for(String arg : args)
message+=arg+" ";
player.chat(message.substring(0, message.length()-1));
MaybeOfflinePlayer.AddPlayerIfNeeded(player.getName()).RPMode = rpmode;
}
return true;
}
switch (args[0].toLowerCase()) // toLowerCase: 2015.08.09.
{
case "accept": {
if (p.IgnoredFlair)
p.IgnoredFlair = false; // 2015.08.08.
if (!p.AcceptedFlair) {
String flair = p.Flair; // 2015.08.08.
// PluginMain.AppendPlayerDisplayFlairFinal(player, flair);
// //2015.07.20.
p.AcceptedFlair = true; // 2015.08.08.
PluginMain.AppendPlayerDisplayFlair(p, player);
player.sendMessage("§bYour flair has been set:§r " + flair);
} else
player.sendMessage("§cYou already have this user's flair.§r");
break;
}
case "ignore": {
if (p.AcceptedFlair)
p.AcceptedFlair = false; // 2015.08.08.
if (!p.IgnoredFlair) {
p.IgnoredFlair = true;
// String flair=p.Flair; //2015.08.08.
// PluginMain.RemovePlayerDisplayFlairFinal(player, flair);
// //2015.07.20.
player.sendMessage("§bYou have ignored this request. You can still use /u accept though.§r");
} else
player.sendMessage("§cYou already ignored this request.§r");
break;
}
/*
* case "reload": //2015.07.20. DoReload(player); break;
*/
case "admin": // 2015.08.09.
DoAdmin(player, args);
break;
case "nonpresser": // 2015.08.09.
if (!p.AcceptedFlair) {
player.sendMessage("§cYou need to accept the flair first.§r");
break;
}
if (p.FlairDecided) {
player.sendMessage("§cYou have already set the flair type.§r");
break;
}
SetPlayerFlair(player, p, "§7(--s)§r");
break;
case "cantpress": // 2015.08.09.
if (!p.AcceptedFlair) {
player.sendMessage("§cYou need to accept the flair first.§r");
break;
}
if (p.FlairDecided) {
player.sendMessage("§cYou have already set the flair type or your flair type is known.§r");
break;
}
SetPlayerFlair(player, p, "§r(??s)§r");
break;
case "opme": // 2015.08.10.
player.sendMessage("It would be nice, isn't it?"); // Sometimes
// I'm bored
// too
break;
case "announce":
DoAnnounce(player, args);
break;
default:
return false;
player.sendMessage("Unknown command: " + cmd.getName());
break;
}
return true;
}
/*
* if(args[0].toLowerCase()=="reload") DoReload(null); //2015.07.20.
@ -332,7 +375,7 @@ public class Commands implements CommandExecutor {
if (i != args.length - 1)
sb.append(" ");
}
String finalmessage=sb.toString().replace('&', '§');
String finalmessage = sb.toString().replace('&', '§');
PluginMain.AnnounceMessages.add(finalmessage);
bw.write(finalmessage);
bw.write(System.lineSeparator());

View file

@ -12,6 +12,7 @@ public class MaybeOfflinePlayer
public boolean FlairDecided; //2015.08.09.
public boolean FlairRecognised; //2015.08.10.
public boolean CommentedOnReddit; //2015.08.10.
public boolean RPMode; //2015.08.25.
public static HashMap<String, MaybeOfflinePlayer> AllPlayers=new HashMap<>(); //2015.08.08.
public static MaybeOfflinePlayer AddPlayerIfNeeded(String playername)
{

View file

@ -62,6 +62,8 @@ public class PlayerListener implements Listener { // 2015.07.16.
if (secretstuff >= 2)
pl.chat("Hey, " + p.getName() + "!");
}
mp.RPMode=true; //2015.08.25.
}
@EventHandler
@ -118,7 +120,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
+ nwithoutformatting.charAt(index + 1), "");
// System.out.println("Index: "+index+" "+"CharAt(index+1): "+nwithoutformatting.charAt(index+1));
// }
//System.out.println("nwithoutformatting: " + nwithoutformatting);
// System.out.println("nwithoutformatting: " + nwithoutformatting);
if (message.contains(nwithoutformatting)) {
p = Bukkit.getPlayer(nicknames.get(n));
if (NotificationSound == null)
@ -133,9 +135,12 @@ public class PlayerListener implements Listener { // 2015.07.16.
}
}
event.setFormat(event.getFormat().substring(0,
event.getFormat().indexOf(">"))
+ flair + "> " + message); // 2015.08.08.
event.setFormat("<"
+ (player.RPMode ? "§2[RP]§r" : "§8[non-RP]§r")
+ event.getFormat().substring(
event.getFormat().indexOf("<") + 1,
event.getFormat().indexOf(">")) + flair + "> "
+ message); // 2015.08.08.
}
private static Class<?> nmsChatSerializer = Reflection

View file

@ -28,12 +28,19 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
// Fired when plugin is first enabled
@Override
public void onEnable() {
System.out.println("The Button Minecraft server plugin by NorbiPeti");
System.out.println("The Button Minecraft server plugin");
getServer().getPluginManager().registerEvents(new PlayerListener(),
this);
this.getCommand("u").setExecutor(new Commands());
Commands comm = new Commands();
this.getCommand("u").setExecutor(comm);
this.getCommand("u").setUsage(
this.getCommand("u").getUsage().replace('&', '§'));
this.getCommand("rp").setExecutor(comm);
this.getCommand("rp").setUsage(
this.getCommand("rp").getUsage().replace('&', '§'));
this.getCommand("nrp").setExecutor(comm);
this.getCommand("nrp").setUsage(
this.getCommand("nrp").getUsage().replace('&', '§'));
Instance = this; // 2015.08.08.
Console = this.getServer().getConsoleSender(); // 2015.08.12.
LoadFiles(false); // 2015.08.09.