Skip to content

Commit

Permalink
Rollback to 1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ataranlen committed Dec 31, 2016
1 parent 10af314 commit dcc74a8
Show file tree
Hide file tree
Showing 33 changed files with 54 additions and 50 deletions.
8 changes: 4 additions & 4 deletions civcraft/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/json.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/TitleAPI-1.7.4.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/TagAPI-1.1.9.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/spigot-api-1.11.2-R0.1-SNAPSHOT-shaded.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/bukkit-1.11.2-R0.1-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/craftbukkit-1.11.2.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/CustomMobs-4.16.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/spigot-api-1.10.2-R0.1-SNAPSHOT-shaded.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/bukkit-1.10.2-R0.1-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/craftbukkit-1.10.2.jar"/>
<classpathentry kind="lib" path="D:/civcraftsvn/trunk/lib/CustomMobs-4.16.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Binary file not shown.
Binary file modified civcraft/bin/com/avrgaming/civcraft/config/CivSettings.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified civcraft/bin/com/avrgaming/civcraft/main/CivGlobal.class
Binary file not shown.
Binary file modified civcraft/bin/com/avrgaming/civcraft/siege/CannonProjectile.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified civcraft/bin/com/avrgaming/civcraft/structure/Stable.class
Binary file not shown.
Binary file not shown.
Binary file modified civcraft/bin/com/avrgaming/civcraft/util/EntityProximity.class
Binary file not shown.
Binary file not shown.
Binary file modified civcraft/bin/com/avrgaming/civcraft/war/WarRegen.class
Binary file not shown.
Binary file modified civcraft/bin/gpl/AttributeUtil$1$1.class
Binary file not shown.
Binary file modified civcraft/bin/gpl/AttributeUtil$Attribute.class
Binary file not shown.
Binary file modified civcraft/bin/gpl/AttributeUtil.class
Binary file not shown.
Binary file modified civcraft/bin/gpl/HorseModifier.class
Binary file not shown.
Binary file modified civcraft/bin/gpl/ImprovedOfflinePlayer.class
Binary file not shown.
2 changes: 1 addition & 1 deletion civcraft/bin/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CivCraft
main: com.avrgaming.civcraft.main.CivCraft
softdepends: [TitleAPI]
version: 1.8.0
version: 1.8.0-Beta3
depend: [CustomMobs]

commands:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

import java.util.HashSet;

import net.minecraft.server.v1_11_R1.Vec3D;
import net.minecraft.server.v1_10_R1.Vec3D;

