RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.Config Class Reference

The class that contains setting-related constants for the server. More...

Collaboration diagram for com.runehive.Config:

Static Public Attributes

static final int ACTIVITY_TAB = 7
static final double AGILITY_MODIFICATION
 The experience modification for agility.
static final int ATTACK_TAB = 0
 All the tab identifications.
static final String[] BAD_STRINGS
 Strings that are classified as bad.
static final int CLAN_TAB = 10
static final int CLIENT_PACKET_THRESHOLD
 The amount of client (incoming) packets that can be handled by the server each tick.
static final int CLIENT_VERSION
static final double COMBAT_MODIFICATION
 The experience modification for combat.
static final int CONNECTION_LIMIT
 The maximum amount of connections that can be active at a time, or in other words how many clients can be logged in at once per connection.
static final double COOKING_MODIFICATION
 The experience modification for cooking.
static final double CRAFTING_MODIFICATION
 The experience modification for crafting.
static final int CURRENCY = 995
 The currency identification of the server.
static final Appearance DEFAULT_APPEARANCE
 The default appearance of a player.
static final Position DEFAULT_POSITION = new Position(3087, 3497, 0)
 The default, i.e.
static boolean DISABLE_BROADCASTS = true
 Flag to disable all broadcast messages (TriviaBot, killstreaks, pets, etc.)
static final String DISCORD_TOKEN
 The OS Royale community discord token.
static boolean DISPLAY_PACKETS = Config.SERVER_DEBUG
 Displays packet information in the output stream.
static boolean DOUBLE_EXPERIENCE = false
static final int EMAIL_MAX_CHARACTERS = 28
static final int EMAIL_MIN_CHARACTERS = 7
static final int EMOTE_TAB = 12
static final int EQUIPMENT_TAB = 4
static final int FAILED_LOGIN_ATTEMPTS
static final int FAILED_LOGIN_TIMEOUT
static final double FARMING_MODIFICATION
 The experience modification for farming.
static final double FIREMAKING_MODIFICATION
 The experience modification for firemaking.
static final double FISHING_MODIFICATION
 The experience modification for fishing.
static final double FLETCHING_MODIFICATION
 The experience modification for fletching.
static final String FORUM_DB_PASS
 This is used for mySQL to authenticate username and passwords from the forum.
static final String FORUM_DB_URL
 This is used for mySQL to authenticate username and passwords from the forum.
static final String FORUM_DB_USER
 This is used for mySQL to authenticate username and passwords from the forum.
static final boolean FORUM_INTEGRATION
 If forum integration is true, users can only login if they enter the same username and password that's on the forums also mongo must be running when this is true.
static final int FRIENDS_TAB = 8
static final Position GAMBLING_ZONE = new Position(1886, 5025, 0)
static final double HERBLORE_MODIFICATION
 The experience modification for herblore.
static boolean highscoresEnabled = false
static final double HUNTER_MODIFICATION
 The experience modification for hunter.
static final int IDLE_TIMEOUT
 The number of seconds before a connection becomes idle.
static final int IGNORE_TAB = 9
static final ObjectSet< String > IGNORED_EXCEPTIONS
 The list of exceptions that are ignored and discarded by the.
static final int INVENTORY_TAB = 3
static final int IP_TOS
static final int ITEM_DEFINITION_LIMIT
 The limit of the item identification.
static final Position JAIL_ZONE = new Position(2713, 2564, 0)
 The Jail zone.
static final String LATEST_ANNOUNCEMENT_THREAD = ""
 The latest announcement thread link.
static final String LATEST_UPDATE_THREAD = ""
 The latest update thread link.
static final int[] LEET_BANK_AMOUNTS = {7, 46, 19, 42, 41, 15, 21, 4, 0, 0,}
 TEMP VARS - WILL BE DELETED AFTER BETA IS FINISHED.
static final Item[] LEET_BANK_ITEMS
static final boolean LOG_PLAYER
static final int LOGIN_THESHOLD
 The amount of players that can be logged in, in a single cycle.
static final int LOGOUT_TAB = 14
static final int LOGOUT_THESHOLD
 The amount of players that can logout in a single cycle.
static final double MAGIC_MODIFICATION
 The experience modification for magic.
static final int MAGIC_TAB = 6
static final int MAX_BOTS
 The amount of bots that will spawn into the game world.
static final int MAX_NPCS
 The maximum amount of npcs that can be held within the game world.
static final int MAX_PLAYERS
 The maximum amount of players that can be held within the game world.
static final String[] MESSAGES
 Messages that are sent periodically to all players.
static final double MINING_MODIFICATION
 The experience modification for mining.
static final int MUSIC_TAB = 13
static final int NPC_BITS
 The npc bits for the server which can execute 6755 npcs.
static final int NPC_DEFINITION_LIMIT
 The limit of the npc identification.
static final int NPC_WALKING_RADIUS
 The walking radius for Npc.
static final boolean PARALLEL_GAME_ENGINE
 This will use the parallel game game.
static final int PASSWORD_MAX_CHARACTERS = 20
static final String POSTGRE_PASS
static final String POSTGRE_URL
static final String POSTGRE_USER
static final double PRAYER_MODIFICATION
 The experience modification for prayer.
