Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inxomnyaa/gamereward
Execute commands and give items when winning games based on gameapi
https://github.com/inxomnyaa/gamereward
gameapi pmmp pmmp-game pmmp-virion
Last synced: about 2 months ago
JSON representation
Execute commands and give items when winning games based on gameapi
- Host: GitHub
- URL: https://github.com/inxomnyaa/gamereward
- Owner: inxomnyaa
- License: gpl-3.0
- Created: 2017-10-31T21:39:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-03T10:22:22.000Z (almost 5 years ago)
- Last Synced: 2024-10-17T04:04:23.186Z (2 months ago)
- Topics: gameapi, pmmp, pmmp-game, pmmp-virion
- Language: PHP
- Homepage: https://poggit.pmmp.io/ci/thebigsmileXD/gamereward/~
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gamereward
Execute commands and give items when winning games based on gameapi
## Usage
If you use a plugin that runs via the gameapi virion, for example https://github.com/thebigsmileXD/BedWars or https://github.com/thebigsmileXD/Spleef, a GameWinEvent is called when a team or player wins a game.This plugin listens for that event and runs commands specified in the config.
When you start the server, gameapi automatically adds entries for the available games on the server into config.yml
You can then simply modify and change the commands.
It can also give the player items by name + meta.
Example:
```
---
Spleef:
commands:
"say {display_name} has won a Spleef match"
items:
"tnt:0:5"
...
```
## Placeholders
You can see available placeholders here:
https://github.com/thebigsmileXD/gamereward/blob/master/src/xenialdan/gamereward/Loader.php#L81-L139