Riizade/config file (#520)
* added POJO + yaml file * made config members public * switched to yaml * modified files to use YamlConfig over ServerConstants * removed constants from ServerConstants * removed unused imports * removed unused import * removed world ini * removed now unused .ini files * fixed docker-launch.sh * added jackson dependency JARs * fixed errors * removed unused server config values, added world defaults * don't use env variables for docker * fixed package imports/specifiers for js files
This commit is contained in:
committed by
Ronan Lana
parent
e169971384
commit
181573dc74
@@ -23,6 +23,7 @@ package net.server.world;
|
||||
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import config.YamlConfig;
|
||||
import constants.ServerConstants;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@@ -344,7 +345,7 @@ public class MapleParty {
|
||||
public static boolean createParty(MapleCharacter player, boolean silentCheck) {
|
||||
MapleParty party = player.getParty();
|
||||
if (party == null) {
|
||||
if (player.getLevel() < 10 && !ServerConstants.USE_PARTY_FOR_STARTERS) {
|
||||
if (player.getLevel() < 10 && !YamlConfig.config.server.USE_PARTY_FOR_STARTERS) {
|
||||
player.announce(MaplePacketCreator.partyStatusMessage(10));
|
||||
return false;
|
||||
} else if (player.getAriantColiseum() != null) {
|
||||
|
||||
Reference in New Issue
Block a user