Skip to content

Commit d69d7c7

Browse files
committed
Happy Birthday Apple
Signed-off-by: Ashcon Partovi <ashcon@partovi.net>
0 parents  commit d69d7c7

File tree

838 files changed

+72932
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

838 files changed

+72932
-0
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# List of Github usernames that must approve pull requests.
2+
# https://help.github.com/articles/about-codeowners/
3+
4+
* @Electroid

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build
2+
on:
3+
push:
4+
paths:
5+
- src/
6+
- pom.xml
7+
pull_request:
8+
paths:
9+
- src/
10+
- pom.xml
11+
schedule:
12+
- cron: 0 1 * * *
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v1
19+
- name: setup
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: install
24+
if: github.ref == 'refs/heads/master'
25+
run: mvn -U deploy -s settings.xml
26+
env:
27+
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
28+
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
29+
- name: version
30+
run: |
31+
mvn versions:set \
32+
-DnewVersion=1.8-SNAPSHOT-${GITHUB_SHA::8}
33+
- name: install
34+
if: github.ref != 'refs/heads/master'
35+
run: mvn -U install
36+
- name: deploy
37+
if: success() && github.ref == 'refs/heads/master'
38+
run: |
39+
mvn compile jib:build \
40+
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \
41+
-Djib.to.auth.password=${{ secrets.DOCKER_PASSWORD }} \
42+
-Djib.to.image=${{ secrets.DOCKER_IMAGE }} \
43+
-Djib.to.tags=latest,$(date +%F)

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Maven generated files
2+
target
3+
*.jar
4+
dependency-reduced-pom.xml
5+
6+
# Mac OSX generated files
7+
.DS_Store
8+
9+
# Eclipse generated files
10+
.classpath
11+
.project
12+
.settings
13+
14+
# IntelliJ IDEA
15+
.idea
16+
*.iml
17+
18+
# Vim generated files
19+
*~
20+
*.swp
21+
22+
# XCode 3 and 4 generated files
23+
*.mode1
24+
*.mode1v3
25+
*.mode2v3
26+
*.perspective
27+
*.perspectivev3
28+
*.pbxuser
29+
*.xcworkspace
30+
xcuserdata
31+
*class
32+
33+
# CrowdIn files
34+
Commons/core/src/main/i18n/translations/*
35+
36+
# Minecraft generated files
37+
/server/
38+
maps.zip

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
PGM
2+
===
3+
4+
The original PvP Game Manager for Minecraft.
5+
6+
Overview
7+
--------
8+
9+
Back in 2011, a Minecraft map creator named dewtroid released a PvP map called [Airship Battle.](https://www.youtube.com/watch?v=3dLo8ytygWs) At the time, there were no comprehensive Bukkit plugins to manage PvP matches, so everything was done manually. Then, a young developer named [Apple](https://github.com/tonybruess) came along and created the first version of "PGM" (also known as **P**vP **G**ame **M**anager) to automate the process of playing PvP matches. Later, he would establish the popular Minecraft server network, `Overcast Network` (also know as `oc.tc`). After the network went through a cycle of hyper-growth, stabilization, and eventual closure in 2016, its [plugins](https://github.com/OvercastNetwork/ProjectAres) were open sourced for the community to enjoy.
10+
11+
This project is an earlier fork of those plugins with three major changes: 1) using [Minecraft 1.8](https://github.com/Electroid/SportPaper), the biggest ask by the community, 2) no backend, website, or API to make server hosting more cost effective, and 3) no dependency injection to make contributing more accesible.
12+
13+
Documents
14+
---------
15+
16+
1. [`LICENSE`](LICENSE) - any forks or modifications to this project must be kept public.
17+
2. [`CODE_OF_CONDUCT`](docs/CODE_OF_CONDUCT.md) - guidelines that contributors and server owners must agree to.
18+
3. [`RUNNING`](docs/RUNNING.md) - how to host and run a PGM server.
19+
4. [`CONTRIBUTING`](docs/CONTRIBUTING.md) - how to build, compile, and submit changes to the project.
20+
21+
22+
Governance
23+
----------
24+
25+
The lead maintainer of this project is [Electroid](https://github.com/Electroid), a former administrator and software developer at `oc.tc`. As the project grows, we'll scale the governance model to meet those needs. If you're interested in donating to the project or running PGM commercially, contact him for more information.

docs/CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces **and community servers**, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the [project lead](https://github.com/Electroid). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

docs/CONTRIBUTING.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Contributing
2+
===========
3+
4+
We're really excited to have you join the community of contributors for the PGM project! Before we jump into the nitty-gritty details, let's go over the design choices and philisophy of the project so we're all on the same page.
5+
6+
Philosophy
7+
----------
8+
9+
1. [**Simplicity**](https://thevaluable.dev/kiss-principle-explained/)
10+
11+
The most important principle is maintaing simplicity, both for contributors and players. When thinking about your changes, make sure your code is easy to comprehend, not overly complex or abstracted, and doesn't include unnecessary third-party libraries. If your changes affect gameplay, make sure players can easily adapt to them.
12+
13+
2. [**Collaboration**](https://deepsource.io/blog/code-review-best-practices/)
14+
15+
You can save a good amount of time during code review if you share your ideas and gameplan *before* writing any code. We encourage submitting [draft](https://github.blog/2019-02-14-introducing-draft-pull-requests/) pull requests, even if your code doesn't compile or work, to get feedback on the design of your changes. Break up your changes into smaller, incremental pull requests with a "soft" max of 200 lines changed.
16+
17+
3. [**Out-of-the-box**](https://www.smithsonianmag.com/arts-culture/how-steve-jobs-love-of-simplicity-fueled-a-design-revolution-23868877/)
18+
19+
Players, contributors, and server owners should be able to enjoy PGM "out-of-the-box" without any extra plugins or requirments. No website, database, or external API should be required to run a server on your local machine.
20+
21+
Dependencies
22+
------------
23+
You'll need to make sure your machine has the following dependencies before compiling PGM. The instructions will vary by operation system, so click on each link to read the detailed steps.
24+
25+
* [Java 8](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html) - the Java Virtual Machine required to run the Minecraft server and PGM plugin.
26+
* [Maven](https://maven.apache.org/install.html) - a compilation tool to bundle all the Java dependencies into `.jar` file
27+
* [Docker](https://docs.docker.com/v17.09/engine/installation/) *(optional)* - a container tool to quickly and easily run your changes.
28+
29+
Steps
30+
---------
31+
32+
1. Clone the repository on your machine.
33+
34+
```bash
35+
git clone git@github.com:Electroid/PGM.git
36+
```
37+
38+
2. Make your changes (leauge system, anyone?)
39+
40+
3. Run the code formatter, we follow Google's [code style.](https://google.github.io/styleguide/javaguide.html)
41+
42+
```bash
43+
mvn com.coveo:fmt-maven-plugin:format
44+
```
45+
46+
4. Use one of two options to compile a new version with your changes.
47+
```bash
48+
mvn clean install # creates .jar in target/ which you would copy to your plugins folder
49+
mvn clean compile jib:dockerBuild # builds a Docker container named "pgm" which is a full server
50+
```
51+
52+
5. Commit your changes, using the `-s` tag to [certify](https://developercertificate.org) the origin of your code.
53+
```bash
54+
git commit -s -m "A short description of your changes"
55+
```
56+
57+
6. Submit your pull request for review and feedback.

docs/RUNNING.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Running a Server
2+
================
3+
4+
Now that you've read about the project, it's time to set up a server to play with your friends! We'll walk through the "traditional" way of running a PGM server, similar to how you would run a Bukkit server. If you want to learn more about running servers, please see some additional documentation [here.](https://bukkit.gamepedia.com/Setting_up_a_server)
5+
6+
Installation
7+
------------
8+
9+
1. Select the folder where you want to store your server files.
10+
```bash
11+
cd /path/to/folder
12+
```
13+
14+
2. Download the latest version of [SportPaper](https://github.com/Electroid/SportPaper), a fork of the Minecraft 1.8 server.
15+
```bash
16+
curl https://pkg.ashcon.app/sportpaper -o sportpaper.jar
17+
curl https://pkg.ashcon.app/sportpaper-config -o sportpaper.yml
18+
```
19+
20+
3. Create a plugins folder and download the latest version of PGM.
21+
```bash
22+
mkdir plugins
23+
curl https://pkg.ashcon.app/pgm -o plugins/pgm.jar
24+
```
25+
26+
4. Add your maps to the maps folder, if you don't have any, skip this step.
27+
```bash
28+
cp -r /path/to/map-0/ plugins/PGM/maps/map-0
29+
```
30+
31+
5. Run the server and enjoy playing PvP games with your friends!
32+
```bash
33+
java -jar sportpaper.jar nogui
34+
```

maps/Airship Battle/level.dat

407 Bytes
Binary file not shown.

maps/Airship Battle/map.xml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0"?>
2+
<map proto="1.0.0">
3+
<name>Airship Battle</name>
4+
<version>1.0.4</version>
5+
<objective>Leak lava from the enemy's obsidian core into the void.</objective>
6+
<authors>
7+
<author uuid="30e27366-0b14-4076-8f55-0819ece49ce3">dewtroid</author>
8+
</authors>
9+
<filters>
10+
<filter name="deny-dispenser">
11+
<not>
12+
<block>dispenser</block>
13+
</not>
14+
</filter>
15+
<filter name="deny-obsidian">
16+
<not>
17+
<block>obsidian</block>
18+
</not>
19+
</filter>
20+
</filters>
21+
<teams>
22+
<team color="blue" max="50">Blue Team</team>
23+
<team color="dark red" max="50">Red Team</team>
24+
</teams>
25+
<regions>
26+
<apply block-place="deny-dispenser" message="Dispensers are disabled on this map!">
27+
<rectangle min="-oo,-oo" max="oo,oo"/>
28+
</apply>
29+
<apply leave="deny-all" message="Don't exit the playing field!">
30+
<rectangle min="-102,-4" max="102,125"/> <!-- Main area -->
31+
<rectangle min="-36,-16" max="13,-2"/> <!-- Area between spawn tunnels -->
32+
</apply>
33+
<apply block="deny-all" message="Don't edit blocks outside the playing field!">
34+
<negative>
35+
<union name="map">
36+
<rectangle min="-100,-2" max="100,123"/> <!-- Main area -->
37+
<rectangle min="-36,-14" max="13,-2"/> <!-- Area between spawn tunnels -->
38+
</union>
39+
</negative>
40+
</apply>
41+
<apply block-break="deny-obsidian" message="You may not break obsidian outside the core area!">
42+
<complement>
43+
<region name="map"/>
44+
<cuboid min="13,85,23" max="18,92,30"/>
45+
<cuboid min="-41,85,23" max="-36,92,30"/>
46+
</complement>
47+
</apply>
48+
</regions>
49+
<itemremove>
50+
<item>shears</item>
51+
<item>obsidian</item>
52+
<item>gold block</item>
53+
<item>dispenser</item>
54+
</itemremove>
55+
<spawns>
56+
<spawn team="blue" yaw="270">
57+
<cuboid min="4.5,91,-34" max="7.5,91,-31"/>
58+
</spawn>
59+
<spawn team="red" yaw="90">
60+
<cuboid min="-30.5,91,-34" max="-27.5,91,-31"/>
61+
</spawn>
62+
<default yaw="180">
63+
<cylinder base="-11.5,90,-33" radius="3" height="0"/>
64+
</default>
65+
</spawns>
66+
<cores material="obsidian" leak="10">
67+
<core team="blue">
68+
<cuboid min="13,85,23" max="18,92,30"/>
69+
</core>
70+
<core team="red">
71+
<cuboid min="-41,85,23" max="-36,92,30"/>
72+
</core>
73+
</cores>
74+
<maxbuildheight>125</maxbuildheight>
75+
</map>
4.04 MB
Binary file not shown.

maps/Airship Battle/region/r.-1.0.mca

4.05 MB
Binary file not shown.

maps/Airship Battle/region/r.0.-1.mca

4.01 MB
Binary file not shown.

maps/Airship Battle/region/r.0.0.mca

4.04 MB
Binary file not shown.

maps/Harb/data/map_0.dat

1.23 KB
Binary file not shown.

maps/Harb/level.dat

893 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)