static final int PRAYER_TAB = 5
static final int QUEST_TAB = 2
static final Position REGULAR_DONATOR_ZONE = new Position(2478, 10435, 0)
static final ResourceLeakDetector.Level RESOURCE_LEAK_DETECTION
 The resource leak detection level, should be PARANOID in a development environment and DISABLED in a production environment.
static final BigInteger RSA_EXPONENT
 The RSA exponent.
static final BigInteger RSA_MODULUS
 The RSA modulus.
static final double RUNECRAFTING_MODIFICATION
 The experience modification for runecrafting.
static final boolean SERVER_CYCLE_DEBUG
 Displays the time in milliseconds each tick the game takes to run through a game cycle.
static boolean SERVER_DEBUG
 The development state flag.
static final String SERVER_NAME
 The name of the server.
static final int SERVER_PACKET_THRESHOLD
 The amount of server (outgoing) packets that can be written by the server each tick.
static final int SERVER_PORT
 The server port.
static final AttributeKey< SessionSESSION_KEY = AttributeKey.valueOf("session.key")
 The session key.
static final int[][] SIDEBAR_INTERFACE
 Holds the array of all the side-bar identification and their corresponding itemcontainer identification.
static final int SKILL_TAB = 1
static final int SKULL_TIME
 The time in ticks a player remains skulled for.
static final double SLAYER_MODIFICATION
 The experience modification for Slayer.
static final double SMITHING_MODIFICATION
 The experience modification for smithing.
static final AttributeKey< String > SOURCE_ADDRESS = AttributeKey.valueOf("source.address")
static final Position STAFF_ZONE = new Position(2602, 3874, 0)
 The staff zone.
static final Item[] STARTER_BANK
static final int[] STARTER_BANK_AMOUNT = { 2, 8, 21, 11, 48, 9, 0, 0, 0, 0, }
 Starter bank.
static final Position SUPER_DONATOR_ZONE = new Position(2426, 10419, 0)
 The donator zone.
static final boolean SUPPORT_HAPROXY
static final double THIEVING_MODIFICATION
 The experience modification for thieving.
static final int USERNAME_MAX_CHARACTERS = 12
static final int USERNAME_MIN_CHARACTERS = 3
static final String WEBSITE_URL
static final String[] WELCOME_ANNOUNCEMENT
 The welcome announcement.
static final String[] WELCOME_DIALOGUE
 The welcome dialogue.
static final String[] WELCOME_MARQUEE
 The welcome marquee.
static final String[] WELCOME_UPDATE
static final double WOODCUTTING_MODIFICATION
 The experience modification for woodcutting.
static WorldType WORLD_TYPE = WorldType.LOCAL
static final int WRENCH_TAB = 11

Static Package Functions

 [static initializer]

Detailed Description

The class that contains setting-related constants for the server.

Author
Daniel

Definition at line 24 of file Config.java.

Member Function Documentation

◆ [static initializer]()

Member Data Documentation

◆ ACTIVITY_TAB

◆ AGILITY_MODIFICATION

final double com.runehive.Config.AGILITY_MODIFICATION
static

◆ ATTACK_TAB

◆ BAD_STRINGS

final String [] com.runehive.Config.BAD_STRINGS
static
Initial value:
= {
"fag", "f4g", "faggot", "nigger", "fuck", "bitch", "whore", "slut",
"gay", "lesbian", "scape", ".net", ".org", "vagina", "dick",
"cock", "penis", "hoe", "soulsplit", "ikov", "retard", "cunt",
"g ay", "ga y", "g a y", "h o e",
}

Strings that are classified as bad.

Definition at line 216 of file Config.java.

216 {
217 "fag", "f4g", "faggot", "nigger", "fuck", "bitch", "whore", "slut",
218 "gay", "lesbian", "scape", ".net", ".org", "vagina", "dick",
219 "cock", "penis", "hoe", "soulsplit", "ikov", "retard", "cunt",
220 "g ay", "ga y", "g a y", "h o e",
221 };

Referenced by com.runehive.content.triviabot.TriviaBot.answer(), com.runehive.content.store.impl.PersonalStore.changeName(), com.runehive.content.clanchannel.channel.ClanChannel.setName(), com.runehive.content.clanchannel.channel.ClanChannel.setSlogan(), and com.runehive.content.clanchannel.channel.ClanChannel.setTag().

◆ CLAN_TAB

final int com.runehive.Config.CLAN_TAB = 10
static

◆ CLIENT_PACKET_THRESHOLD

final int com.runehive.Config.CLIENT_PACKET_THRESHOLD
static

The amount of client (incoming) packets that can be handled by the server each tick.

Definition at line 60 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.session.GameSession.processClientPackets().

◆ CLIENT_VERSION

final int com.runehive.Config.CLIENT_VERSION
static

◆ COMBAT_MODIFICATION

◆ CONNECTION_LIMIT

final int com.runehive.Config.CONNECTION_LIMIT
static

The maximum amount of connections that can be active at a time, or in other words how many clients can be logged in at once per connection.

