diff --git a/.github/workflows/main-source-branch.yml b/.github/workflows/main-source-branch.yml new file mode 100644 index 0000000..52d49db --- /dev/null +++ b/.github/workflows/main-source-branch.yml @@ -0,0 +1,21 @@ +name: Main source branch + +on: + pull_request: + branches: + - main + types: + - opened + - reopened + - synchronize + - edited + +jobs: + source-branch: + name: Source branch must be develop + runs-on: ubuntu-latest + steps: + - name: Verify pull request source + env: + HEAD_REF: ${{ github.head_ref }} + run: test "$HEAD_REF" = develop diff --git a/src/main/java/fr/korastrip/paperplugin/commands/group/GroupCommand.java b/src/main/java/fr/korastrip/paperplugin/commands/group/GroupCommand.java index f0deb02..4eec59f 100644 --- a/src/main/java/fr/korastrip/paperplugin/commands/group/GroupCommand.java +++ b/src/main/java/fr/korastrip/paperplugin/commands/group/GroupCommand.java @@ -20,6 +20,7 @@ public LiteralCommandNode create() { .then(new Invite(plugin).build()) .then(new Create(plugin).build()) .then(new Start(plugin).build()) + .then(new Stop(plugin).build()) .then(new Version(plugin).build()) .then(new Remove(plugin).build()) .then(new Remove(plugin).build()) diff --git a/src/main/java/fr/korastrip/paperplugin/commands/group/sub/Help.java b/src/main/java/fr/korastrip/paperplugin/commands/group/sub/Help.java index 94a88cc..36a95d2 100644 --- a/src/main/java/fr/korastrip/paperplugin/commands/group/sub/Help.java +++ b/src/main/java/fr/korastrip/paperplugin/commands/group/sub/Help.java @@ -37,6 +37,7 @@ public LiteralArgumentBuilder build() { new Invite(plugin), new Remove(plugin), new Start(plugin), + new Stop(plugin), new Players(plugin), new Version(plugin) );