From 7ac90cff248c2d00f56dbf85bf03f4397119af5a Mon Sep 17 00:00:00 2001 From: Eoghanmc22 <31516877+Eoghanmc22@users.noreply.github.com> Date: Tue, 23 Jun 2020 15:58:31 -0400 Subject: [PATCH] init --- .gitignore | 2 ++ build.gradle | 3 +++ src/main/java/fr/themode/demo/Main.java | 2 +- src/main/java/net/minestom/server/entity/Player.java | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 25fa3c182..efa5fcc2e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /minecraft_data/ /.minestom_tmp/ +/chunks/ # Created by .ignore support plugin (hsz.mobi) ### Java template @@ -48,3 +49,4 @@ gradle-app.setting # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 # gradle/wrapper/gradle-wrapper.properties +/src/main/java/com/mcecraft/ diff --git a/build.gradle b/build.gradle index 1121c0992..bfc1f4a14 100644 --- a/build.gradle +++ b/build.gradle @@ -44,6 +44,9 @@ dependencies { // https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl api group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.13.2' + api 'org.mongodb.morphia:morphia:1.3.2' + api 'org.mongodb:mongo-java-driver:3.12.5' + api 'net.kyori:text-api:3.0.3' api 'net.kyori:text-serializer-legacy:3.0.3' api 'net.kyori:text-serializer-gson:3.0.3' diff --git a/src/main/java/fr/themode/demo/Main.java b/src/main/java/fr/themode/demo/Main.java index 5b56174bb..0b020c322 100644 --- a/src/main/java/fr/themode/demo/Main.java +++ b/src/main/java/fr/themode/demo/Main.java @@ -64,7 +64,7 @@ public class Main { PlayerInit.init(); - //MojangAuth.init(); + MojangAuth.init(); minecraftServer.start("localhost", 55555, PlayerInit.getResponseDataConsumer()); } diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 45de4f141..5b11e1278 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -153,7 +153,7 @@ public class Player extends LivingEntity implements CommandSender { this.gameMode = GameMode.SURVIVAL; this.dimension = Dimension.OVERWORLD; - this.levelType = LevelType.DEFAULT; + this.levelType = LevelType.FLAT; refreshPosition(0, 0, 0); // FakePlayer init its connection there