// Increase fails by one and set.
fails++;
DenizenAPI._saves().set("Players." + playerName + "." + scriptName + "." + "Failed", fails);
// Call ScriptFailEvent
ScriptFailEvent event = new ScriptFailEvent(playerName, scriptName, fails);
Bukkit.getServer().getPluginManager().callEvent(event);
}