https://github.com/ad5001/git2plugin
200 YT Subs plugin. Download, build, and update your pocketmine plugins thought any git provider !
https://github.com/ad5001/git2plugin
Last synced: 3 months ago
JSON representation
200 YT Subs plugin. Download, build, and update your pocketmine plugins thought any git provider !
- Host: GitHub
- URL: https://github.com/ad5001/git2plugin
- Owner: Ad5001
- License: other
- Created: 2016-12-15T19:03:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T17:29:38.000Z (about 9 years ago)
- Last Synced: 2025-07-13T16:52:44.532Z (6 months ago)
- Language: PHP
- Size: 90.8 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git2Plugin
Git2Plugin is a plugin that allows you to download plugins thought Git from many websites like Github.
It also allows plugins to be build, runed, and updated at the same time.
Git2Plugin takes three minutes to detect an update, and three more minutes to apply them.
Git2Plugin is also dependent from Gitable.
## How to add a source?
Go to any website (like github.com) that hosts git and take the git cloning url (for github: https://github.com/Author/Plugin.git)
Then, open the config, and add to the "srcs" (or replace an existing one) the URL you just took.
That's it ! You added a source !
## API
Git2Plugin also have a small API allowing plugins to:
- Add a source (Main -> addSource(string $url))
- Check before an update (\Ad5001\Git2Plugin\events\PluginPreUpdateEvent, Cancellable) with the old plugin and all.
- Check after an update (\Ad5001\Git2Plugin\events\PluginPreUpdateEvent) with the freshly updated plugin.
If you have any other suggestion, please write an issue for it.