bugfix/remove_anvill_costcap #76
@@ -9,6 +9,7 @@ import de.steev.bm.utils.Config;
|
||||
import de.steev.bm.utils.exceptions.ConfigEntryExceptions;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -88,4 +89,8 @@ public class BetterMinecraft extends JavaPlugin implements Listener {
|
||||
// Even more Messaging
|
||||
this.getLogger().info(ChatColor.AQUA + "Ich geh dann mal :c");
|
||||
}
|
||||
|
||||
public FileConfiguration getPlayerDataConfig() {
|
||||
return this.playerData.getConfig();
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ public class KillListener implements Listener {
|
||||
if(event.getEntity() instanceof Player && this.gameManager.getConfigManager().GetBool("back_command")){
|
||||
Location death = ((Player) event.getEntity()).getPlayer().getLocation();
|
||||
UUID uuid = ((Player) event.getEntity()).getPlayer().getUniqueId();
|
||||
this.gameManager.getPlugin().getPlayerDataConfig().set("" + uuid + ".death", death);
|
||||
this.gameManager.getPlugin().getPlayerDataConfig().set(uuid + ".death", death);
|
||||
} else if(event.getEntity() instanceof Animals) {
|
||||
if(event.getEntity().toString() == "CraftPig" && this.gameManager.getConfigManager().GetBool("custom_drops")){
|
||||
amounts = new int[]{ 2,2 };
|
||||
|
||||
Reference in New Issue
Block a user