From dc59491e5652fbe97f7f2675c4d8d9e6ab853604 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Fri, 19 Feb 2021 15:58:10 -0500 Subject: [PATCH] [16.1k Lines] Updated README.md --- README.md | 13 +++++++++++-- .../java/zone/themcgamer/core/task/TaskManager.java | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aaa2aa5..d1c07ca 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,12 @@ - **Proxy**: The proxy will handle server balancing and player caching. - **API**: This is the frontend of the project if you will. All developers will be given access to this branch of the project where they can access multiple parts of the server. - **Core**: The core is a shared module between all Spigot plugins. Everything used between multiple Spigot servers will be created here. +- **Build Server**: The core for the build server - This handles map creating, parsing, etc - **Hub**: This is pretty self-explanatory. Any Hub related things will go here. -- **Testing**: This part of the project is strictly for testing purposes . +- **Arcade**: This is pretty self-explanatory. This is the game core and all Arcade related things will go here. +- **Skyblock**: As we use a public Skyblock plugin, any custom things related to Skyblock will go here. +- **DiscordBot**: This is pretty self-explanatory. Any Discord related things will go here. +- **Testing**: This part of the project is strictly for testing purposes. # Redis Redis is used for a variety of different things. Mainly, Redis is used for the server backend and as a global cache. @@ -19,8 +23,13 @@ When something is being released for production, you must set the production par # Before Starting - Create a **gradle.properties** file which will contain your -Nexus username and password. +Nexus username and password. (It's recommended to add the properties below to your **gradle.properties** file to allow the use of parallel compiling and caching) - Stick to Java naming conventions, which can be found [here](https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html) +```properties +org.gradle.parallel=true +org.gradle.caching=true +gradle.cache.push=false +``` # Building From Source - Clone the project diff --git a/core/src/main/java/zone/themcgamer/core/task/TaskManager.java b/core/src/main/java/zone/themcgamer/core/task/TaskManager.java index 103e4ed..c09074a 100644 --- a/core/src/main/java/zone/themcgamer/core/task/TaskManager.java +++ b/core/src/main/java/zone/themcgamer/core/task/TaskManager.java @@ -31,7 +31,7 @@ public class TaskManager extends MiniAccount { @Override public void loadAccount(int accountId, UUID uuid, String name, String ip, String encryptedIp, ResultSet resultSet) throws SQLException { Optional client = lookup(uuid); - if (!client.isPresent()) + if (client.isEmpty()) return; while (resultSet.next()) { Task task = Task.match(resultSet.getString("task"));