import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.craftbukkit.v1_11_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_10_R1.CraftWorld;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
Expand Down
3 changes: 3 additions & 0 deletions civcraft/src/com/avrgaming/civcraft/config/CivSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ public static void validateFiles() {
public static void streamResourceToDisk(String filepath) throws IOException {
URL inputUrl = plugin.getClass().getResource(filepath);
File dest = new File(plugin.getDataFolder().getPath()+filepath);
if (inputUrl == null) {
CivLog.error("Destination is null: "+filepath);
}
FileUtils.copyURLToFile(inputUrl, dest);
}

Expand Down
22 changes: 11 additions & 11 deletions civcraft/src/com/avrgaming/civcraft/listener/BlockListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
import java.util.List;
import java.util.Random;

import net.minecraft.server.v1_11_R1.AttributeInstance;
import net.minecraft.server.v1_11_R1.AxisAlignedBB;
import net.minecraft.server.v1_11_R1.DamageSource;
import net.minecraft.server.v1_11_R1.Entity;
import net.minecraft.server.v1_11_R1.EntityInsentient;
import net.minecraft.server.v1_11_R1.EntityPlayer;
import net.minecraft.server.v1_11_R1.GenericAttributes;
import net.minecraft.server.v1_11_R1.NBTTagCompound;
import net.minecraft.server.v1_10_R1.AttributeInstance;
import net.minecraft.server.v1_10_R1.AxisAlignedBB;
import net.minecraft.server.v1_10_R1.DamageSource;
import net.minecraft.server.v1_10_R1.Entity;
import net.minecraft.server.v1_10_R1.EntityInsentient;
import net.minecraft.server.v1_10_R1.EntityPlayer;
import net.minecraft.server.v1_10_R1.GenericAttributes;
import net.minecraft.server.v1_10_R1.NBTTagCompound;

import org.bukkit.Bukkit;
import org.bukkit.Chunk;
Expand All @@ -42,9 +42,9 @@
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.craftbukkit.v1_11_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftLivingEntity;
import org.bukkit.craftbukkit.v1_10_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_10_R1.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_10_R1.entity.CraftLivingEntity;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Fireball;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.LinkedList;
import java.util.Random;

import net.minecraft.server.v1_11_R1.EntityPlayer;
import net.minecraft.server.v1_10_R1.EntityPlayer;

import org.bukkit.Color;
import org.bukkit.FireworkEffect;
Expand Down
1 change: 1 addition & 0 deletions civcraft/src/com/avrgaming/civcraft/structure/Stable.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import com.avrgaming.civcraft.util.ItemManager;
import com.avrgaming.civcraft.util.SimpleBlock;

@SuppressWarnings("deprecation")
public class Stable extends Structure {

public static Integer FEE_MIN = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package com.avrgaming.civcraft.threading.tasks;

import gpl.AttributeUtil;
import net.minecraft.server.v1_11_R1.Material;
import net.minecraft.server.v1_10_R1.Material;

import org.bukkit.World;
import org.bukkit.entity.Player;
Expand Down
10 changes: 5 additions & 5 deletions civcraft/src/com/avrgaming/civcraft/util/EntityProximity.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import java.util.LinkedList;
import java.util.List;

import net.minecraft.server.v1_11_R1.AxisAlignedBB;
import net.minecraft.server.v1_10_R1.AxisAlignedBB;

import org.bukkit.Location;
import org.bukkit.craftbukkit.v1_11_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_10_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_10_R1.entity.CraftEntity;
import org.bukkit.entity.Entity;

public class EntityProximity {
Expand All @@ -30,14 +30,14 @@ public static LinkedList<Entity> getNearbyEntities(Entity exempt, Location loc,
CraftWorld craftWorld = (CraftWorld)loc.getWorld();
AxisAlignedBB bb = new AxisAlignedBB(x-r, y-r, z-r, x+r, y+r, z+r);

List<net.minecraft.server.v1_11_R1.Entity> eList;
List<net.minecraft.server.v1_10_R1.Entity> eList;
if (exempt != null) {
eList = craftWorld.getHandle().getEntities(((CraftEntity)exempt).getHandle(), bb);
} else {
eList = craftWorld.getHandle().getEntities(null, bb);
}

for (net.minecraft.server.v1_11_R1.Entity e : eList) {
for (net.minecraft.server.v1_10_R1.Entity e : eList) {


if (filter == null || (filter.isInstance(e))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.LinkedList;
import java.util.TreeMap;

import net.minecraft.server.v1_11_R1.PacketPlayOutMultiBlockChange;
import net.minecraft.server.v1_10_R1.PacketPlayOutMultiBlockChange;

import org.bukkit.entity.Player;

Expand Down
14 changes: 7 additions & 7 deletions civcraft/src/gpl/AttributeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import net.minecraft.server.v1_11_R1.NBTBase;
import net.minecraft.server.v1_11_R1.NBTTagCompound;
import net.minecraft.server.v1_11_R1.NBTTagInt;
import net.minecraft.server.v1_11_R1.NBTTagList;
import net.minecraft.server.v1_11_R1.NBTTagString;
import net.minecraft.server.v1_10_R1.NBTBase;
import net.minecraft.server.v1_10_R1.NBTTagCompound;
import net.minecraft.server.v1_10_R1.NBTTagInt;
import net.minecraft.server.v1_10_R1.NBTTagList;
import net.minecraft.server.v1_10_R1.NBTTagString;

import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.v1_11_R1.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_10_R1.inventory.CraftItemStack;
import org.bukkit.inventory.ItemStack;

import com.avrgaming.civcraft.loreenhancements.LoreEnhancement;
Expand Down Expand Up @@ -222,7 +222,7 @@ public Attribute build() {
}

// This may be modified
public net.minecraft.server.v1_11_R1.ItemStack nmsStack;
public net.minecraft.server.v1_10_R1.ItemStack nmsStack;

private NBTTagCompound parent;
private NBTTagList attributes;
Expand Down
10 changes: 5 additions & 5 deletions civcraft/src/gpl/HorseModifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
import java.util.Map.Entry;
import java.util.UUID;

import net.minecraft.server.v1_11_R1.AttributeInstance;
import net.minecraft.server.v1_11_R1.AttributeModifier;
import net.minecraft.server.v1_11_R1.EntityInsentient;
import net.minecraft.server.v1_11_R1.GenericAttributes;
import net.minecraft.server.v1_10_R1.AttributeInstance;
import net.minecraft.server.v1_10_R1.AttributeModifier;
import net.minecraft.server.v1_10_R1.EntityInsentient;
import net.minecraft.server.v1_10_R1.GenericAttributes;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftLivingEntity;
import org.bukkit.craftbukkit.v1_10_R1.entity.CraftLivingEntity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
Expand Down
22 changes: 11 additions & 11 deletions civcraft/src/gpl/ImprovedOfflinePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@
import java.util.ArrayList;
import java.util.UUID;

import net.minecraft.server.v1_11_R1.AttributeMapBase;
import net.minecraft.server.v1_11_R1.AttributeMapServer;
import net.minecraft.server.v1_11_R1.GenericAttributes;
import net.minecraft.server.v1_11_R1.NBTCompressedStreamTools;
import net.minecraft.server.v1_11_R1.NBTTagCompound;
import net.minecraft.server.v1_11_R1.NBTTagDouble;
import net.minecraft.server.v1_11_R1.NBTTagFloat;
import net.minecraft.server.v1_11_R1.NBTTagList;
import net.minecraft.server.v1_11_R1.PlayerAbilities;
import net.minecraft.server.v1_11_R1.PlayerInventory;
import net.minecraft.server.v1_10_R1.AttributeMapBase;
import net.minecraft.server.v1_10_R1.AttributeMapServer;
import net.minecraft.server.v1_10_R1.GenericAttributes;
import net.minecraft.server.v1_10_R1.NBTCompressedStreamTools;
import net.minecraft.server.v1_10_R1.NBTTagCompound;
import net.minecraft.server.v1_10_R1.NBTTagDouble;
import net.minecraft.server.v1_10_R1.NBTTagFloat;
import net.minecraft.server.v1_10_R1.NBTTagList;
import net.minecraft.server.v1_10_R1.PlayerAbilities;
import net.minecraft.server.v1_10_R1.PlayerInventory;

import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.craftbukkit.v1_11_R1.inventory.CraftInventoryPlayer;
import org.bukkit.craftbukkit.v1_10_R1.inventory.CraftInventoryPlayer;
import org.bukkit.potion.PotionEffect;
import org.bukkit.util.Vector;

Expand Down
2 changes: 1 addition & 1 deletion civcraft/src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CivCraft
main: com.avrgaming.civcraft.main.CivCraft
softdepends: [TitleAPI]
version: 1.8.0
version: 1.8.0-Beta3
depend: [CustomMobs]

commands:
Expand Down

0 comments on commit dcc74a8

Please sign in to comment.