mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-02 20:29:20 +02:00
44 lines
937 B
JSON
44 lines
937 B
JSON
{
|
|
"enabled": 0,
|
|
"name": "Example Plugin",
|
|
"description": "This is just an example of a Plugin for MyAAC.",
|
|
"version": "1.0",
|
|
"author": "nobody",
|
|
"contact": "nobody@example.org",
|
|
"require": {
|
|
"myaac": "0.4.3",
|
|
"myaac_": ">=0.7,<1.0",
|
|
"php": "5.2.0",
|
|
"php_": ">5.4,<7.0",
|
|
"database": "21",
|
|
"php-ext": "curl",
|
|
"ext-curl": ">5.0",
|
|
"table": "accounts",
|
|
"column": "players.online"
|
|
},
|
|
"install": "plugins/example/install.php",
|
|
"uninstall": [
|
|
"plugins/example.json",
|
|
"plugins/example-directory",
|
|
"templates/other-directory"
|
|
],
|
|
"hooks": {
|
|
"Example Hook": {
|
|
"type": "BEFORE_PAGE",
|
|
"file": "plugins/example/before.php"
|
|
}
|
|
},
|
|
"routes": {
|
|
"First Route": {
|
|
"pattern": "/YourAwesomePage",
|
|
"file": "plugins/your-plugin/your-awesome-page.php",
|
|
"method": "GET",
|
|
"priority": "130"
|
|
},
|
|
"Redirect Example": {
|
|
"redirect_from": "/redirectExample",
|
|
"redirect_to": "account/manage"
|
|
}
|
|
}
|
|
}
|