Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 37 additions & 37 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,41 @@ description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
- octocat
- octocat
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: dropdown
id: version
attributes:
label: Version
description: What version of our server are you running?
options:
- v1.0.0
validations:
required: false
- type: dropdown
id: browsers
attributes:
label: What Minecraft version are you running?
multiple: true
options:
- 1.20.x and above
- 1.19.x and below
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: "JavaScript"
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: dropdown
id: version
attributes:
label: Version
description: What version of our server are you running?
options:
- v1.0.0
validations:
required: false
- type: dropdown
id: browsers
attributes:
label: What Minecraft version are you running?
multiple: true
options:
- 1.20.x and above
- 1.19.x and below
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: "JavaScript"
28 changes: 14 additions & 14 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ description: Request a feature
title: "[Feature]: "
labels: ["enhancement"]
assignees:
- octocat
- octocat
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to request a feature
- type: textarea
id: feature
attributes:
label: What feature would you like to see?
description: Also tell us, what do you expect of this feature?
placeholder: Tell us what you want to see!
value: "A feature!"
validations:
required: true
- type: markdown
attributes:
value: |
Thanks for taking the time to request a feature
- type: textarea
id: feature
attributes:
label: What feature would you like to see?
description: Also tell us, what do you expect of this feature?
placeholder: Tell us what you want to see!
value: "A feature!"
validations:
required: true
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
42 changes: 21 additions & 21 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- name: Checkout repo
uses: actions/checkout@v3
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
60 changes: 30 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Release

on:
release:
types: [published]
release:
types: [published]

jobs:
package-and-upload:
name: Build and upload
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
run: npm install

- name: Bundle with NCC
run: npm run bundle

- name: Rename bundle
run: mv build/index.js build/server-${{ github.event.release.tag_name }}.mjs

- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: build/server-${{ github.event.release.tag_name }}.mjs text/javascript
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package-and-upload:
name: Build and upload
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
run: npm install

- name: Bundle with NCC
run: npm run bundle

- name: Rename bundle
run: mv build/index.js build/server-${{ github.event.release.tag_name }}.mjs

- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: build/server-${{ github.event.release.tag_name }}.mjs text/javascript
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"useTabs": true,
"singleQuote": false,
"endOfLine": "lf"
}
32 changes: 16 additions & 16 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Fixing bugs is our utmost priority.
<summary>I can't join the world!</summary>

> Arciera server is a bare-bones server and does not have a world. If you want to connect to a world, you need to use a plugin that provides a world. Any additional features beyond simply establishing a connection require a plugin.

</details>

## Contributing
Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Only the latest release version of the repository is officially supported. Keepi

If you discover any security vulnerabilities within this repository, we appreciate your responsible disclosure. Please report the vulnerability privately through one of the following channels:

- Via GitHub (Preferred Method): Submit a security advisory through the ["Security" tab of this repository](https://github.com/arciera/server/security). Create a new security advisory, provide a detailed description of the vulnerability, steps to reproduce, and potential impact. We will respond to your report promptly and work with you to address the issue.
- Via Email: Alternatively, you can also send a security advisory report directly to contact+arciera@zefir.pro. Please include all the necessary information as outlined above.
- Via GitHub (Preferred Method): Submit a security advisory through the ["Security" tab of this repository](https://github.com/arciera/server/security). Create a new security advisory, provide a detailed description of the vulnerability, steps to reproduce, and potential impact. We will respond to your report promptly and work with you to address the issue.
- Via Email: Alternatively, you can also send a security advisory report directly to contact+arciera@zefir.pro. Please include all the necessary information as outlined above.

### 3. Responsible Disclosure

Expand All @@ -21,7 +21,7 @@ We kindly request that you give us reasonable time to assess and address the rep

This security policy covers the code and components within this repository. Please refrain from attempting to access, modify, or compromise any external systems, accounts, or data beyond the scope of this repository.

---
---

By following these guidelines, you contribute to the overall security and stability of this repository. Your commitment to responsible disclosure is vital in creating a safer environment for all users.

Expand Down
15 changes: 15 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## TODO

### -> Login

#### State `CONFIGURATION`
- Send [registry data](https://wiki.vg/Protocol#Registry_Data) *nbt*
- Send feature flag packet (0x08) specifying no special features
```json
{
"id": 0x08,
"varint0": 0
}
```
- Receive client information (i.e. locale, view distance, allow server listing) [packet](https://wiki.vg/Protocol#Client_Information_.28configuration.29)
- Receive acknowledge finish configuration (switching state to play)
1 change: 1 addition & 0 deletions assets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
icon.png
Empty file added assets/.gitkeep
Empty file.
Loading