Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
Ребят,прошу помощи ивент стартует начисляются очки командам при убийстве и тд все верно.
но он не заканчивается как должен. тупо бесконечный
но он не заканчивается как должен. тупо бесконечный
Код:
package Ice.IceWindFinal.config.events;
import Ice.IceWindFinal.config.PropertyListenerImpl;
import java.util.ArrayList;
import jfork.nproperty.Cfg;
import jfork.nproperty.CfgIgnore;
import jfork.nproperty.CfgSplit;
import jfork.nproperty.ConfigParser;
@Cfg
public class ConfigEventsNew
extends PropertyListenerImpl
{
public static final String PATH = "./config/events/EventsNew.ini";
public static boolean eventBigHunt = false;
public static int eventBigHuntMinPlayer = 2;
public static int eventBigHuntMaxPlayer = 200;
public static int eventBigHuntMinLvl = 1;
public static int eventBigHuntMaxLvl = 99;
public static int eventBigHuntZoneId = 3000002;
@CfgIgnore
public static ArrayList<Time> eventBigHuntTime;
@CfgSplit(splitter=";")
public static ArrayList<Integer> eventBigHuntReward;
@CfgSplit(splitter=";")
public static ArrayList<Integer> eventBigHuntRewardRate;
public static boolean eventTvT = false;
public static int eventTvTMinPlayer = 2;
public static int eventTvTMaxPlayer = 200;
public static int eventTvTMinLvl = 1;
public static int eventTvTMaxLvl = 99;
public static int eventTvTZoneId = 3000002;
@CfgIgnore
public static ArrayList<Time> eventTvTTime;
@CfgSplit(splitter=";")
public static ArrayList<Integer> eventTvTReward;
@CfgSplit(splitter=";")
public static ArrayList<Integer> eventTvTRewardRate;
public static boolean eventElpies = false;
@CfgIgnore
public static ArrayList<Time> eventElpiesTime;
public static boolean eventRabbits = false;
@CfgIgnore
public static ArrayList<Time> eventRabbitsTime;
public static boolean eventAttackOnTheCity = false;
@CfgIgnore
public static ArrayList<Time> eventAttackOnTheCityTime;
public static boolean eventHappyHalfHour = false;
@CfgIgnore
public static ArrayList<Time> eventHappyHalfHourTime;
public static double eventHappyHalfHourRates = 1.3D;
public static boolean eventLuckyMan = false;
public static int eventLuckyManRewardId = 4037;
public static long eventLuckyManRewardCount = 5L;
private ConfigEventsNew()
{
try
{
ConfigParser.parse(this, "./config/events/EventsNew.ini", true);
}
catch (Exception e)
{
throw new Error("Failed to Load ./config/events/EventsNew.ini File.", e);
}
}
@Cfg("eventBigHuntTime")
private static void setEventBigHuntTime(String value)
{
eventBigHuntTime = new ArrayList();
String[] times = value.split(";");
if (!times[0].isEmpty())
{
for (String s : times)
{
String[] time = s.split(":");
int hour = Integer.parseInt(time[0]);
int minute = Integer.parseInt(time[1]);
eventBigHuntTime.add(new Time(hour, minute));
}
}
}
@Cfg("eventTvTTime")
private static void setEventTvTTime(String value)
{
eventTvTTime = new ArrayList();
String[] times = value.split(";");
if (!times[0].isEmpty())
{
for (String s : times)
{
String[] time = s.split(":");
int hour = Integer.parseInt(time[0]);
int minute = Integer.parseInt(time[1]);
eventTvTTime.add(new Time(hour, minute));
}
}
}
@Cfg("eventElpiesTime")
private static void setEventElpiesTime(String value)
{
eventElpiesTime = new ArrayList();
String[] times = value.split(";");
if (!times[0].isEmpty())
{
for (String s : times)
{
String[] time = s.split(":");
int hour = Integer.parseInt(time[0]);
int minute = Integer.parseInt(time[1]);
eventElpiesTime.add(new Time(hour, minute));
}
}
}
@Cfg("eventRabbitsTime")
private static void setEventRabbitsTime(String value)
{
eventRabbitsTime = new ArrayList();
String[] times = value.split(";");
if (!times[0].isEmpty())
{
for (String s : times)
{
String[] time = s.split(":");
int hour = Integer.parseInt(time[0]);
int minute = Integer.parseInt(time[1]);
eventRabbitsTime.add(new Time(hour, minute));
}
}
}
@Cfg("eventAttackOnTheCityTime")
private static void setEventAttackOnTheCityTime(String value)
{
eventAttackOnTheCityTime = new ArrayList();
String[] times = value.split(";");
if (!times[0].isEmpty())
{
for (String s : times)
{
String[] time = s.split(":");
int hour = Integer.parseInt(time[0]);
int minute = Integer.parseInt(time[1]);
eventAttackOnTheCityTime.add(new Time(hour, minute));
}
}
}
@Cfg("eventHappyHalfHourTime")
private static void setEventhappyHalfHourTime(String value)
{
eventHappyHalfHourTime = new ArrayList();
String[] times = value.split(";");
if (!times[0].isEmpty())
{
for (String s : times)
{
String[] time = s.split(":");
int hour = Integer.parseInt(time[0]);
int minute = Integer.parseInt(time[1]);
eventHappyHalfHourTime.add(new Time(hour, minute));
}
}
}
public static void loadConfig()
{
new ConfigEventsNew();
}
}