mirror of
https://github.com/plexusorg/Module-NUSH.git
synced 2025-05-11 17:53:18 +00:00
Update for 1.2
This commit is contained in:
parent
67232c8b28
commit
3776424517
49
.idea/codeStyles/Plexus_Code_Style.xml
generated
Normal file
49
.idea/codeStyles/Plexus_Code_Style.xml
generated
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<code_scheme name="Plexus Code Style" version="1">
|
||||||
|
<JavaCodeStyleSettings>
|
||||||
|
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="20" />
|
||||||
|
<option name="IMPORT_LAYOUT_TABLE">
|
||||||
|
<value>
|
||||||
|
<package name="" withSubpackages="true" static="false" />
|
||||||
|
<package name="" withSubpackages="true" static="true" />
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</JavaCodeStyleSettings>
|
||||||
|
<JetCodeStyleSettings>
|
||||||
|
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
|
||||||
|
<value>
|
||||||
|
<package name="java.util" alias="false" withSubpackages="false" />
|
||||||
|
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
|
||||||
|
<package name="io.ktor" alias="false" withSubpackages="true" />
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
<option name="PACKAGES_IMPORT_LAYOUT">
|
||||||
|
<value>
|
||||||
|
<package name="" alias="false" withSubpackages="true" />
|
||||||
|
<package name="java" alias="false" withSubpackages="true" />
|
||||||
|
<package name="javax" alias="false" withSubpackages="true" />
|
||||||
|
<package name="kotlin" alias="false" withSubpackages="true" />
|
||||||
|
<package name="" alias="true" withSubpackages="true" />
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</JetCodeStyleSettings>
|
||||||
|
<codeStyleSettings language="JAVA">
|
||||||
|
<option name="BRACE_STYLE" value="2" />
|
||||||
|
<option name="CLASS_BRACE_STYLE" value="2" />
|
||||||
|
<option name="METHOD_BRACE_STYLE" value="2" />
|
||||||
|
<option name="LAMBDA_BRACE_STYLE" value="2" />
|
||||||
|
<option name="ELSE_ON_NEW_LINE" value="true" />
|
||||||
|
<option name="WHILE_ON_NEW_LINE" value="true" />
|
||||||
|
<option name="CATCH_ON_NEW_LINE" value="true" />
|
||||||
|
<option name="FINALLY_ON_NEW_LINE" value="true" />
|
||||||
|
<option name="SPACE_AFTER_TYPE_CAST" value="true" />
|
||||||
|
<option name="IF_BRACE_FORCE" value="3" />
|
||||||
|
<option name="DOWHILE_BRACE_FORCE" value="3" />
|
||||||
|
<option name="WHILE_BRACE_FORCE" value="3" />
|
||||||
|
<option name="FOR_BRACE_FORCE" value="3" />
|
||||||
|
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="0" />
|
||||||
|
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1" />
|
||||||
|
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
|
||||||
|
</codeStyleSettings>
|
||||||
|
</code_scheme>
|
||||||
|
</component>
|
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Plexus Code Style" />
|
||||||
|
</state>
|
||||||
|
</component>
|
@ -1,36 +1,24 @@
|
|||||||
For those who are wanting to contribute, we fully encourage doing so. There are a few rules we require following when
|
For those who are wanting to contribute, we fully encourage doing so. There are a few rules we require following when contributing however.
|
||||||
contributing however.
|
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
|
|
||||||
1. Make an issue and get feedback. It's important to know if your idea will be accepted before writing any code.
|
1. Make an issue and get feedback. It's important to know if your idea will be accepted before writing any code.
|
||||||
|
|
||||||
- If it is a feature request, describe the feature and be extremely specific.
|
- If it is a feature request, describe the feature and be extremely specific.
|
||||||
- If it is a bug report, ensure you include how to reproduce the bug and the expected outcome
|
- If it is a bug report, ensure you include how to reproduce the bug and the expected outcome
|
||||||
- If it is an enhancement, describe your proposed changes. Ensure you are extremely specific.
|
- If it is an enhancement, describe your proposed changes. Ensure you are extremely specific.
|
||||||
|
|
||||||
2. Fork this project
|
2. Fork this project
|
||||||
3. Create a new branch that describes the new feature, enhancement, or bug fix. For example, this is
|
3. Create a new branch that describes the new feature, enhancement, or bug fix. For example, this is good: `feature/add-xyz`. This is bad: `fix-this-lol`.
|
||||||
good: `feature/add-xyz`. This is bad: `fix-this-lol`.
|
|
||||||
4. Write the code that addresses your change.
|
4. Write the code that addresses your change.
|
||||||
|
- Keep in mind that it **must** be formatted correctly. If you are using IntelliJ, there is a `codeStyle.xml` file that tells IntelliJ how to format your code. Check this link for information on how to use the file: https://www.jetbrains.com/help/idea/configuring-code-style.html#import-export-schemes
|
||||||
- Keep in mind that it **must** be formatted correctly. If you are using IntelliJ, there is a `codeStyle.xml` file that
|
- If you are not using IntelliJ, that is fine. We use the Plexus Code Style (which is almost the same as Allman) so please format your code accordingly.
|
||||||
tells IntelliJ how to format your code. Check this link for information on how to use the
|
|
||||||
file: https://www.jetbrains.com/help/idea/configuring-code-style.html#import-export-schemes
|
|
||||||
- If you are not using IntelliJ, that is fine. We use Allman style so please format your code accordingly.
|
|
||||||
|
|
||||||
6. Push your changes to your new branch and make a PR based off of that branch.
|
6. Push your changes to your new branch and make a PR based off of that branch.
|
||||||
|
|
||||||
## Requirements for a PR
|
## Requirements for a PR
|
||||||
|
|
||||||
- The issue must be marked as approved
|
- The issue must be marked as approved
|
||||||
- It must only address each specific issue. Don't make one PR for multiple issues.
|
- It must only address each specific issue. Don't make one PR for multiple issues.
|
||||||
- Your PR must compile and work. If it does not compile or work, your PR will most likely be rejected.
|
- Your PR must compile and work. If it does not compile or work, your PR will most likely be rejected.
|
||||||
|
|
||||||
## Code requirements
|
## Code requirements
|
||||||
|
- Most importantly, your code must be efficient. Your pull request may be rejected if your code is deemed inefficient or sloppy.
|
||||||
- Most importantly, your code must be efficient. Your pull request may be rejected if your code is deemed inefficient or
|
|
||||||
sloppy.
|
|
||||||
- Do not repeat yourself. Create functions as needed if you're using large blocks of code over and over again.
|
- Do not repeat yourself. Create functions as needed if you're using large blocks of code over and over again.
|
||||||
- Do not use an excessive amount of commits when making your PR. It makes the master branch look messy.
|
- Do not use an excessive amount of commits when making your PR. It makes the master branch look messy.
|
||||||
- Your code must be consistent with Plex's codebase. If a function already exists, use it.
|
- Your code must be consistent with Plex's codebase. If a function already exists, use it.
|
@ -19,12 +19,12 @@ dependencies {
|
|||||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||||
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
|
||||||
compileOnly("dev.plex:server:1.1")
|
compileOnly("dev.plex:server:1.2-SNAPSHOT")
|
||||||
compileOnly("dev.plex:api:1.1")
|
compileOnly("dev.plex:api:1.2-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.plex"
|
group = "dev.plex"
|
||||||
version = "1.1"
|
version = "1.2-SNAPSHOT"
|
||||||
description = "Module-NUSH"
|
description = "Module-NUSH"
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: Module-NUSH
|
name: Module-NUSH
|
||||||
main: dev.plex.nush.NushModule
|
main: dev.plex.nush.NushModule
|
||||||
description: Stops raiding in its tracks.
|
description: Stops raiding in its tracks.
|
||||||
version: 1.1
|
version: 1.2-SNAPSHOT
|
Loading…
x
Reference in New Issue
Block a user