mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-03 14:38:53 +00:00
Merge branch 'ccorp2002-edits2'
This commit is contained in:
commit
74c16702e3
5 files changed
+11
-8
No files matched your search
@@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
<groupId>com.github.alathra</groupId>
|
<groupId>com.github.alathra</groupId>
|
||||||
<artifactId>SiegeEngines</artifactId>
|
<artifactId>SiegeEngines</artifactId>
|
||||||
<version>0.8.2</version>
|
<version>0.8.3</version>
|
||||||
|
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>SiegeEngines</name>
|
<name>SiegeEngines</name>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package com.github.alathra.siegeengines.api;
|
package com.github.alathra.siegeengines.api;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.inventory.ItemStack;
|
|
||||||
import org.bukkit.inventory.meta.ItemMeta;
|
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
|
||||||
import com.github.alathra.siegeengines.SiegeEngine;
|
import com.github.alathra.siegeengines.SiegeEngine;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public class Config {
|
|||||||
public static boolean craftingRecipes = true;
|
public static boolean craftingRecipes = true;
|
||||||
public static boolean doDebug = false;
|
public static boolean doDebug = false;
|
||||||
|
|
||||||
|
|
||||||
public static HashSet<World> disabledWorlds = new HashSet<>();
|
public static HashSet<World> disabledWorlds = new HashSet<>();
|
||||||
|
|
||||||
// Siege Engine Options - Defaults
|
// Siege Engine Options - Defaults
|
||||||
|
|||||||
@@ -702,6 +702,9 @@ public class ClickHandler implements Listener {
|
|||||||
if (SiegeEngines.siegeEngineEntitiesPerPlayer.containsKey(player.getUniqueId())) {
|
if (SiegeEngines.siegeEngineEntitiesPerPlayer.containsKey(player.getUniqueId())) {
|
||||||
List<Entity> entities = SiegeEngines.siegeEngineEntitiesPerPlayer.get(player.getUniqueId());
|
List<Entity> entities = SiegeEngines.siegeEngineEntitiesPerPlayer.get(player.getUniqueId());
|
||||||
if (entities.contains(entity)) {
|
if (entities.contains(entity)) {
|
||||||
|
if (player instanceof Player) {
|
||||||
|
((Player) player).sendMessage("§eYou are already commanding this Siege Engine!");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -712,7 +715,11 @@ public class ClickHandler implements Listener {
|
|||||||
if (uuid.equals(player.getUniqueId())) {
|
if (uuid.equals(player.getUniqueId())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
numPilots++;
|
if (SiegeEngines.siegeEngineEntitiesPerPlayer.containsKey(uuid)) {
|
||||||
|
if (SiegeEngines.siegeEngineEntitiesPerPlayer.get(uuid).contains(entity)) {
|
||||||
|
numPilots++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (numPilots > 1) {
|
if (numPilots > 1) {
|
||||||
if (player instanceof Player) ((Player) player).sendMessage("§eOnly one Player may command this Siege Engine!");
|
if (player instanceof Player) ((Player) player).sendMessage("§eOnly one Player may command this Siege Engine!");
|
||||||
|
|||||||
@@ -94,9 +94,6 @@ Projectiles:
|
|||||||
FireSound: ITEM_CROSSBOW_SHOOT
|
FireSound: ITEM_CROSSBOW_SHOOT
|
||||||
DragonsBreath:
|
DragonsBreath:
|
||||||
ProjectileType: ENTITY
|
ProjectileType: ENTITY
|
||||||
Inaccuracy: 0.125
|
|
||||||
EntityCount: 1
|
|
||||||
VelocityFactor: 1.0
|
|
||||||
Inaccuracy: 0.65
|
Inaccuracy: 0.65
|
||||||
EntityCount: 3
|
EntityCount: 3
|
||||||
VelocityFactor: 1.125
|
VelocityFactor: 1.125
|
||||||
@@ -175,7 +172,6 @@ SiegeEngines:
|
|||||||
- StoneShot
|
- StoneShot
|
||||||
- RepeatingShot
|
- RepeatingShot
|
||||||
- BreachShot
|
- BreachShot
|
||||||
- FireShot
|
|
||||||
- DragonsBreath
|
- DragonsBreath
|
||||||
- FireworkShot
|
- FireworkShot
|
||||||
ItemName: "&e&lBreach Cannon"
|
ItemName: "&e&lBreach Cannon"
|
||||||
|
|||||||
Reference in new issue
Block a user