Definition at line 73 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.ChannelFilter.channelRegistered().

◆ COOKING_MODIFICATION

final double com.runehive.Config.COOKING_MODIFICATION
static

◆ CRAFTING_MODIFICATION

◆ CURRENCY

◆ DEFAULT_APPEARANCE

final Appearance com.runehive.Config.DEFAULT_APPEARANCE
static
Initial value:
0, 10, 18, 26, 34, 36, 42, 0, 0, 0, 3, 1)
Represents a gender for a player character.
Definition Gender.java:8

The default appearance of a player.

Definition at line 212 of file Config.java.

◆ DEFAULT_POSITION

◆ DISABLE_BROADCASTS

boolean com.runehive.Config.DISABLE_BROADCASTS = true
static

Flag to disable all broadcast messages (TriviaBot, killstreaks, pets, etc.)

Definition at line 148 of file Config.java.

◆ DISCORD_TOKEN

final String com.runehive.Config.DISCORD_TOKEN
static

The OS Royale community discord token.

Definition at line 142 of file Config.java.

Referenced by [static initializer]().

◆ DISPLAY_PACKETS

boolean com.runehive.Config.DISPLAY_PACKETS = Config.SERVER_DEBUG
static

Displays packet information in the output stream.

Definition at line 67 of file Config.java.

Referenced by [static initializer]().

◆ DOUBLE_EXPERIENCE

◆ EMAIL_MAX_CHARACTERS

final int com.runehive.Config.EMAIL_MAX_CHARACTERS = 28
static

Definition at line 297 of file Config.java.

Referenced by com.runehive.net.session.LoginSession.evaluate().

◆ EMAIL_MIN_CHARACTERS

final int com.runehive.Config.EMAIL_MIN_CHARACTERS = 7
static

Definition at line 298 of file Config.java.

Referenced by com.runehive.net.session.LoginSession.evaluate().

◆ EMOTE_TAB

final int com.runehive.Config.EMOTE_TAB = 12
static

Definition at line 194 of file Config.java.

◆ EQUIPMENT_TAB

final int com.runehive.Config.EQUIPMENT_TAB = 4
static

Definition at line 194 of file Config.java.

◆ FAILED_LOGIN_ATTEMPTS

final int com.runehive.Config.FAILED_LOGIN_ATTEMPTS
static

◆ FAILED_LOGIN_TIMEOUT

final int com.runehive.Config.FAILED_LOGIN_TIMEOUT
static

◆ FARMING_MODIFICATION

◆ FIREMAKING_MODIFICATION

◆ FISHING_MODIFICATION

final double com.runehive.Config.FISHING_MODIFICATION
static

The experience modification for fishing.

Definition at line 292 of file Config.java.

Referenced by [static initializer](), and com.runehive.content.skill.impl.fishing.FishingAction.fish().

◆ FLETCHING_MODIFICATION

final double com.runehive.Config.FLETCHING_MODIFICATION
static

◆ FORUM_DB_PASS

final String com.runehive.Config.FORUM_DB_PASS
static

This is used for mySQL to authenticate username and passwords from the forum.

Definition at line 126 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.service.ForumService.start().

◆ FORUM_DB_URL

final String com.runehive.Config.FORUM_DB_URL
static

This is used for mySQL to authenticate username and passwords from the forum.

Definition at line 120 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.service.ForumService.start().

◆ FORUM_DB_USER

final String com.runehive.Config.FORUM_DB_USER
static

This is used for mySQL to authenticate username and passwords from the forum.

Definition at line 123 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.service.ForumService.start().

◆ FORUM_INTEGRATION

final boolean com.runehive.Config.FORUM_INTEGRATION
static

If forum integration is true, users can only login if they enter the same username and password that's on the forums also mongo must be running when this is true.

Since all the players will be stored in the mongo database.

Definition at line 117 of file Config.java.

Referenced by [static initializer](), com.runehive.net.session.LoginSession.evaluate(), com.runehive.game.event.impl.log.LogEvent.log(), com.runehive.game.world.entity.mob.player.persist.PlayerPersistDB.save(), and com.runehive.RuneHive.start().

◆ FRIENDS_TAB

final int com.runehive.Config.FRIENDS_TAB = 8
static

Definition at line 194 of file Config.java.

◆ GAMBLING_ZONE

final Position com.runehive.Config.GAMBLING_ZONE = new Position(1886, 5025, 0)
static

Definition at line 209 of file Config.java.

◆ HERBLORE_MODIFICATION

final double com.runehive.Config.HERBLORE_MODIFICATION
static

◆ highscoresEnabled

boolean com.runehive.Config.highscoresEnabled = false
static

Definition at line 137 of file Config.java.

Referenced by [static initializer]().

◆ HUNTER_MODIFICATION

final double com.runehive.Config.HUNTER_MODIFICATION
static

◆ IDLE_TIMEOUT

final int com.runehive.Config.IDLE_TIMEOUT
static

The number of seconds before a connection becomes idle.

Definition at line 76 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.ServerPipelineInitializer.initChannel().

◆ IGNORE_TAB

