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
@@ -21,7 +21,7 @@
|
||||
Marriage NPC
|
||||
*/
|
||||
|
||||
importPackage(Packages.constants);
|
||||
importPackage(Packages.config);
|
||||
importPackage(Packages.net.server.channel.handlers);
|
||||
importPackage(Packages.tools);
|
||||
importPackage(Packages.tools.packets);
|
||||
@@ -32,7 +32,7 @@ var eim;
|
||||
var weddingEventName = "WeddingCathedral";
|
||||
var cathedralWedding = true;
|
||||
var weddingIndoors;
|
||||
var weddingBlessingExp = ServerConstants.WEDDING_BLESS_EXP;
|
||||
var weddingBlessingExp = YamlConfig.config.server.WEDDING_BLESS_EXP;
|
||||
|
||||
function isWeddingIndoors(mapid) {
|
||||
return mapid >= 680000100 && mapid <= 680000500;
|
||||
@@ -304,7 +304,7 @@ function action(mode, type, selection) {
|
||||
if (state == 0) { // give player blessings
|
||||
eim.gridInsert(cm.getPlayer(), 1);
|
||||
|
||||
if (ServerConstants.WEDDING_BLESSER_SHOWFX) {
|
||||
if (YamlConfig.config.server.WEDDING_BLESSER_SHOWFX) {
|
||||
var target = cm.getPlayer();
|
||||
target.announce(MaplePacketCreator.showSpecialEffect(9));
|
||||
target.getMap().broadcastMessage(target, MaplePacketCreator.showForeignEffect(target.getId(), 9), false);
|
||||
|
||||
Reference in New Issue
Block a user