Skip to content

Commit

Permalink
update 1.5 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewoutvans authored Feb 10, 2019
1 parent e54004c commit 7ab090c
Show file tree
Hide file tree
Showing 95 changed files with 462 additions and 870 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .gradle/4.4.1/fileChanges/last-build.bin
100644 → 100755
Empty file.
Empty file modified .gradle/4.4.1/fileContent/annotation-processors.bin
100644 → 100755
Empty file.
Binary file modified .gradle/4.4.1/fileContent/fileContent.lock
100644 → 100755
Binary file not shown.
Binary file modified .gradle/4.4.1/fileHashes/fileHashes.bin
100644 → 100755
Binary file not shown.
Binary file modified .gradle/4.4.1/fileHashes/fileHashes.lock
100644 → 100755
Binary file not shown.
Empty file modified .gradle/4.4.1/fileHashes/resourceHashesCache.bin
100644 → 100755
Empty file.
Binary file modified .gradle/4.4.1/taskHistory/taskHistory.bin
100644 → 100755
Binary file not shown.
Binary file modified .gradle/4.4.1/taskHistory/taskHistory.lock
100644 → 100755
Binary file not shown.
Empty file modified .gradle/4.6/fileChanges/last-build.bin
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/fileContent/annotation-processors.bin
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/fileContent/fileContent.lock
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/fileHashes/fileHashes.bin
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/fileHashes/fileHashes.lock
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/fileHashes/resourceHashesCache.bin
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/taskHistory/taskHistory.bin
100644 → 100755
Empty file.
Empty file modified .gradle/4.6/taskHistory/taskHistory.lock
100644 → 100755
Empty file.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
100644 → 100755
Binary file not shown.
Empty file modified .gradle/buildOutputCleanup/cache.properties
100644 → 100755
Empty file.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
100644 → 100755
Binary file not shown.
Empty file modified .gradle/vcsWorkingDirs/gc.properties
100644 → 100755
Empty file.
Empty file modified .idea/compiler.xml
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified .idea/gradle.xml
100644 → 100755
Empty file.
Empty file modified .idea/inspectionProfiles/Project_Default.xml
100644 → 100755
Empty file.
Empty file modified .idea/libraries/Gradle__aopalliance_aopalliance_1_0.xml
100644 → 100755
Empty file.
Empty file modified .idea/libraries/Gradle__com_flowpowered_flow_math_1_0_3.xml
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
9 changes: 7 additions & 2 deletions .idea/libraries/Gradle__com_google_code_gson_gson_2_8_0.xml
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
9 changes: 7 additions & 2 deletions .idea/libraries/Gradle__com_google_guava_guava_21_0.xml
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified .idea/libraries/Gradle__com_google_inject_guice_4_1_0.xml
100644 → 100755
Empty file.
Empty file modified .idea/libraries/Gradle__com_typesafe_config_1_3_1.xml
100644 → 100755
Empty file.
Empty file modified .idea/libraries/Gradle__javax_inject_javax_inject_1.xml
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified .idea/libraries/Gradle__org_ow2_asm_asm_5_2.xml
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion .idea/libraries/Gradle__org_slf4j_slf4j_api_1_7_25.xml
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified .idea/libraries/Gradle__org_spongepowered_plugin_meta_0_4_1.xml
100644 → 100755
Empty file.
Empty file modified .idea/libraries/Gradle__org_spongepowered_spongeapi_7_0_0.xml
100644 → 100755
Empty file.
Empty file modified .idea/libraries/Gradle__org_yaml_snakeyaml_1_18.xml
100644 → 100755
Empty file.
Empty file modified .idea/misc.xml
100644 → 100755
Empty file.
Empty file modified .idea/modules.xml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .idea/modules/GameSpleef_main.iml
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules/GameSpleef_test.iml
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified .idea/vcs.xml
100644 → 100755
Empty file.
1,001 changes: 261 additions & 740 deletions .idea/workspace.xml
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion GameSpleef.iml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="GameSpleef" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="cloud.zeroprox" external.system.module.version="1.4" type="JAVA_MODULE" version="4">
<module external.linked.project.id="GameSpleef" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="cloud.zeroprox" external.system.module.version="1.5" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
Expand Down
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified build.gradle
100644 → 100755
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/classes/java/main/cloud/zeroprox/gamespleef/GameSpleef.class
Binary file not shown.
Binary file modified build/classes/java/main/cloud/zeroprox/gamespleef/Listeners.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/libs/GameSpleef-1.5.jar.sig
Binary file not shown.
2 changes: 1 addition & 1 deletion build/resources/main/mcmod.info
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "gamespleef",
"name": "GameSpleef",
"version": "1.4",
"version": "1.5",
"description": "A spleef minigame",
"url": "https://zeroprox.cloud",
"authorList": [
Expand Down
2 changes: 1 addition & 1 deletion build/tmp/generateMetadata/mcmod.info
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "gamespleef",
"name": "GameSpleef",
"version": "1.4",
"version": "1.5",
"description": "A spleef minigame",
"url": "https://zeroprox.cloud",
"authorList": [
Expand Down
4 changes: 2 additions & 2 deletions build/tmp/jar/MANIFEST.MF
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Manifest-Version: 1.0

Manifest-Version: 1.0

2 changes: 1 addition & 1 deletion gradle.properties
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pluginGroup=cloud.zeroprox
pluginId=gamespleef
pluginVersion=1.4
pluginVersion=1.5
Empty file modified gradle/wrapper/gradle-wrapper.jar
100644 → 100755
Empty file.
Empty file modified gradle/wrapper/gradle-wrapper.properties
100644 → 100755
Empty file.
168 changes: 84 additions & 84 deletions gradlew.bat
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,84 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
50 changes: 27 additions & 23 deletions src/main/java/cloud/zeroprox/gamespleef/GameSpleef.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -200,30 +200,34 @@ private void loadConfig() throws IOException, ObjectMappingException {
getGameManager().iGames.clear();
List<GameSerialize> gameSerializeList = rootNodeDefaultConfig.getNode("areas").getList(TypeToken.of(GameSerialize.class));
for (GameSerialize gameSerialize : gameSerializeList) {
IGame iGame = null;

List<AABB> floors = new ArrayList<>();
for (AABBSerialize aabbSerialize : gameSerialize.floors) {
floors.add(aabbSerialize.toAABB());
}

if (gameSerialize.gameType == GameType.CLASSIC) {
iGame = new GameClassic(gameSerialize.name,
gameSerialize.area.toAABB(),
floors,
gameSerialize.spawn,
gameSerialize.lobby,
gameSerialize.playerLimit,
gameSerialize.campRadius,
gameSerialize.campInterval,
gameSerialize.campPlayers,
gameSerialize.saveInv,
gameSerialize.winningCommand,
gameSerialize.winningMinPlayers,
gameSerialize.winningCooldown
);
try {
IGame iGame = null;

List<AABB> floors = new ArrayList<>();
for (AABBSerialize aabbSerialize : gameSerialize.floors) {
floors.add(aabbSerialize.toAABB());
}

if (gameSerialize.gameType == GameType.CLASSIC) {
iGame = new GameClassic(gameSerialize.name,
gameSerialize.area.toAABB(),
floors,
gameSerialize.spawn,
gameSerialize.lobby,
gameSerialize.playerLimit,
gameSerialize.campRadius,
gameSerialize.campInterval,
gameSerialize.campPlayers,
gameSerialize.saveInv,
gameSerialize.winningCommand,
gameSerialize.winningMinPlayers,
gameSerialize.winningCooldown
);
}
getGameManager().iGames.add(iGame);
} catch (Exception ex) {
logger.error("Error loading " + gameSerialize.name);
}
getGameManager().iGames.add(iGame);
}
logger.info("Loaded: " + getGameManager().iGames.size() + " games");
}
Expand Down
Empty file modified src/main/java/cloud/zeroprox/gamespleef/Listeners.java
100644 → 100755
Empty file.
Empty file modified src/main/java/cloud/zeroprox/gamespleef/commands/AdminCmd.java
100644 → 100755
Empty file.
Empty file modified src/main/java/cloud/zeroprox/gamespleef/commands/HelpCmd.java
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion src/main/java/cloud/zeroprox/gamespleef/commands/JoinCmd.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.spongepowered.api.command.spec.CommandExecutor;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;

import java.util.Optional;

Expand Down
Empty file modified src/main/java/cloud/zeroprox/gamespleef/commands/LeaveCmd.java
100644 → 100755
Empty file.
Empty file modified src/main/java/cloud/zeroprox/gamespleef/commands/ListCmd.java
100644 → 100755
Empty file.
Loading

0 comments on commit 7ab090c

Please sign in to comment.