Separated the Classic Datapack to it's own folder.
This commit is contained in:
@@ -62,7 +62,7 @@ public class Olympiad extends ListenersContainer
|
||||
private static final List<StatsSet> HEROS_TO_BE = new ArrayList<>();
|
||||
private static final Map<Integer, Integer> NOBLES_RANK = new HashMap<>();
|
||||
|
||||
public static final String OLYMPIAD_HTML_PATH = "data/html/olympiad/";
|
||||
public static final String OLYMPIAD_HTML_PATH = "html/olympiad/";
|
||||
private static final String OLYMPIAD_LOAD_DATA = "SELECT current_cycle, period, olympiad_end, validation_end, " + "next_weekly_change FROM olympiad_data WHERE id = 0";
|
||||
private static final String OLYMPIAD_SAVE_DATA = "INSERT INTO olympiad_data (id, current_cycle, " + "period, olympiad_end, validation_end, next_weekly_change) VALUES (0,?,?,?,?,?) " + "ON DUPLICATE KEY UPDATE current_cycle=?, period=?, olympiad_end=?, " + "validation_end=?, next_weekly_change=?";
|
||||
private static final String OLYMPIAD_LOAD_NOBLES = "SELECT olympiad_nobles.charId, olympiad_nobles.class_id, " + "characters.char_name, olympiad_nobles.olympiad_points, olympiad_nobles.competitions_done, " + "olympiad_nobles.competitions_won, olympiad_nobles.competitions_lost, olympiad_nobles.competitions_drawn, " + "olympiad_nobles.competitions_done_week, olympiad_nobles.competitions_done_week_classed, olympiad_nobles.competitions_done_week_non_classed, olympiad_nobles.competitions_done_week_team " + "FROM olympiad_nobles, characters WHERE characters.charId = olympiad_nobles.charId";
|
||||
|
@@ -527,7 +527,7 @@ public class OlympiadManager
|
||||
if (points <= 0)
|
||||
{
|
||||
final NpcHtmlMessage message = new NpcHtmlMessage(player.getLastHtmlActionOriginId());
|
||||
message.setFile(player.getHtmlPrefix(), "data/html/olympiad/noble_nopoints1.htm");
|
||||
message.setFile(player.getHtmlPrefix(), "html/olympiad/noble_nopoints1.htm");
|
||||
message.replace("%objectId%", String.valueOf(noble.getLastHtmlActionOriginId()));
|
||||
player.sendPacket(message);
|
||||
return false;
|
||||
@@ -536,7 +536,7 @@ public class OlympiadManager
|
||||
if ((Config.L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP > 0) && !AntiFeedManager.getInstance().tryAddPlayer(AntiFeedManager.OLYMPIAD_ID, noble, Config.L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP))
|
||||
{
|
||||
final NpcHtmlMessage message = new NpcHtmlMessage(player.getLastHtmlActionOriginId());
|
||||
message.setFile(player.getHtmlPrefix(), "data/html/mods/OlympiadIPRestriction.htm");
|
||||
message.setFile(player.getHtmlPrefix(), "html/mods/OlympiadIPRestriction.htm");
|
||||
message.replace("%max%", String.valueOf(AntiFeedManager.getInstance().getLimit(player, Config.L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP)));
|
||||
player.sendPacket(message);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user