final int com.runehive.Config.IGNORE_TAB = 9
static

Definition at line 194 of file Config.java.

◆ IGNORED_EXCEPTIONS

final ObjectSet<String> com.runehive.Config.IGNORED_EXCEPTIONS
static
Initial value:
= new ObjectOpenHashSet<>(
Arrays.asList("An existing connection was forcibly closed by the remote host",
"An established connection was aborted by the software in your host machine"))

The list of exceptions that are ignored and discarded by the.

Definition at line 85 of file Config.java.

Referenced by com.runehive.net.ChannelHandler.exceptionCaught().

◆ INVENTORY_TAB

◆ IP_TOS

final int com.runehive.Config.IP_TOS
static

◆ ITEM_DEFINITION_LIMIT

final int com.runehive.Config.ITEM_DEFINITION_LIMIT
static

◆ JAIL_ZONE

◆ LATEST_ANNOUNCEMENT_THREAD

final String com.runehive.Config.LATEST_ANNOUNCEMENT_THREAD = ""
static

The latest announcement thread link.

Definition at line 27 of file Config.java.

◆ LATEST_UPDATE_THREAD

final String com.runehive.Config.LATEST_UPDATE_THREAD = ""
static

The latest update thread link.

Definition at line 30 of file Config.java.

◆ LEET_BANK_AMOUNTS

final int [] com.runehive.Config.LEET_BANK_AMOUNTS = {7, 46, 19, 42, 41, 15, 21, 4, 0, 0,}
static

TEMP VARS - WILL BE DELETED AFTER BETA IS FINISHED.

Definition at line 420 of file Config.java.

420{7, 46, 19, 42, 41, 15, 21, 4, 0, 0,};

◆ LEET_BANK_ITEMS

final Item [] com.runehive.Config.LEET_BANK_ITEMS
static

Definition at line 421 of file Config.java.

421 {
422 new Item(995, 10000), new Item(11665, 10000), new Item(11663, 10000), new Item(11664, 10000), new Item(8840, 10000),
423 new Item(8839, 10000), new Item(8842, 10000), new Item(4151, 10000), new Item(11802, 10000), new Item(11804, 10000),
424 new Item(11806, 10000), new Item(11808, 10000), new Item(13652, 10000), new Item(13576, 10000), new Item(4587, 10000),
425 new Item(1305, 10000), new Item(7158, 10000), new Item(1434, 10000), new Item(5698, 10000), new Item(1215, 10000),
426 new Item(11840, 10000), new Item(6585, 10000), new Item(12954, 10000), new Item(11283, 10000), new Item(10551, 10000),
427 new Item(4153, 10000), new Item(10828, 10000), new Item(3751, 10000), new Item(2550, 10000), new Item(3105, 10000),
428 new Item(1725, 10000), new Item(1704, 10000), new Item(1731, 10000), new Item(1163, 10000), new Item(1127, 10000),
429 new Item(1079, 10000), new Item(1201, 10000), new Item(7460, 10000), new Item(4131, 10000), new Item(11832, 10000),
430 new Item(11834, 10000), new Item(11836, 10000), new Item(21015, 10000), new Item(6570, 10000), new Item(13239, 10000),
431 new Item(11773, 10000), new Item(12931, 10000), new Item(13197, 10000), new Item(13199, 10000), new Item(19639, 10000),
432 new Item(19643, 10000), new Item(19647, 10000), new Item(11772, 10000), new Item(861, 10000), new Item(892, 10000),
433 new Item(9185, 10000), new Item(9244, 10000), new Item(868, 10000), new Item(811, 10000), new Item(10498, 10000),
434 new Item(10499, 10000), new Item(3749, 10000), new Item(2503, 10000), new Item(2497, 10000), new Item(2491, 10000),
435 new Item(19481, 10000), new Item(11785, 10000), new Item(11826, 10000), new Item(11828, 10000), new Item(11830, 10000),
436 new Item(13237, 10000), new Item(11771, 10000), new Item(4675, 10000), new Item(12904, 10000), new Item(11791, 10000),
437 new Item(11770, 10000), new Item(13235, 10000), new Item(3755, 10000), new Item(1540, 10000), new Item(6889, 10000),
438 new Item(2412, 10000), new Item(3840, 10000), new Item(2413, 10000), new Item(3844, 10000), new Item(2414, 10000),
439 new Item(3842, 10000), new Item(4089, 10000), new Item(4091, 10000), new Item(4093, 10000), new Item(4095, 10000),
440 new Item(4097, 10000), new Item(4099, 10000), new Item(4101, 10000), new Item(4103, 10000), new Item(4105, 10000),
441 new Item(4107, 10000), new Item(4109, 10000), new Item(4111, 10000), new Item(4113, 10000), new Item(4115, 10000),
442 new Item(4117, 10000), new Item(554, 10000), new Item(555, 10000), new Item(556, 10000), new Item(557, 10000),
443 new Item(558, 10000), new Item(559, 10000), new Item(560, 10000), new Item(561, 10000), new Item(562, 10000),
444 new Item(563, 10000), new Item(564, 10000), new Item(565, 10000), new Item(9075, 10000), new Item(6685, 10000),
445 new Item(3024, 10000), new Item(2436, 10000), new Item(2440, 10000), new Item(2442, 10000), new Item(2444, 10000),
446 new Item(3040, 10000), new Item(2434, 10000), new Item(2448, 10000), new Item(6687, 10000), new Item(3026, 10000),
447 new Item(145, 10000), new Item(157, 10000), new Item(163, 10000), new Item(169, 10000), new Item(3042, 10000),
448 new Item(139, 10000), new Item(181, 10000), new Item(6689, 10000), new Item(3028, 10000), new Item(147, 10000),
449 new Item(159, 10000), new Item(165, 10000), new Item(171, 10000), new Item(3044, 10000), new Item(141, 10000),
450 new Item(183, 10000), new Item(6691, 10000), new Item(3030, 10000), new Item(149, 10000), new Item(161, 10000),
451 new Item(167, 10000), new Item(173, 10000), new Item(3046, 10000), new Item(143, 10000), new Item(185, 10000),
452 new Item(12695, 10000), new Item(3144, 10000), new Item(391, 10000), new Item(7060, 10000), new Item(385, 10000),
453 new Item(4315, 10000), new Item(4317, 10000), new Item(4319, 10000), new Item(4335, 10000), new Item(4337, 10000),
454 new Item(4339, 10000), new Item(4355, 10000), new Item(4357, 10000), new Item(4359, 10000), new Item(4375, 10000),
455 new Item(4377, 10000), new Item(4379, 10000), new Item(4395, 10000), new Item(4397, 10000), new Item(4399, 10000),
456 new Item(4716, 10000), new Item(4718, 10000), new Item(4720, 10000), new Item(4722, 10000), new Item(4745, 10000),
457 new Item(4747, 10000), new Item(4749, 10000), new Item(4751, 10000), new Item(4732, 10000), new Item(4734, 10000),
458 new Item(4736, 10000), new Item(4738, 10000), new Item(4740, 10000), new Item(4708, 10000), new Item(4710, 10000),
459 new Item(4712, 10000), new Item(4714, 10000), new Item(4753, 10000), new Item(4755, 10000), new Item(4757, 10000),
460 new Item(4759, 10000), new Item(12829, 10000), new Item(12821, 10000), new Item(12817, 10000), new Item(12825, 10000),
461 };

