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