Reloading Groups.conf

Samuel

New member
Messages
397
Points
0
Discord
Elijah#5798
Github
Samuel23
Emulator
Is there a way to reload this config file?

 
@reloadatcommand works, yes. I actually wasn't aware of the command for a while myself. So far what I haven't verified are whether or not group restriction configs like no trade/mail/party apply when you use the command. Can anyone follow up on that?

 
Is there a way to reload this config file?
You can always check with the source: atcommand

Code:
/*==========================================* @reloadatcommand - reloads conf/atcommand.conf conf/groups.conf*------------------------------------------*/void atcommand_doload();ACMD(reloadatcommand) {	config_t run_test;	 if (conf_read_file(&run_test, "conf/groups.conf")) {		clif->message(fd, msg_txt(1036)); // Error reading groups.conf, reload failed.		return false;	}	 config_destroy(&run_test);	 if (conf_read_file(&run_test, iMap->ATCOMMAND_CONF_FILENAME)) {		clif->message(fd, msg_txt(1037)); // Error reading atcommand.conf, reload failed.		return false;	}	 config_destroy(&run_test);	 atcommand_doload();	pc_groups_reload();	clif->message(fd, msg_txt(254));	return true;}
 
Back
Top