◆ LOG_PLAYER

final boolean com.runehive.Config.LOG_PLAYER
static

◆ LOGIN_THESHOLD

final int com.runehive.Config.LOGIN_THESHOLD
static

The amount of players that can be logged in, in a single cycle.

Definition at line 160 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.world.World.dequeLogins().

◆ LOGOUT_TAB

◆ LOGOUT_THESHOLD

final int com.runehive.Config.LOGOUT_THESHOLD
static

The amount of players that can logout in a single cycle.

Definition at line 163 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.world.World.dequeLogouts().

◆ MAGIC_MODIFICATION

◆ MAGIC_TAB

◆ MAX_BOTS

final int com.runehive.Config.MAX_BOTS
static

The amount of bots that will spawn into the game world.

Definition at line 172 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.task.impl.BotStartupEvent.tick().

◆ MAX_NPCS

final int com.runehive.Config.MAX_NPCS
static

The maximum amount of npcs that can be held within the game world.

Definition at line 169 of file Config.java.

Referenced by [static initializer]().

◆ MAX_PLAYERS

final int com.runehive.Config.MAX_PLAYERS
static

The maximum amount of players that can be held within the game world.

Definition at line 166 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.session.LoginSession.evaluate().

◆ MESSAGES

final String [] com.runehive.Config.MESSAGES
static
Initial value:
= {
"",
"",
}

Messages that are sent periodically to all players.

Definition at line 224 of file Config.java.

224 {
225 "",
226 "",
227
228 };

Referenced by com.runehive.game.task.impl.MessageEvent.execute().

◆ MINING_MODIFICATION

final double com.runehive.Config.MINING_MODIFICATION
static

◆ MUSIC_TAB

final int com.runehive.Config.MUSIC_TAB = 13
static

Definition at line 194 of file Config.java.

◆ NPC_BITS

final int com.runehive.Config.NPC_BITS
static

The npc bits for the server which can execute 6755 npcs.

Definition at line 184 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.packet.out.SendNpcUpdate.addNewNpc().

◆ NPC_DEFINITION_LIMIT

final int com.runehive.Config.NPC_DEFINITION_LIMIT
static

The limit of the npc identification.

Definition at line 178 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.get().

◆ NPC_WALKING_RADIUS

final int com.runehive.Config.NPC_WALKING_RADIUS
static

The walking radius for Npc.

Definition at line 157 of file Config.java.

Referenced by [static initializer](), and com.runehive.content.skill.SkillRepository.spawn().

◆ PARALLEL_GAME_ENGINE

final boolean com.runehive.Config.PARALLEL_GAME_ENGINE
static

This will use the parallel game game.

Definition at line 108 of file Config.java.

Referenced by [static initializer](), com.runehive.game.engine.GameEngine.GameEngine(), and com.runehive.RuneHive.start().

