v0.87.2 Fixed players losing rewards when typing /ma leave after arena end.
This commit is contained in:
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.87.1
|
version: 0.87.2
|
||||||
commands:
|
commands:
|
||||||
mobarena:
|
mobarena:
|
||||||
description: Base command for MobArena
|
description: Base command for MobArena
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ public class ArenaManager
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ArenaManager.isRunning)
|
||||||
MAUtils.clearInventory(p);
|
MAUtils.clearInventory(p);
|
||||||
|
|
||||||
if (playerSet.contains(p))
|
if (playerSet.contains(p))
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ public class MAUtils
|
|||||||
|
|
||||||
if (c.getKeys("classes") == null)
|
if (c.getKeys("classes") == null)
|
||||||
{
|
{
|
||||||
c.setProperty("classes.Archer.items", "wood_sword, bow, arrow:64, arrow:64, grilled_pork");
|
c.setProperty("classes.Archer.items", "wood_sword, bow, arrow:128, grilled_pork");
|
||||||
c.setProperty("classes.Archer.armor", "298,299,300,301");
|
c.setProperty("classes.Archer.armor", "298,299,300,301");
|
||||||
c.setProperty("classes.Knight.items", "diamond_sword, grilled_pork");
|
c.setProperty("classes.Knight.items", "diamond_sword, grilled_pork");
|
||||||
c.setProperty("classes.Knight.armor", "306,307,308,309");
|
c.setProperty("classes.Knight.armor", "306,307,308,309");
|
||||||
@@ -694,6 +694,10 @@ public class MAUtils
|
|||||||
setCoords("spawnpoints.s4", new Location(ArenaManager.world, x2-3, y1+2, z2-3));
|
setCoords("spawnpoints.s4", new Location(ArenaManager.world, x2-3, y1+2, z2-3));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This fixes everything!
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public static void UnDoooooItHippieMonster()
|
public static void UnDoooooItHippieMonster()
|
||||||
{
|
{
|
||||||
HashMap<EntityPosition,Integer> preciousPatch;
|
HashMap<EntityPosition,Integer> preciousPatch;
|
||||||
@@ -701,13 +705,13 @@ public class MAUtils
|
|||||||
{
|
{
|
||||||
FileInputStream fis = new FileInputStream("plugins/MobArena/precious.tmp");
|
FileInputStream fis = new FileInputStream("plugins/MobArena/precious.tmp");
|
||||||
ObjectInputStream ois = new ObjectInputStream(fis);
|
ObjectInputStream ois = new ObjectInputStream(fis);
|
||||||
preciousPatch = (HashMap) ois.readObject();
|
Object o = ois.readObject();
|
||||||
|
preciousPatch = (HashMap<EntityPosition,Integer>) ois.readObject();
|
||||||
ois.close();
|
ois.close();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
System.out.println("Couldn't find backup file...");
|
System.out.println("Couldn't find backup file...");
|
||||||
e.printStackTrace();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user