Moved array designators to the type.

This commit is contained in:
MobiusDevelopment
2021-12-06 02:26:10 +00:00
parent a4a2115b81
commit b5c2af483e
99 changed files with 101 additions and 101 deletions
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -376,7 +376,7 @@ public class Minigame extends AbstractNpcAI
private boolean _started; private boolean _started;
private int _attemptNumber; private int _attemptNumber;
private int _currentPot; private int _currentPot;
private final int _order[]; private final int[] _order;
public MinigameRoom(Npc[] burners, Npc manager) public MinigameRoom(Npc[] burners, Npc manager)
{ {
@@ -30,7 +30,7 @@ public class Q00137_TempleChampionPart1 extends Quest
{ {
// NPCs // NPCs
private static final int SYLVAIN = 30070; private static final int SYLVAIN = 30070;
private static final int MOBS[] = private static final int[] MOBS =
{ {
20147, // Hobgoblin 20147, // Hobgoblin
20203, // Dion Grizzly 20203, // Dion Grizzly
@@ -3162,7 +3162,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -376,7 +376,7 @@ public class Minigame extends AbstractNpcAI
private boolean _started; private boolean _started;
private int _attemptNumber; private int _attemptNumber;
private int _currentPot; private int _currentPot;
private final int _order[]; private final int[] _order;
public MinigameRoom(Npc[] burners, Npc manager) public MinigameRoom(Npc[] burners, Npc manager)
{ {
@@ -30,7 +30,7 @@ public class Q00137_TempleChampionPart1 extends Quest
{ {
// NPCs // NPCs
private static final int SYLVAIN = 30070; private static final int SYLVAIN = 30070;
private static final int MOBS[] = private static final int[] MOBS =
{ {
20147, // Hobgoblin 20147, // Hobgoblin
20203, // Dion Grizzly 20203, // Dion Grizzly
@@ -3185,7 +3185,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -376,7 +376,7 @@ public class Minigame extends AbstractNpcAI
private boolean _started; private boolean _started;
private int _attemptNumber; private int _attemptNumber;
private int _currentPot; private int _currentPot;
private final int _order[]; private final int[] _order;
public MinigameRoom(Npc[] burners, Npc manager) public MinigameRoom(Npc[] burners, Npc manager)
{ {
@@ -30,7 +30,7 @@ public class Q00137_TempleChampionPart1 extends Quest
{ {
// NPCs // NPCs
private static final int SYLVAIN = 30070; private static final int SYLVAIN = 30070;
private static final int MOBS[] = private static final int[] MOBS =
{ {
20147, // Hobgoblin 20147, // Hobgoblin
20203, // Dion Grizzly 20203, // Dion Grizzly
@@ -3207,7 +3207,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -376,7 +376,7 @@ public class Minigame extends AbstractNpcAI
private boolean _started; private boolean _started;
private int _attemptNumber; private int _attemptNumber;
private int _currentPot; private int _currentPot;
private final int _order[]; private final int[] _order;
public MinigameRoom(Npc[] burners, Npc manager) public MinigameRoom(Npc[] burners, Npc manager)
{ {
@@ -3181,7 +3181,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -376,7 +376,7 @@ public class Minigame extends AbstractNpcAI
private boolean _started; private boolean _started;
private int _attemptNumber; private int _attemptNumber;
private int _currentPot; private int _currentPot;
private final int _order[]; private final int[] _order;
public MinigameRoom(Npc[] burners, Npc manager) public MinigameRoom(Npc[] burners, Npc manager)
{ {
@@ -3190,7 +3190,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -3202,7 +3202,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -3245,7 +3245,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -3261,7 +3261,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -3257,7 +3257,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -3293,7 +3293,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -182,7 +182,7 @@ public class Lindvior extends AbstractNpcAI
{21170106, 21170107}, {21170106, 21170107},
{21170108, 21170109} {21170108, 21170109}
}; };
protected final int _chargedValues[] = new int[] {0, 0, 0, 0}; protected final int[] _chargedValues = new int[] {0, 0, 0, 0};
private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243}; private static final int[] LINDVIOR_SERVITOR = {25895, 25896, 25897, 29242, 29241, 29243};
// @formatter:on // @formatter:on
private static final NpcStringId[] GUARD_MSG = private static final NpcStringId[] GUARD_MSG =
@@ -3293,7 +3293,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -1283,7 +1283,7 @@ public class Config
LEVEL_TO_GET_WEAPON_PENALTY = generalConfig.getInt("LevelToGetWeaponPenalty", 20); LEVEL_TO_GET_WEAPON_PENALTY = generalConfig.getInt("LevelToGetWeaponPenalty", 20);
INVUL_NPC_LIST = new ArrayList<>(); INVUL_NPC_LIST = new ArrayList<>();
final String t = generalConfig.getString("InvulNpcList", "30001-32132,35092-35103,35142-35146,35176-35187,35218-35232,35261-35278,35308-35319,35352-35367,35382-35407,35417-35427,35433-35469,35497-35513,35544-35587,35600-35617,35623-35628,35638-35640,35644,35645,50007,70010,99999"); final String t = generalConfig.getString("InvulNpcList", "30001-32132,35092-35103,35142-35146,35176-35187,35218-35232,35261-35278,35308-35319,35352-35367,35382-35407,35417-35427,35433-35469,35497-35513,35544-35587,35600-35617,35623-35628,35638-35640,35644,35645,50007,70010,99999");
String as[]; String[] as;
final int k = (as = t.split(",")).length; final int k = (as = t.split(",")).length;
for (int j = 0; j < k; j++) for (int j = 0; j < k; j++)
{ {
@@ -30,7 +30,7 @@ public class HeroCustomItem implements IItemHandler
{ {
protected static final Logger LOGGER = Logger.getLogger(HeroCustomItem.class.getName()); protected static final Logger LOGGER = Logger.getLogger(HeroCustomItem.class.getName());
private static final int ITEM_IDS[] = private static final int[] ITEM_IDS =
{ {
Config.HERO_CUSTOM_ITEM_ID Config.HERO_CUSTOM_ITEM_ID
}; };
@@ -35,7 +35,7 @@ public class FakePlayer
private String _title; private String _title;
private int[] _int; // Player integer stats private int[] _int; // Player integer stats
private boolean _boolean[]; // Player booolean stats private boolean[] _boolean; // Player booolean stats
private Npc _npcInstance; // Reference to Npc with this stats private Npc _npcInstance; // Reference to Npc with this stats
private ClassId _classId; // ClassId of this (N)Pc private ClassId _classId; // ClassId of this (N)Pc
@@ -481,7 +481,7 @@ public class FakePlayer
// Not really necessary but maybe called upon on wrong random settings: // Not really necessary but maybe called upon on wrong random settings:
// Initiate this Player class id to the correct Player class. // Initiate this Player class id to the correct Player class.
final ClassId ids[] = ClassId.values(); final ClassId[] ids = ClassId.values();
if (ids != null) if (ids != null)
{ {
for (ClassId id : ids) for (ClassId id : ids)
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Folk public class RaceManager extends Folk
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -48,7 +48,7 @@ public class KnownListUpdateTaskManager
{ {
try try
{ {
for (WorldRegion regions[] : World.getInstance().getAllWorldRegions()) for (WorldRegion[] regions : World.getInstance().getAllWorldRegions())
{ {
for (WorldRegion r : regions) // go through all world regions for (WorldRegion r : regions) // go through all world regions
{ {
@@ -1334,7 +1334,7 @@ public class Config
ACTIVE_AUGMENTS_START_REUSE_TIME = generalConfig.getInt("AugmStartReuseTime", 0); ACTIVE_AUGMENTS_START_REUSE_TIME = generalConfig.getInt("AugmStartReuseTime", 0);
INVUL_NPC_LIST = new ArrayList<>(); INVUL_NPC_LIST = new ArrayList<>();
final String t = generalConfig.getString("InvulNpcList", "30001-32132,35092-35103,35142-35146,35176-35187,35218-35232,35261-35278,35308-35319,35352-35367,35382-35407,35417-35427,35433-35469,35497-35513,35544-35587,35600-35617,35623-35628,35638-35640,35644,35645,50007,70010,99999"); final String t = generalConfig.getString("InvulNpcList", "30001-32132,35092-35103,35142-35146,35176-35187,35218-35232,35261-35278,35308-35319,35352-35367,35382-35407,35417-35427,35433-35469,35497-35513,35544-35587,35600-35617,35623-35628,35638-35640,35644,35645,50007,70010,99999");
String as[]; String[] as;
final int k = (as = t.split(",")).length; final int k = (as = t.split(",")).length;
for (int j = 0; j < k; j++) for (int j = 0; j < k; j++)
{ {
@@ -30,7 +30,7 @@ public class HeroCustomItem implements IItemHandler
{ {
protected static final Logger LOGGER = Logger.getLogger(HeroCustomItem.class.getName()); protected static final Logger LOGGER = Logger.getLogger(HeroCustomItem.class.getName());
private static final int ITEM_IDS[] = private static final int[] ITEM_IDS =
{ {
Config.HERO_CUSTOM_ITEM_ID Config.HERO_CUSTOM_ITEM_ID
}; };
@@ -35,7 +35,7 @@ public class FakePlayer
private String _title; private String _title;
private int[] _int; // Player integer stats private int[] _int; // Player integer stats
private boolean _boolean[]; // Player booolean stats private boolean[] _boolean; // Player booolean stats
private Npc _npcInstance; // Reference to Npc with this stats private Npc _npcInstance; // Reference to Npc with this stats
private ClassId _classId; // ClassId of this (N)Pc private ClassId _classId; // ClassId of this (N)Pc
@@ -481,7 +481,7 @@ public class FakePlayer
// Not really necessary but maybe called upon on wrong random settings: // Not really necessary but maybe called upon on wrong random settings:
// Initiate this Player class id to the correct Player class. // Initiate this Player class id to the correct Player class.
final ClassId ids[] = ClassId.values(); final ClassId[] ids = ClassId.values();
if (ids != null) if (ids != null)
{ {
for (ClassId id : ids) for (ClassId id : ids)
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Folk public class RaceManager extends Folk
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -48,7 +48,7 @@ public class KnownListUpdateTaskManager
{ {
try try
{ {
for (WorldRegion regions[] : World.getInstance().getAllWorldRegions()) for (WorldRegion[] regions : World.getInstance().getAllWorldRegions())
{ {
for (WorldRegion r : regions) // go through all world regions for (WorldRegion r : regions) // go through all world regions
{ {
@@ -2748,7 +2748,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -2755,7 +2755,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3090,7 +3090,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3096,7 +3096,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3096,7 +3096,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3096,7 +3096,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3105,7 +3105,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3150,7 +3150,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -235,7 +235,7 @@ public class KetraOrcSupport extends AbstractNpcAI
return htmltext; return htmltext;
} }
public static void main(String args[]) public static void main(String[] args)
{ {
new KetraOrcSupport(); new KetraOrcSupport();
} }
@@ -235,7 +235,7 @@ public class VarkaSilenosSupport extends AbstractNpcAI
return htmltext; return htmltext;
} }
public static void main(String args[]) public static void main(String[] args)
{ {
new VarkaSilenosSupport(); new VarkaSilenosSupport();
} }
@@ -87,7 +87,7 @@ public class Valakas extends AbstractNpcAI
}; };
// Locations // Locations
private static final Location TELEPORT_CUBE_LOCATIONS[] = private static final Location[] TELEPORT_CUBE_LOCATIONS =
{ {
new Location(214880, -116144, -1644), new Location(214880, -116144, -1644),
new Location(213696, -116592, -1644), new Location(213696, -116592, -1644),
@@ -3110,7 +3110,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3199,7 +3199,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3205,7 +3205,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,
@@ -3205,7 +3205,7 @@ public class Config
COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length); COMMUNITY_AVAILABLE_TELEPORTS = new HashMap<>(availableTeleports.length);
for (String s : availableTeleports) for (String s : availableTeleports)
{ {
final String splitInfo[] = s.split(","); final String[] splitInfo = s.split(",");
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3]))); COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
} }
@@ -68,7 +68,7 @@ public class ItemCommissionManager
private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000; private static final long MIN_REGISTRATION_AND_SALE_FEE = 1000;
private static final double REGISTRATION_FEE_PER_DAY = 0.0001; private static final double REGISTRATION_FEE_PER_DAY = 0.0001;
private static final double SALE_FEE_PER_DAY = 0.005; private static final double SALE_FEE_PER_DAY = 0.005;
private static final int DURATION[] = private static final int[] DURATION =
{ {
1, 1,
3, 3,
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class RaceManager extends Npc public class RaceManager extends Npc
{ {
protected static final int TICKET_PRICES[] = protected static final int[] TICKET_PRICES =
{ {
100, 100,
500, 500,