◆ PASSWORD_MAX_CHARACTERS

final int com.runehive.Config.PASSWORD_MAX_CHARACTERS = 20
static

Definition at line 301 of file Config.java.

Referenced by [static initializer]().

◆ POSTGRE_PASS

final String com.runehive.Config.POSTGRE_PASS
static

◆ POSTGRE_URL

final String com.runehive.Config.POSTGRE_URL
static

◆ POSTGRE_USER

final String com.runehive.Config.POSTGRE_USER
static

◆ PRAYER_MODIFICATION

◆ PRAYER_TAB

final int com.runehive.Config.PRAYER_TAB = 5
static

Definition at line 194 of file Config.java.

◆ QUEST_TAB

final int com.runehive.Config.QUEST_TAB = 2
static

◆ REGULAR_DONATOR_ZONE

final Position com.runehive.Config.REGULAR_DONATOR_ZONE = new Position(2478, 10435, 0)
static

Definition at line 201 of file Config.java.

◆ RESOURCE_LEAK_DETECTION

final ResourceLeakDetector.Level com.runehive.Config.RESOURCE_LEAK_DETECTION
static

The resource leak detection level, should be PARANOID in a development environment and DISABLED in a production environment.

Definition at line 82 of file Config.java.

Referenced by [static initializer]().

◆ RSA_EXPONENT

final BigInteger com.runehive.Config.RSA_EXPONENT
static

The RSA exponent.

Definition at line 98 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.codec.login.LoginDecoder.decodePayload().

◆ RSA_MODULUS

final BigInteger com.runehive.Config.RSA_MODULUS
static

The RSA modulus.

Definition at line 95 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.codec.login.LoginDecoder.decodePayload().

◆ RUNECRAFTING_MODIFICATION

final double com.runehive.Config.RUNECRAFTING_MODIFICATION
static

The experience modification for runecrafting.

Definition at line 277 of file Config.java.

Referenced by [static initializer](), and com.runehive.content.skill.impl.runecrafting.Runecraft.modifier().

◆ SERVER_CYCLE_DEBUG

final boolean com.runehive.Config.SERVER_CYCLE_DEBUG
static

Displays the time in milliseconds each tick the game takes to run through a game cycle.

Definition at line 151 of file Config.java.

Referenced by [static initializer]().

◆ SERVER_DEBUG

boolean com.runehive.Config.SERVER_DEBUG
static

The development state flag.

(Always make sure you run the official server with this disabled!)

Definition at line 145 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.engine.GameEngine.runOneIteration().

◆ SERVER_NAME

final String com.runehive.Config.SERVER_NAME
static

The name of the server.

Definition at line 111 of file Config.java.

Referenced by [static initializer](), and com.runehive.game.world.entity.mob.player.Player.sendInitialPackets().

◆ SERVER_PACKET_THRESHOLD

final int com.runehive.Config.SERVER_PACKET_THRESHOLD
static

The amount of server (outgoing) packets that can be written by the server each tick.

Definition at line 64 of file Config.java.

Referenced by [static initializer](), and com.runehive.net.session.GameSession.processServerPacketQueue().

◆ SERVER_PORT

final int com.runehive.Config.SERVER_PORT
static

The server port.

Definition at line 154 of file Config.java.

Referenced by [static initializer](), and com.runehive.RuneHive.start().

◆ SESSION_KEY

◆ SIDEBAR_INTERFACE

final int [][] com.runehive.Config.SIDEBAR_INTERFACE
static
Initial value:
= {
{Config.ATTACK_TAB, 5855}, {Config.SKILL_TAB, 3917}, {Config.INVENTORY_TAB, 3213}, {Config.QUEST_TAB, 29400},
{Config.EQUIPMENT_TAB, 1644}, {Config.PRAYER_TAB, 5608}, {Config.CLAN_TAB, 33500}, {Config.FRIENDS_TAB, 5065},
{Config.IGNORE_TAB, 5715}, {Config.WRENCH_TAB, 50020}, {Config.EMOTE_TAB, 41000}, {Config.MUSIC_TAB, -1},
{Config.ACTIVITY_TAB, -1}, {Config.LOGOUT_TAB, 2449}
}
The class that contains setting-related constants for the server.
Definition Config.java:24
static final int ATTACK_TAB
All the tab identifications.
Definition Config.java:194
static final int INVENTORY_TAB
Definition Config.java:194
static final int SKILL_TAB
Definition Config.java:194

Holds the array of all the side-bar identification and their corresponding itemcontainer identification.

Definition at line 234 of file Config.java.

234 {
235 {Config.ATTACK_TAB, 5855}, {Config.SKILL_TAB, 3917}, {Config.INVENTORY_TAB, 3213}, {Config.QUEST_TAB, 29400},
236 {Config.EQUIPMENT_TAB, 1644}, {Config.PRAYER_TAB, 5608}, {Config.CLAN_TAB, 33500}, {Config.FRIENDS_TAB, 5065},
237 {Config.IGNORE_TAB, 5715}, {Config.WRENCH_TAB, 50020}, {Config.EMOTE_TAB, 41000}, {Config.MUSIC_TAB, -1},
238 {Config.ACTIVITY_TAB, -1}, {Config.LOGOUT_TAB, 2449}
239 };

