Compare commits
30
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
325846b5c6 | ||
|
|
99e026e94f | ||
|
|
eee83ba1d4 | ||
|
|
b92f5983d8 | ||
|
|
8ba2c13ff9 | ||
|
|
b4824cd8c8 | ||
|
|
93b2e37453 | ||
|
|
a6548c5f89 | ||
|
|
65a2313746 | ||
|
|
ee291692f9 | ||
|
|
f8038376b7 | ||
|
|
63e91a2145 | ||
|
|
79d6ccb1c5 | ||
|
|
e1f6596cf7 | ||
|
|
025d0cc90b | ||
|
|
5d028d994f | ||
|
|
896a3aa890 | ||
|
|
178f61249c | ||
|
|
a1f0e46071 | ||
|
|
9ce16b3bd0 | ||
|
|
23daeded95 | ||
|
|
3ac5a3b320 | ||
|
|
6f71deaa47 | ||
|
|
3bbd732508 | ||
|
|
4021ca3985 | ||
|
|
c9fb8cd762 | ||
|
|
a19fcdd56f | ||
|
|
9ce2079c1d | ||
|
|
a338b1c4b6 | ||
|
|
859dc09793 |
No files matched your search
@@ -0,0 +1,2 @@
|
||||
#Thu May 09 16:57:21 CEST 2024
|
||||
gradle.version=8.5
|
||||
Binary file not shown.
Generated
+8
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
Generated
+28
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="17">
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.18.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.18.test" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.19.3.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.19.3.test" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.19.4.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.19.4.test" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.19.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.19.test" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.20.2.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.20.2.test" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.20.4.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.20.4.test" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.20.main" target="17" />
|
||||
<module name="FastCrystalsPlugin.fast-crystals-plugin-1.20.test" target="17" />
|
||||
<module name="v1_18" target="17" />
|
||||
<module name="v1_19" target="17" />
|
||||
<module name="v1_19_3" target="17" />
|
||||
<module name="v1_19_4" target="17" />
|
||||
<module name="v1_20" target="17" />
|
||||
<module name="v1_20_2" target="17" />
|
||||
<module name="v1_20_4" target="17" />
|
||||
</bytecodeTargetLevel>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DiscordProjectSettings">
|
||||
<option name="show" value="PROJECT_FILES" />
|
||||
<option name="description" value="" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+29
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleJvm" value="17" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/core" />
|
||||
<option value="$PROJECT_DIR$/shared" />
|
||||
<option value="$PROJECT_DIR$/v1_16" />
|
||||
<option value="$PROJECT_DIR$/v1_17" />
|
||||
<option value="$PROJECT_DIR$/v1_18" />
|
||||
<option value="$PROJECT_DIR$/v1_19" />
|
||||
<option value="$PROJECT_DIR$/v1_19_3" />
|
||||
<option value="$PROJECT_DIR$/v1_19_4" />
|
||||
<option value="$PROJECT_DIR$/v1_20" />
|
||||
<option value="$PROJECT_DIR$/v1_20_2" />
|
||||
<option value="$PROJECT_DIR$/v1_20_4" />
|
||||
<option value="$PROJECT_DIR$/v1_20_6" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+60
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="MavenRepo" />
|
||||
<option name="name" value="MavenRepo" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven3" />
|
||||
<option name="name" value="maven3" />
|
||||
<option name="url" value="https://papermc.io/repo/repository/maven-public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven2" />
|
||||
<option name="name" value="maven2" />
|
||||
<option name="url" value="https://repo.codemc.org/repository/nms/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven" />
|
||||
<option name="name" value="maven" />
|
||||
<option name="url" value="https://hub.spigotmc.org/nexus/content/repositories/snapshots/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven2" />
|
||||
<option name="name" value="maven2" />
|
||||
<option name="url" value="https://hub.spigotmc.org/nexus/content/groups/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven3" />
|
||||
<option name="name" value="maven3" />
|
||||
<option name="url" value="https://repo.papermc.io/repository/maven-public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="MavenLocal" />
|
||||
<option name="name" value="MavenLocal" />
|
||||
<option name="url" value="file:/$MAVEN_REPOSITORY$/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven" />
|
||||
<option name="name" value="maven" />
|
||||
<option name="url" value="https://oss.sonatype.org/content/repositories/snapshots" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven3" />
|
||||
<option name="name" value="maven3" />
|
||||
<option name="url" value="https://oss.sonatype.org/content/repositories/central" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="16" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
Generated
+124
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,174 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
@@ -0,0 +1,19 @@
|
||||
<p align="center">
|
||||
<img src="https://i.imgur.com/jOxHje1.png" width="300" height="180">
|
||||
</p>
|
||||
|
||||
# FastCrystals Plugin
|
||||
|
||||
FastCrystals is an addon that enables more dynamic Crystal PvP gameplay. It is a well-known plugin on strictly PvP servers, but also on other servers where Crystal PvP is present.
|
||||
|
||||
# Requirements
|
||||
|
||||
Currently we support only **1.16.4** to **1.20.4** versions
|
||||
|
||||
# Command presentation
|
||||
|
||||
Messages are configurable in the file **/Exyron-FastCrystals/config.yml**
|
||||
|
||||
# Contact
|
||||
|
||||
Click <a href="http://exyron.xyz/">here</a> to get more details and contact information!
|
||||
+13
-3
@@ -3,8 +3,18 @@ plugins {
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0-SNAPSHOT'
|
||||
version '1.0'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
subprojects {
|
||||
afterEvaluate {
|
||||
def isShadowPluginApplied = project.plugins.hasPlugin('com.github.johnrengelman.shadow')
|
||||
|
||||
if (isShadowPluginApplied) {
|
||||
tasks.named('shadowJar') {
|
||||
it.archiveFileName.set("${rootProject.name}-${rootProject.version}.jar")
|
||||
it.destinationDirectory.set(file("${project.rootDir}/build/libs"))
|
||||
it.relocate 'org.bstats', 'xyz.exyron.fastcrystals.bstats'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id "com.github.johnrengelman.shadow" version "8.1.1"
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'
|
||||
implementation 'org.bstats:bstats-bukkit:3.0.2'
|
||||
|
||||
implementation project (':shared')
|
||||
implementation project (':v1_16')
|
||||
implementation project (':v1_17')
|
||||
implementation project (':v1_18')
|
||||
implementation project (':v1_19')
|
||||
implementation project (':v1_19_3')
|
||||
implementation project (':v1_19_4')
|
||||
implementation project (':v1_20')
|
||||
implementation project (':v1_20_2')
|
||||
implementation project (':v1_20_4')
|
||||
//implementation project (':v1_20_6')
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.EnderCrystal;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public final class FastCrystalsPlugin extends JavaPlugin implements Listener {
|
||||
|
||||
private final FileConfiguration configuration = this.getConfig();
|
||||
private final boolean currentStatus = this.configuration.getBoolean("defaultStatus");
|
||||
|
||||
private final Set<UUID> playersUUID = new HashSet<>();
|
||||
private CrystalDamage crystalDamage;
|
||||
|
||||
private static final int BSTATS_ID = 21848;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
this.saveDefaultConfig();
|
||||
|
||||
new Metrics(this, BSTATS_ID);
|
||||
|
||||
this.crystalDamage = this.assignCrystalDamageFromServerVersion(Bukkit.getBukkitVersion().split("-")[0]);
|
||||
|
||||
String disableMessage = this.colorize(Objects.requireNonNull(this.configuration.getString("disableMessage")));
|
||||
String enableMessage = this.colorize(Objects.requireNonNull(this.configuration.getString("enableMessage")));
|
||||
|
||||
if (this.configuration.getBoolean("commandEnabled")) {
|
||||
Objects.requireNonNull(this.getCommand("fastcrystals")).setExecutor(((sender, command, label, args) -> {
|
||||
if (sender instanceof Player player) {
|
||||
UUID playerUniqueId = player.getUniqueId();
|
||||
|
||||
if (this.playersUUID.contains(playerUniqueId)) {
|
||||
player.sendMessage(disableMessage);
|
||||
this.playersUUID.remove(playerUniqueId);
|
||||
} else {
|
||||
player.sendMessage(enableMessage);
|
||||
this.playersUUID.add(playerUniqueId);
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(this.colorize("&cYou cannot run this command from Console."));
|
||||
}
|
||||
return false;
|
||||
}));
|
||||
}
|
||||
|
||||
this.getServer().getPluginManager().registerEvents(this, this);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
|
||||
if (event.getDamager() instanceof Player player && event.getEntity() instanceof EnderCrystal crystal && this.playersUUID.contains(player.getUniqueId())) {
|
||||
this.crystalDamage.handle(player, crystal);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
if (this.currentStatus) {
|
||||
this.playersUUID.add(event.getPlayer().getUniqueId());
|
||||
}
|
||||
}
|
||||
|
||||
private CrystalDamage assignCrystalDamageFromServerVersion(String version) {
|
||||
return switch (version) {
|
||||
//case "1.20.5", "1.20.6" -> new CrystalDamage_v1_20_6();
|
||||
case "1.20.4", "1.20.3" -> new CrystalDamage_v1_20_4();
|
||||
case "1.20", "1.20.1", "1.20.2" -> new CrystalDamage_v1_20_2();
|
||||
case "1.19.4" -> new CrystalDamage_v1_19_4();
|
||||
case "1.19.3" -> new CrystalDamage_v1_19_3();
|
||||
case "1.19.2", "1.19.1", "1.19" -> new CrystalDamage_v1_19();
|
||||
case "1.18.2", "1.18.1", "1.18" -> new CrystalDamage_v1_18();
|
||||
case "1.17.2", "1.17.1", "1.17" -> new CrystalDamage_v1_17();
|
||||
case "1.16.5", "1.16.4" -> new CrystalDamage_v1_16();
|
||||
|
||||
default -> {
|
||||
Bukkit.getPluginManager().disablePlugin(this);
|
||||
throw new IllegalStateException(
|
||||
"Plugin is disabling due to unsupported minecraft version (" + version + "). We currently support only 1.16.4+ versions."
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private static final Pattern HEX_PATTERN = Pattern.compile("#[A-Fa-f0-9]{6}");
|
||||
|
||||
private String colorize(String message) {
|
||||
Matcher matcher = HEX_PATTERN.matcher(message);
|
||||
StringBuilder result = new StringBuilder();
|
||||
|
||||
while (matcher.find()) {
|
||||
matcher.appendReplacement(result, ChatColor.of(matcher.group()).toString());
|
||||
}
|
||||
|
||||
matcher.appendTail(result);
|
||||
message = result.toString();
|
||||
|
||||
return ChatColor.translateAlternateColorCodes('&', message.replace(">>", "»").replace("<<", "«"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# ___ __ __ _ _ _ __ ___ _ __ __ __ _ _ ____
|
||||
# / _ \\ \/ /| | | || '__|/ _ \ | '_ \ \ \/ /| | | ||_ /
|
||||
# | __/ > < | |_| || | | (_) || | | | _ > < | |_| | / /
|
||||
# \___|/_/\_\ \__, ||_| \___/ |_| |_|(_)/_/\_\ \__, |/___|
|
||||
# |___/ |___/
|
||||
#
|
||||
|
||||
# Set this value to "false" if you don't want to be fast crystals automatically enabled on player join.
|
||||
defaultStatus: true
|
||||
|
||||
# Set this value to "false" if you don't want "/fastcrystals" command to be working. (it's going to be completely disabled)
|
||||
commandEnabled: true
|
||||
|
||||
enableMessage: "&7Fast crystal feature is now &aenabled&7."
|
||||
disableMessage: "&7Fast crystal feature is now &cdisabled&7."
|
||||
@@ -0,0 +1,8 @@
|
||||
name: Exyron-FastCrystals
|
||||
version: 1.0
|
||||
api-version: 1.16
|
||||
main: xyz.exyron.fastcrystals.FastCrystalsPlugin
|
||||
authors: [ Exyron.XYZ, KamlaX, KinczeK ]
|
||||
commands:
|
||||
fastcrystals:
|
||||
aliases: [ fastercrystals, fastcrystal, quickcrystal ]
|
||||
BIN
Binary file not shown.
Binary file not shown.
@@ -1,2 +0,0 @@
|
||||
enableMessage: "&aFastCrystals has been enabled!"
|
||||
disableMessage: "&cFastCrystals has been disabled!"
|
||||
@@ -1,7 +0,0 @@
|
||||
name: Exyron-FastCrystals
|
||||
version: 1.0
|
||||
api-version: 1.13
|
||||
main: xyz.exyron.fastcrystals.FastCrystalsPlugin
|
||||
authors: [Exyron.XYZ, KamlaX]
|
||||
commands:
|
||||
fastcrystals:
|
||||
Binary file not shown.
@@ -1,2 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
|
||||
-64
@@ -1,64 +0,0 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import net.minecraft.server.v1_16_R2.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_16_R2.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EnderCrystal;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public final class FastCrystalsPlugin extends JavaPlugin implements Listener {
|
||||
private final Set<UUID> playersUUID = new HashSet<>();
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
this.saveDefaultConfig();
|
||||
String enableMessage = colorize(Objects.requireNonNull(this.getConfig().getString("enableMessage")));
|
||||
String disableMessage = colorize(Objects.requireNonNull(this.getConfig().getString("disableMessage")));
|
||||
Objects.requireNonNull(getCommand("fastcrystals")).setExecutor(((sender, command, label, args) -> {
|
||||
if (sender instanceof Player player) {
|
||||
if (this.playersUUID.contains(player.getUniqueId())) {
|
||||
player.sendMessage(disableMessage);
|
||||
this.playersUUID.remove(player.getUniqueId());
|
||||
} else {
|
||||
player.sendMessage(enableMessage);
|
||||
this.playersUUID.add(player.getUniqueId());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}));
|
||||
this.getServer().getPluginManager().registerEvents(this, this);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void event(EntityDamageByEntityEvent event) {
|
||||
if (event.getDamager() instanceof Player player && event.getEntity() instanceof EnderCrystal && this.playersUUID.contains(player.getUniqueId()))
|
||||
((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutEntityDestroy(event.getEntity().getEntityId()));
|
||||
}
|
||||
|
||||
private final Pattern HEX_PATTERN = Pattern.compile("#[A-Fa-f0-9]{6}");
|
||||
|
||||
private String colorize(String message) {
|
||||
Matcher matcher = HEX_PATTERN.matcher(message);
|
||||
StringBuilder result = new StringBuilder();
|
||||
while (matcher.find()) {
|
||||
matcher.appendReplacement(result, ChatColor.of(matcher.group()).toString());
|
||||
}
|
||||
matcher.appendTail(result);
|
||||
message = result.toString();
|
||||
return ChatColor.translateAlternateColorCodes('&', message
|
||||
.replace(">>", "\u00BB")
|
||||
.replace("<<", "\u00AB"));
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
enableMessage: "&aFastCrystals has been enabled!"
|
||||
disableMessage: "&cFastCrystals has been disabled!"
|
||||
@@ -1,7 +0,0 @@
|
||||
name: Exyron-FastCrystals
|
||||
version: 1.0
|
||||
api-version: 1.13
|
||||
main: xyz.exyron.fastcrystals.FastCrystalsPlugin
|
||||
authors: [Exyron.XYZ, KamlaX]
|
||||
commands:
|
||||
fastcrystals:
|
||||
BIN
Binary file not shown.
@@ -1,2 +0,0 @@
|
||||
enableMessage: "&aFastCrystals has been enabled!"
|
||||
disableMessage: "&cFastCrystals has been disabled!"
|
||||
@@ -1,7 +0,0 @@
|
||||
name: Exyron-FastCrystals
|
||||
version: 1.0
|
||||
api-version: 1.13
|
||||
main: xyz.exyron.fastcrystals.FastCrystalsPlugin
|
||||
authors: [Exyron.XYZ, KamlaX]
|
||||
commands:
|
||||
fastcrystals:
|
||||
Binary file not shown.
@@ -1,2 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
|
||||
-64
@@ -1,64 +0,0 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_18_R2.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EnderCrystal;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public final class FastCrystalsPlugin extends JavaPlugin implements Listener {
|
||||
private final Set<UUID> playersUUID = new HashSet<>();
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
saveDefaultConfig();
|
||||
String enableMessage = colorize(Objects.requireNonNull(this.getConfig().getString("enableMessage")));
|
||||
String disableMessage = colorize(Objects.requireNonNull(this.getConfig().getString("disableMessage")));
|
||||
Objects.requireNonNull(getCommand("fastcrystals")).setExecutor(((sender, command, label, args) -> {
|
||||
if (sender instanceof Player player) {
|
||||
if (this.playersUUID.contains(player.getUniqueId())) {
|
||||
player.sendMessage(disableMessage);
|
||||
this.playersUUID.remove(player.getUniqueId());
|
||||
} else {
|
||||
player.sendMessage(enableMessage);
|
||||
this.playersUUID.add(player.getUniqueId());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}));
|
||||
getServer().getPluginManager().registerEvents(this, this);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void event(EntityDamageByEntityEvent event) {
|
||||
if (event.getDamager() instanceof Player player && event.getEntity() instanceof EnderCrystal && this.playersUUID.contains(player.getUniqueId()))
|
||||
((CraftPlayer) player).getHandle().b.a(new PacketPlayOutEntityDestroy(event.getEntity().getEntityId()));
|
||||
}
|
||||
|
||||
private final Pattern HEX_PATTERN = Pattern.compile("#[A-Fa-f0-9]{6}");
|
||||
|
||||
private String colorize(String message) {
|
||||
Matcher matcher = HEX_PATTERN.matcher(message);
|
||||
StringBuilder result = new StringBuilder();
|
||||
while (matcher.find()) {
|
||||
matcher.appendReplacement(result, ChatColor.of(matcher.group()).toString());
|
||||
}
|
||||
matcher.appendTail(result);
|
||||
message = result.toString();
|
||||
return ChatColor.translateAlternateColorCodes('&', message
|
||||
.replace(">>", "\u00BB")
|
||||
.replace("<<", "\u00AB"));
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
enableMessage: "&aFastCrystals has been enabled!"
|
||||
disableMessage: "&cFastCrystals has been disabled!"
|
||||
@@ -1,7 +0,0 @@
|
||||
name: Exyron-FastCrystals
|
||||
version: 1.0
|
||||
api-version: 1.13
|
||||
main: xyz.exyron.fastcrystals.FastCrystalsPlugin
|
||||
authors: [Exyron.XYZ, KamlaX]
|
||||
commands:
|
||||
fastcrystals:
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
+18
-3
@@ -1,4 +1,19 @@
|
||||
rootProject.name = 'FastCrystalsPlugin'
|
||||
include 'fast-crystals-plugin-1.16'
|
||||
include 'fast-crystals-plugin-1.18'
|
||||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version("0.5.0")
|
||||
}
|
||||
|
||||
rootProject.name = 'FastCrystalsPlugin'
|
||||
|
||||
include 'core'
|
||||
include 'shared'
|
||||
include 'v1_16'
|
||||
include 'v1_17'
|
||||
include 'v1_18'
|
||||
include 'v1_19'
|
||||
include 'v1_19_3'
|
||||
include 'v1_19_4'
|
||||
include 'v1_20'
|
||||
include 'v1_20_2'
|
||||
include 'v1_20_4'
|
||||
include 'v1_20_6'
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public interface CrystalDamage {
|
||||
|
||||
void handle(Player damager, Entity crystal);
|
||||
|
||||
}
|
||||
@@ -11,5 +11,7 @@ repositories {
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
}
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.16.2-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project(':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.server.v1_16_R3.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_16 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().playerConnection.sendPacket(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
}
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project(':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_17 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().b.sendPacket(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -6,22 +6,19 @@ group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
}
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven {
|
||||
name = 'papermc-repo'
|
||||
url = 'https://papermc.io/repo/repository/maven-public/'
|
||||
}
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot:1.18.2-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_18_R2.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_18 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().b.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.19-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_19 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().b.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.19.3-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_19_3 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().b.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.19.4-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_19_R3.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_19_4 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().b.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.20-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_20 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().c.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.20.2-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_20_R2.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_20_2 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().c.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.20.4-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_20_4 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().c.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'xyz.exyron.fastcrystals'
|
||||
version '1.0'
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.codemc.org/repository/nms/' }
|
||||
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.20.6-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT'
|
||||
|
||||
compileOnly project (':shared')
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package xyz.exyron.fastcrystals;
|
||||
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy;
|
||||
import org.bukkit.craftbukkit.v1_20_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CrystalDamage_v1_20_6 implements CrystalDamage {
|
||||
|
||||
@Override
|
||||
public void handle(Player damager, Entity crystal) {
|
||||
((CraftPlayer) damager).getHandle().c.a(new PacketPlayOutEntityDestroy(crystal.getEntityId()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user