#130 Inventory system messages

This commit is contained in:
Daniel Brendel
2024-03-03 03:10:03 +01:00
parent af6bb03e0c
commit 0c41dcac31
4 changed files with 42 additions and 3 deletions

View File

@@ -122,6 +122,39 @@ class TextBlockModule {
}
}
/**
* @param $name
* @param $url
* @return void
* @throws \Exception
*/
public static function createdInventoryItem($name, $url)
{
try {
$text = __('tb.created_inventory_item', ['name' => $name, 'url' => $url]);
static::addToChat($text, 'x1fab4');
} catch (\Exception $e) {
throw $e;
}
}
/**
* @param $name
* @return void
* @throws \Exception
*/
public static function removedInventoryItem($name)
{
try {
$text = __('tb.removed_inventory_item', ['name' => $name]);
static::addToChat($text, 'x1fab4');
} catch (\Exception $e) {
throw $e;
}
}
/**
* @param $message
* @param $icon