Referenced by com.runehive.game.world.entity.mob.player.PlayerAssistant.setSidebar().

◆ SKILL_TAB

final int com.runehive.Config.SKILL_TAB = 1
static

Definition at line 194 of file Config.java.

◆ SKULL_TIME

final int com.runehive.Config.SKULL_TIME
static

The time in ticks a player remains skulled for.

720 ticks ~20 minutes

Definition at line 191 of file Config.java.

Referenced by [static initializer](), and com.runehive.content.combat.Skulling.skull().

◆ SLAYER_MODIFICATION

final double com.runehive.Config.SLAYER_MODIFICATION
static

The experience modification for Slayer.

Definition at line 280 of file Config.java.

Referenced by [static initializer](), and com.runehive.content.skill.impl.slayer.Slayer.activate().

◆ SMITHING_MODIFICATION

◆ SOURCE_ADDRESS

final AttributeKey<String> com.runehive.Config.SOURCE_ADDRESS = AttributeKey.valueOf("source.address")
static

◆ STAFF_ZONE

final Position com.runehive.Config.STAFF_ZONE = new Position(2602, 3874, 0)
static

The staff zone.

Definition at line 204 of file Config.java.

◆ STARTER_BANK

final Item [] com.runehive.Config.STARTER_BANK
static
Initial value:
= {
new Item(995, 500000), new Item(8013, 2500), new Item(1704, 1000), new Item(1725, 1000), new Item(1731, 1000),
new Item(2550, 1000), new Item(7458, 1000), new Item(7460, 1000), new Item(7461, 1000), new Item(3105, 1000),
new Item(4587, 1000), new Item(1305, 1000), new Item(1377, 1000), new Item(1434, 1000), new Item(5698, 1000),
new Item(8850, 1000), new Item(10828, 1000), new Item(3751, 1000), new Item(1163, 1000), new Item(1127, 1000),
new Item(1079, 1000), new Item(1093, 1000), new Item(1201, 1000), new Item(4131, 1000), new Item(1153, 1000),
new Item(1115, 1000), new Item(1067, 1000), new Item(1081, 1000), new Item(1191, 1000), new Item(544, 1000),
new Item(542, 1000), new Item(861, 1000), new Item(892, 100000), new Item(9185, 1000), new Item(9242, 100000),
new Item(9243, 100000), new Item(9244, 100000), new Item(10499, 1000), new Item(10498, 1000), new Item(2497, 1000),
new Item(2491, 1000), new Item(2503, 1000), new Item(4675, 1000), new Item(1387, 1000), new Item(1383, 1000),
new Item(1381, 1000), new Item(556, 100000), new Item(557, 100000), new Item(554, 100000), new Item(555, 100000),
new Item(558, 100000), new Item(559, 100000), new Item(560, 100000), new Item(561, 100000), new Item(562, 100000),
new Item(563, 100000), new Item(564, 100000), new Item(565, 100000), new Item(566, 100000), new Item(9075, 100000),
new Item(21880, 100000), new Item(3841, 1000), new Item(2414, 1000), new Item(3843, 1000), new Item(2413, 1000),
new Item(3839, 1000), new Item(2412, 1000), new Item(3749, 1000), new Item(3755, 1000), new Item(4089, 1000),
new Item(4091, 1000), new Item(4093, 1000), new Item(4095, 1000), new Item(4097, 1000), new Item(4099, 1000),
new Item(4101, 1000), new Item(4103, 1000), new Item(4105, 1000), new Item(4107, 1000), new Item(4109, 1000),
new Item(4111, 1000), new Item(4113, 1000), new Item(4115, 1000), new Item(4117, 1000), new Item(6109, 1000),
new Item(6107, 1000), new Item(6108, 1000), new Item(6111, 1000), new Item(6110, 1000), new Item(6106, 1000),
new Item(391, 1000), new Item(385, 1000), new Item(3144, 1000), new Item(2436, 1000), new Item(2440, 1000),
new Item(2442, 1000), new Item(2444, 1000), new Item(6685, 1000), new Item(3024, 1000),
}
The container class that represents an item that can be interacted with.
Definition Item.java:21

Definition at line 396 of file Config.java.

