mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
New configurable: guild_description_default
This commit is contained in:
parent
60eac97945
commit
289dd3c170
@ -175,6 +175,7 @@ $config = array(
|
||||
'guild_need_level' => 1, // min. level to form a guild
|
||||
'guild_need_premium' => true, // require premium account to form a guild?
|
||||
'guild_image_size_kb' => 80, // maximum size of the guild logo image in KB (kilobytes)
|
||||
'guild_description_default' => 'New guild. Leader must edit this text :)',
|
||||
'guild_description_chars_limit' => 1000, // limit of guild description
|
||||
'guild_description_lines_limit' => 6, // limit of lines, if description has more lines it will be showed as long text, without 'enters'
|
||||
'guild_motd_chars_limit' => 150, // limit of MOTD (message of the day) that is shown later in the game on the guild channel
|
||||
|
@ -106,7 +106,7 @@ if(isset($todo) && $todo == 'save')
|
||||
$new_guild->setName($guild_name);
|
||||
$new_guild->setOwner($player);
|
||||
$new_guild->save();
|
||||
$new_guild->setCustomField('description', 'New guild. Leader must edit this text :)');
|
||||
$new_guild->setCustomField('description', config('guild_description_default'));
|
||||
//$new_guild->setCustomField('creationdata', time());
|
||||
$ranks = $new_guild->getGuildRanksList();
|
||||
$ranks->orderBy('level', POT::ORDER_DESC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user