This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private TaskCompletionSource<Order> _purchaseSource; | |
| private IPublicKey _publicKey; | |
| //NOTE: get this key from the Google Play dev console, under Development Tools | Services & APIs | Licensing & in-app billing | |
| public string PublicKey { get; set; } | |
| //Order details class, parsed from JSON | |
| private sealed class Order | |
| { | |
| public string PackageName { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Configuration; | |
| using System.Net; | |
| using Google.Apis.AndroidPublisher.v2; | |
| using Google.Apis.AndroidPublisher.v2.Data; | |
| using Google.Apis.Auth.OAuth2; | |
| using Google.Apis.Services; | |
| private static string GooglePlayAccount = ConfigurationManager.AppSettings["GooglePlayAccount"]; | |
| //NOTE: best way I could get \n in an app setting | |
| private static string GooglePlayKey = ConfigurationManager.AppSettings["GooglePlayKey"].Replace("\\n", "\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var googleReceipt = receipt as GoogleReceipt; | |
| if (googleReceipt != null) | |
| { | |
| await _client.Verify(googleReceipt); | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git submodule update --init | |
| mvn clean | |
| mvn package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jonathans-MBP:minecraft jonathanpeppers$ java -jar nukkit-1.0-SNAPSHOT.jar | |
| 10:04:51 [INFO] Welcome! Please choose a language first! | |
| 10:04:51 [INFO] eng => English | |
| 10:04:51 [INFO] chs => 中文(简体)体 | |
| 10:04:51 [INFO] cht => 中文(繁體)體 | |
| 10:04:51 [INFO] jpn => 日本語本 | |
| 10:04:51 [INFO] rus => Pyccĸий | |
| 10:04:51 [INFO] spa => Español | |
| 10:04:51 [INFO] pol => Polish | |
| 10:04:51 [INFO] bra => Português-Brasil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Properties Config file | |
| motd=Awesome Jon Server | |
| gamemode=1 | |
| #More properties here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worlds: | |
| diversity: [] | |
| #Then in server.properties file | |
| level-name=diversity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM anapsix/alpine-java | |
| MAINTAINER Jon | |
| # Nukkit files | |
| COPY nukkit-1.0-SNAPSHOT.jar /home/nukkit-1.0-SNAPSHOT.jar | |
| COPY nukkit.yml /home/nukkit.yml | |
| COPY server.properties /home/server.properties | |
| # EssentialsNK files | |
| COPY EssentialsNK-1.0.8.jar /home/plugins/EssentialsNK-1.0.8.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it -p 19132:19132/udp --name nukkit -v worlds:/home/worlds -v players:/home/players -v logs:/home/logs -v plugins:/home/plugins nukkit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stop the docker service/daemon | |
| sudo service docker stop | |
| # Start the service, listening on port 2375 | |
| dockerd -H 0.0.0.0:2375 |