فهرست منبع

add: build section to readme

Signed-off-by: Daniel Nägele <info@naegele.dev>
Daniel Nägele 2 سال پیش
والد
کامیت
53b1c41170
2فایلهای تغییر یافته به همراه22 افزوده شده و 4 حذف شده
  1. 19 3
      README.md
  2. 3 1
      missilewars-plugin/src/main/java/de/butzlabben/missilewars/util/geometry/Geometry.java

+ 19 - 3
README.md

@@ -1,18 +1,34 @@
 # MissileWars
+
 MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft
 
 ## Downloads
-You can download the latest jar in the [latest release](https://github.com/Butzlabben/missilewars/releases/latest) or build it yourself via `mvnw install`.
 
-However, if you [buy the resource](https://www.spigotmc.org/resources/62947) and leave a review, 
+You can download the latest jar in the [latest release](https://github.com/Butzlabben/missilewars/releases/latest) or build it yourself (
+see [BUILDING](#building))
+
+However, if you [buy the resource](https://www.spigotmc.org/resources/62947) and leave a review,
 you will also receive an extra map and some more missiles.
 
+## Building
+
+To build MissileWars, you need to install the Java 17 JDK. Then you can build it via the Maven Wrapper.
+
+Run the following commands to build MissileWars (this will take while).  
+Windows: `mvwn.cmd install`     
+Linux/macOS/other: `./mvwn install`
+
+The jar file will be located under `missilewars-plugin/target/MissileWars-x.x.x.jar`
+
 ## Contributions
+
 Contributions are always welcome, just fork this project, make your changes and create a pull request.
 
 ## Documentation
-All information about the Commands, Permissions, Placeholders and the Configuration can be found 
+
+All information about the Commands, Permissions, Placeholders and the Configuration can be found
 in our [Github Wiki](https://github.com/Butzlabben/missilewars/wiki).
 
 ## Donate
+
 [![Donation link](https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=naegele_daniel%40web.de&currency_code=EUR&source=url)

+ 3 - 1
missilewars-plugin/src/main/java/de/butzlabben/missilewars/util/geometry/Geometry.java

@@ -55,7 +55,9 @@ public class Geometry {
         if (targetLocation.getBlockY() < area.getMinY()) return false;
 
         if (targetLocation.getBlockZ() > area.getMaxZ()) return false;
-        return targetLocation.getBlockZ() >= area.getMinZ();
+        if (targetLocation.getBlockZ() < area.getMinZ()) return false;
+
+        return true;
     }
 
     /**