-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278 from Dans-Plugins/release/v1.7
Release/v1.7
- Loading branch information
Showing
24 changed files
with
520 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"uuid": "0a9fa342-3139-49d7-8acb-fcf4d9c1f0ef", | ||
"name": "DanTheTechMan", | ||
"level": 4, | ||
"bypassesPlayerLimit": false | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
echo "Running 'post-create.sh' script..." | ||
if [ -z "$(ls -A /testmcserver)" ]; then | ||
echo "Setting up server..." | ||
# Copy server JAR | ||
cp /testmcserver-build/spigot-1.20.4.jar /testmcserver/spigot-1.20.4.jar | ||
|
||
# Create plugins directory | ||
mkdir /testmcserver/plugins | ||
|
||
# Install Wild Pets | ||
cp /wp-build/target/WildPets-1.7.0-SNAPSHOT.jar /testmcserver/plugins | ||
|
||
# Copy config files | ||
cp /resources/ops.json /testmcserver | ||
|
||
# Accept EULA | ||
cd /testmcserver && echo "eula=true" > eula.txt | ||
else | ||
echo "Server is already set up." | ||
fi | ||
|
||
java -jar /testmcserver/spigot-1.20.4.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,64 @@ | ||
# Contributing To The Project | ||
## Thank You | ||
Thank you so much for being willing to contribute to this project! Please feel free to fork the repository and contact me on my [support discord server](https://discord.gg/xXtuAQ2). | ||
|
||
## Some Things To Know | ||
- We use ZenHub to manage repository issues. | ||
- Our highest priority issues will be put in the 'Next Release' pipeline. | ||
|
||
## Process | ||
- When you start working on something, move the task/improvement/bug into the 'In Progress' pipeline and assign it to yourself. | ||
- When you're finished with something, move the associated issues into the 'Done' pipeline and open a pull request and assign it to yourself. | ||
- When your pull request is reviewed and merged, close the associated issues. | ||
|
||
## Caveats | ||
- If you start working on something, please remember to assign yourself to the related issues so I know what is being worked on. | ||
- If you assign yourself an epic, assign yourself all tasks under that epic. | ||
- Only move an epic associated with one or more tasks into the 'In Progress' when all tasks left to do are assigned to you. | ||
|
||
## Bugs | ||
- When you encounter a bug that is in the code of the master branch, create an issue for it and assign it the 'Bug' label. | ||
# Contributing Document | ||
## Thank You | ||
Thank you for being interested in contributing to the project! It wouldn't be where it is today without the help of the community. This document will help you get started with contributing to the project. | ||
|
||
## Links | ||
- [Website](https://dansplugins.com) | ||
- [Discord](https://discord.gg/xXtuAQ2) | ||
|
||
## Requirements | ||
- A GitHub account | ||
- Git installed on your local machine | ||
- A text editor or IDE | ||
- A basic understanding of Java | ||
|
||
## Getting Started | ||
- If you don't already have a GitHub account, you can sign up for one [here](https://github.com/signup). | ||
- Fork the repository on GitHub by clicking the "Fork" button on the top right of the repository page. | ||
- Clone your fork of the repository to your local machine using `git clone https://www.github.com/<your-username>/Wild-Pets.git` | ||
- Open the project in your preferred text editor or IDE. | ||
- Try compiling the plugin using the following command: | ||
```bash | ||
gradlew build | ||
``` | ||
If you encounter any errors, please create an issue for it. | ||
|
||
## Identifying What To Work On | ||
### Issues | ||
Work items are tracked as GitHub issues. You can find a full list of issues [here](https://github.com/Dans-Plugins/Wild-Pets/issues). | ||
|
||
### Milestones | ||
Work items are organized into milestones, which represent a specific version of the plugin. You can find the milestones [here](https://github.com/Dans-Plugins/Wild-Pets/milestones). | ||
|
||
## Making Changes | ||
- Before you start working on something, make sure there is an issue for it. If there isn't, create one. | ||
- Make sure you are working on the "develop" branch. If you are not, switch to it using `git checkout develop`. | ||
- Create a new branch for your changes using `git checkout -b <branch-name>`. Make sure to name your branch something that is related to the issue you are working on. | ||
- Make your changes to the code. | ||
- Test your changes to make sure they work as expected. [More information on testing can be found here](#testing). | ||
- When you are finished, commit your changes using `git commit -m "Your commit message here"`. | ||
- Push your changes to your fork using `git push origin <branch-name>`. | ||
- Open a pull request on the original repository. Make sure to include a description of your changes and link the related issue using #(number). The develop branch should be used as the base branch. | ||
- Wait for your pull request to be reviewed. If there are any changes that need to be made, make them and push the changes to your fork. Your pull request will be updated automatically. | ||
- Once your pull request has been reviewed and approved, it will be merged into the develop branch. | ||
|
||
## Testing | ||
The unit tests can be executed by reopening the project in the provided dev container & running 'mvn test'. Additionally, you can test your changes by running the plugin on a Spigot server. | ||
|
||
### Running a Spigot server with Docker | ||
If you don't have Docker installed, you can download it [here](https://www.docker.com/products/docker-desktop). | ||
|
||
To run a Spigot server with Docker, you can use the following command: | ||
```bash | ||
docker compose up | ||
``` | ||
|
||
This will start a Spigot server on your local machine. You can connect to it using the IP `localhost` and the port `25565`. | ||
|
||
If you make changes to the code, you can deploy the latest changes by rebuilding the Docker image: | ||
```bash | ||
docker compose up --build | ||
``` | ||
|
||
## Questions | ||
If you have any questions about contributing to the project, feel free to ask in the Discord server. You can join the Discord server [here](https://discord.gg/xXtuAQ2). This is the best place to ask questions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/dansplugins/wildpets/exceptions/PetRecordNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dansplugins.wildpets.exceptions; | ||
|
||
public class PetRecordNotFoundException extends Exception { | ||
public PetRecordNotFoundException(String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.