mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-26 18:11:49 +01:00
build "fixed" and other saving fix
This commit is contained in:
parent
1beaae6b30
commit
d95501bd1c
@ -19,6 +19,8 @@
|
|||||||
<pathelement location="${lib}/bukkit-1.1-R1-SNAPSHOT.jar" />
|
<pathelement location="${lib}/bukkit-1.1-R1-SNAPSHOT.jar" />
|
||||||
<pathelement location="${lib}/craftbukkit-1.1-R1-SNAPSHOT.jar" />
|
<pathelement location="${lib}/craftbukkit-1.1-R1-SNAPSHOT.jar" />
|
||||||
<pathelement location="${lib}/CitizensAPI.jar" />
|
<pathelement location="${lib}/CitizensAPI.jar" />
|
||||||
|
<pathelement location="${lib}/junit.jar" />
|
||||||
|
<pathelement location="${lib}/hamcrest.jar" />
|
||||||
<fileset dir="lib">
|
<fileset dir="lib">
|
||||||
<include name="CitizensAPI.jar" />
|
<include name="CitizensAPI.jar" />
|
||||||
</fileset>
|
</fileset>
|
||||||
|
BIN
lib/hamcrest.jar
Normal file
BIN
lib/hamcrest.jar
Normal file
Binary file not shown.
BIN
lib/junit.jar
Normal file
BIN
lib/junit.jar
Normal file
Binary file not shown.
@ -131,7 +131,7 @@ public class Citizens extends JavaPlugin {
|
|||||||
for (NPC npc : npcManager.getAllNPCs()) {
|
for (NPC npc : npcManager.getAllNPCs()) {
|
||||||
DataKey root = saves.getKey("npc." + npc.getId());
|
DataKey root = saves.getKey("npc." + npc.getId());
|
||||||
root.setString("name", npc.getFullName());
|
root.setString("name", npc.getFullName());
|
||||||
root.setBoolean("spawned", npc.getBukkitEntity().isDead());
|
root.setBoolean("spawned", !npc.getBukkitEntity().isDead());
|
||||||
|
|
||||||
// Save the character if it exists
|
// Save the character if it exists
|
||||||
if (npc.getCharacter() != null) {
|
if (npc.getCharacter() != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user