396 {
397 new Item(995, 500000), new Item(8013, 2500), new Item(1704, 1000), new Item(1725, 1000), new Item(1731, 1000),
398 new Item(2550, 1000), new Item(7458, 1000), new Item(7460, 1000), new Item(7461, 1000), new Item(3105, 1000),
399 new Item(4587, 1000), new Item(1305, 1000), new Item(1377, 1000), new Item(1434, 1000), new Item(5698, 1000),
400 new Item(8850, 1000), new Item(10828, 1000), new Item(3751, 1000), new Item(1163, 1000), new Item(1127, 1000),
401 new Item(1079, 1000), new Item(1093, 1000), new Item(1201, 1000), new Item(4131, 1000), new Item(1153, 1000),
402 new Item(1115, 1000), new Item(1067, 1000), new Item(1081, 1000), new Item(1191, 1000), new Item(544, 1000),
403 new Item(542, 1000), new Item(861, 1000), new Item(892, 100000), new Item(9185, 1000), new Item(9242, 100000),
404 new Item(9243, 100000), new Item(9244, 100000), new Item(10499, 1000), new Item(10498, 1000), new Item(2497, 1000),
405 new Item(2491, 1000), new Item(2503, 1000), new Item(4675, 1000), new Item(1387, 1000), new Item(1383, 1000),
406 new Item(1381, 1000), new Item(556, 100000), new Item(557, 100000), new Item(554, 100000), new Item(555, 100000),
407 new Item(558, 100000), new Item(559, 100000), new Item(560, 100000), new Item(561, 100000), new Item(562, 100000),
408 new Item(563, 100000), new Item(564, 100000), new Item(565, 100000), new Item(566, 100000), new Item(9075, 100000),
409 new Item(21880, 100000), new Item(3841, 1000), new Item(2414, 1000), new Item(3843, 1000), new Item(2413, 1000),
410 new Item(3839, 1000), new Item(2412, 1000), new Item(3749, 1000), new Item(3755, 1000), new Item(4089, 1000),
411 new Item(4091, 1000), new Item(4093, 1000), new Item(4095, 1000), new Item(4097, 1000), new Item(4099, 1000),
412 new Item(4101, 1000), new Item(4103, 1000), new Item(4105, 1000), new Item(4107, 1000), new Item(4109, 1000),
413 new Item(4111, 1000), new Item(4113, 1000), new Item(4115, 1000), new Item(4117, 1000), new Item(6109, 1000),
414 new Item(6107, 1000), new Item(6108, 1000), new Item(6111, 1000), new Item(6110, 1000), new Item(6106, 1000),
415 new Item(391, 1000), new Item(385, 1000), new Item(3144, 1000), new Item(2436, 1000), new Item(2440, 1000),
416 new Item(2442, 1000), new Item(2444, 1000), new Item(6685, 1000), new Item(3024, 1000),
417 };

◆ STARTER_BANK_AMOUNT

final int [] com.runehive.Config.STARTER_BANK_AMOUNT = { 2, 8, 21, 11, 48, 9, 0, 0, 0, 0, }
static

Starter bank.

Definition at line 395 of file Config.java.

395{ 2, 8, 21, 11, 48, 9, 0, 0, 0, 0, };

◆ SUPER_DONATOR_ZONE

final Position com.runehive.Config.SUPER_DONATOR_ZONE = new Position(2426, 10419, 0)
static

The donator zone.

Definition at line 200 of file Config.java.

◆ SUPPORT_HAPROXY

final boolean com.runehive.Config.SUPPORT_HAPROXY
static

◆ THIEVING_MODIFICATION

◆ USERNAME_MAX_CHARACTERS

final int com.runehive.Config.USERNAME_MAX_CHARACTERS = 12
static

Definition at line 299 of file Config.java.

Referenced by com.runehive.net.session.LoginSession.evaluate().

◆ USERNAME_MIN_CHARACTERS

final int com.runehive.Config.USERNAME_MIN_CHARACTERS = 3
static

Definition at line 300 of file Config.java.

Referenced by com.runehive.net.session.LoginSession.evaluate().

◆ WEBSITE_URL

final String com.runehive.Config.WEBSITE_URL
static

◆ WELCOME_ANNOUNCEMENT

final String [] com.runehive.Config.WELCOME_ANNOUNCEMENT
static
Initial value:
= {
"",
"",
"",
"",
""
}

The welcome announcement.

Definition at line 45 of file Config.java.

45 {
46 "",
47 "",
48 "",
49 "",
50 ""
51 };

◆ WELCOME_DIALOGUE

final String [] com.runehive.Config.WELCOME_DIALOGUE
static
Initial value:
= {
"",
"",
""
}

The welcome dialogue.

Definition at line 38 of file Config.java.

38 {
39 "",
40 "",
41 ""
42 };

◆ WELCOME_MARQUEE

final String [] com.runehive.Config.WELCOME_MARQUEE
static
Initial value:
= {
"There are currently #players players online!",
}

The welcome marquee.

Definition at line 33 of file Config.java.

33 {
34 "There are currently #players players online!",
35 };

◆ WELCOME_UPDATE

final String [] com.runehive.Config.WELCOME_UPDATE
static
Initial value:
= {
"Game Updates",
"- GPT4o Wise Old Man in Arceuus. Interact with him!",
"- Tile Destination Hint Arrows."
}

Definition at line 53 of file Config.java.

53 {
54 "Game Updates",
55 "- GPT4o Wise Old Man in Arceuus. Interact with him!",
56 "- Tile Destination Hint Arrows."
57 };

◆ WOODCUTTING_MODIFICATION

final double com.runehive.Config.WOODCUTTING_MODIFICATION
static

◆ WORLD_TYPE

◆ WRENCH_TAB

final int com.runehive.Config.WRENCH_TAB = 11
static

The documentation for this class was generated from the following file: