Skip to content

Commit 86115fb

Browse files
committed
Initial commit
0 parents  commit 86115fb

File tree

1,282 files changed

+111232
-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.

1,282 files changed

+111232
-0
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://rooti.ru/donate']

.github/ISSUE_TEMPLATE.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!---
2+
Before creating an issue, make sure:
3+
1. Your title and content is not confusing or content-less.
4+
2. All texts are written in proper English.
5+
If it's a bug or problem:
6+
1. This bug can be reproduced.
7+
2. This bug can be found in latest build.
8+
3. Dumps, backtraces or files are provided.
9+
4. It's you yourself who first found this bug.
10+
If it's an advice or a feature request:
11+
1. This feature does not exist in latest build.
12+
2. This feature is logical and clear-cut.
13+
3. It's you yourself who first came up with the idea.
14+
15+
While sending issues, please provide as much information as you could, or our developers might got stuck or confused when looking into your issue.
16+
So let's begin :)
17+
-->
18+
19+
### Issue description
20+
<!--- Use our forum https://forums.nukkit.io for questions -->
21+
Write a short description about the issue
22+
23+
### Steps to reproduce the issue
24+
<!--- Help us to find the problem by adding steps to reproduce the issue -->
25+
1. ...
26+
2. ...
27+
3. ...
28+
29+
### OS and versions
30+
<!--- Use the 'version' command in Nukkit -->
31+
* Nukkit Version: ?? <!--- Do not just write "latest" here -->
32+
<!--- Use 'java -version' in command line -->
33+
* Java Version: ??
34+
<!-- What OS do you use to open Nukkit in? Linux? Windows? Write it here -->
35+
* Host OS: ??
36+
<!--- Device and host configuration, such as: 8GB RAM, 12-core Intel X5650 CPU, 100Mb internet upload. You may get this info from your host provider or hardware information softwares -->
37+
* Host Configuration: ?? GB RAM, ?? GB ??(SSD/HDD/...) drive, ?? core CPU from ??(Intel/AMD/...), ?? Mb internet upload
38+
<!--- Windows 10? Android? iOS? Simulators with x86 platform? -->
39+
* Client Edition: ??
40+
<!--- Client Version, such as 0.16.1, 0.15.90 or 0.15 build 1 and so on -->
41+
* Client Version: ??.??.??
42+
43+
### Crashdump, backtrace or other files
44+
<!--- Please use gist or anything else and add links here -->
45+
*
46+
```
47+
<!--- Copy and paste your backtrace here... -->
48+
```
49+
* ...

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.gradle
2+
build
3+
4+
/.idea
5+
6+
hs_err_pid*
7+
replay_pid*
8+
9+
*.jar
10+
!gradle-wrapper.jar
11+
!libs/*
12+
*.zip
13+
*.tar.gz
14+
*.log
15+
*.class
16+
.DS_Store

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: java
2+
3+
jdk:
4+
- oraclejdk8
5+
6+
install:
7+
- mvn clean
8+
- mvn package

LICENSE

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

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Pure
2+
Software for Minecraft Bedrock Edition 1.1.x forked Nukkit.
3+
4+
Java 8 installation
5+
-------------
6+
- `sudo apt-get update && sudo apt-get install default-jdk`
7+
- `sudo apt-get install openjdk-8-jdk`
8+
- `update-alternatives --config java`, choose /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
9+
- Check java version: `java -version`
10+
11+
Building
12+
-------------
13+
- `./gradlew build --no-daemon`
14+
- Jar file (Pure.jar) is located in build/libs
15+
16+
Running
17+
-------------
18+
- `java -Xmx1G -jar Rooti.jar`

build.gradle.kts

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
plugins {
2+
java
3+
`maven-publish`
4+
id("com.github.johnrengelman.shadow")
5+
}
6+
7+
repositories {
8+
mavenCentral()
9+
}
10+
11+
group = "com.purenex"
12+
version = "1.0-SNAPSHOT"
13+
14+
dependencies {
15+
implementation("jline:jline:2.14.6")
16+
implementation("net.sf.jopt-simple:jopt-simple:5.0.4")
17+
implementation("net.minecrell:terminalconsoleappender:1.1.1")
18+
implementation("org.jline:jline-reader:3.21.0")
19+
implementation("org.jline:jline-terminal-jna:3.21.0")
20+
implementation("org.jline:jline-terminal:3.21.0")
21+
implementation("org.apache.logging.log4j:log4j-api:2.17.2")
22+
implementation("org.apache.logging.log4j:log4j-core:2.17.2")
23+
implementation("com.google.guava:guava:31.1-jre")
24+
implementation("com.google.code.gson:gson:2.9.0")
25+
implementation("org.yaml:snakeyaml:1.30")
26+
implementation("io.netty:netty-all:4.1.76.Final")
27+
implementation("org.iq80.leveldb:leveldb:0.12")
28+
compileOnly("org.projectlombok:lombok:1.18.24")
29+
annotationProcessor("org.projectlombok:lombok:1.18.24")
30+
}
31+
32+
java {
33+
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
34+
35+
withSourcesJar()
36+
// withJavadocJar() // @ddosnikgit cleanun javadoc's please
37+
}
38+
39+
tasks {
40+
build { dependsOn(shadowJar) }
41+
shadowJar {
42+
archiveFileName.set("Pure.jar")
43+
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer::class.java)
44+
45+
manifest {
46+
attributes["Main-Class"] = "cn.nukkit.Nukkit"
47+
attributes["Multi-Release"] = "true"
48+
}
49+
}
50+
withType<JavaCompile> { options.encoding = "UTF-8" }
51+
}
52+
53+
54+
publishing {
55+
publications {
56+
create<MavenPublication>("mavenJava") {
57+
artifactId = "Pure"
58+
groupId = "com.purenex"
59+
version = "0.0.1"
60+
from(components["java"])
61+
pom {
62+
packaging = "jar"
63+
name.set("Pure")
64+
url.set("https://github.com/turbomates/super-project")
65+
description.set("Some description")
66+
67+
licenses {
68+
license {
69+
name.set("The Apache License, Version 2.0")
70+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
71+
}
72+
}
73+
74+
scm {
75+
connection.set("scm:https://github.com/turbomates/super-puper-project.git")
76+
developerConnection.set("scm:[email protected]:turbomates/super-puper-project.git")
77+
url.set("https://github.com/turbomates/super-puper-project")
78+
}
79+
80+
developers {
81+
developer {
82+
id.set("Olovink")
83+
name.set("Egor Tunekov")
84+
email.set("[email protected]")
85+
}
86+
}
87+
}
88+
}
89+
}
90+
repositories {
91+
maven {
92+
val releasesUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
93+
val snapshotsUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
94+
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsUrl else releasesUrl
95+
credentials {
96+
username = project.properties["ossrhUsername"].toString()
97+
password = project.properties["ossrhPassword"].toString()
98+
}
99+
}
100+
}
101+
}
102+

circle.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
checkout:
2+
post:
3+
- git submodule sync
4+
- git submodule update --init
5+
- mvn clean
6+
- mvn package
7+
- cp -R ./target/nukkit-1.0-SNAPSHOT.jar $CIRCLE_ARTIFACTS
8+
9+
machine:
10+
java:
11+
version: oraclejdk8

gradle.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
org.gradle.jvmargs=-Xmx1024m -Dfile.encoding=UTF-8 -XX:+UseParallelGC
2+
3+
org.gradle.console=rich
4+
org.gradle.caching=true
5+
org.gradle.parallel=true
6+
org.gradle.warning.mode=all
7+
org.gradle.configureondemand=true
8+
9+
org.gradle.unsafe.configuration-cache=true
10+
org.gradle.unsafe.configuration-cache-problems=fail
11+
12+
ossrhUsername=olovink
13+
ossrhPassword=Eseniyaegor98-

0 commit comments

Comments
 (0)