mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-04 22:15:17 +00:00
✨✨✨Finalize for Merge!!!
This commit is contained in:
1 parent
9c80c5d0a2
commit
bbe57311c1
2 files changed
+8
-1
No files matched your search
@@ -26,6 +26,12 @@ public class Helper
|
||||
Bukkit.broadcastMessage("test message");
|
||||
}
|
||||
|
||||
/**
|
||||
* Damages all gear in a players inventory
|
||||
*
|
||||
* @param p
|
||||
* @author ShermansWorld
|
||||
*/
|
||||
public static void damageAllGear(Player p) {
|
||||
final Inventory inv = p.getInventory();
|
||||
for (int i = 0; i < inv.getSize(); ++i) {
|
||||
|
||||
@@ -2,6 +2,7 @@ package me.ShermansWorld.AlathraWar.listeners;
|
||||
|
||||
import me.ShermansWorld.AlathraWar.Raid;
|
||||
import me.ShermansWorld.AlathraWar.commands.RaidCommands;
|
||||
import me.ShermansWorld.AlathraWar.data.RaidData;
|
||||
import me.ShermansWorld.AlathraWar.data.RaidPhase;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
@@ -94,7 +95,7 @@ public final class KillsListener implements Listener
|
||||
|
||||
|
||||
//Raid logic
|
||||
for (final Raid raid : RaidCommands.raids) {
|
||||
for (final Raid raid : RaidData.getRaids()) {
|
||||
final int homeBlockXCoordRaided = raid.getRaidedTown().getHomeBlock().getCoord().getX() * 16;
|
||||
final int homeBlockZCoordRaided = raid.getRaidedTown().getHomeBlock().getCoord().getZ() * 16;
|
||||
// final int homeBlockXCoordGather = raid.getGatherTown().getHomeBlock().getCoord().getX() * 16;
|
||||
|
||||
Reference in new issue
Block a user