„README.md“ ändern
This commit is contained in:
parent
f50ad9e8bb
commit
52ab308ade
49
README.md
49
README.md
@ -175,6 +175,55 @@ Ihr könnt in der Config selber einstellen wie viel eure Booster kosten sollen u
|
||||
|
||||
<h2>Die Default-Configs liegen <a href="https://git.t2code.net/Jakob/Booster_Issues/src/branch/main/Configs" target="_blank" rel="noopener">hier</a> im Git.<h2>
|
||||
|
||||
<details>
|
||||
<summary>API</summary>
|
||||
<pre><code class="language-Java">public class Booster implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onBoosterStart(BoosterStartEvent e){
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onBoosterStop(BoosterStopEvent e){
|
||||
|
||||
}
|
||||
|
||||
private void booster(Player player){
|
||||
// Get API
|
||||
BoosterAPI api = new BoosterAPI();
|
||||
|
||||
// Add Booster
|
||||
api.addBooster(player, 1, BoosterTypes.XP);
|
||||
|
||||
// Remove Booster
|
||||
api.removeBooster(player, 1, BoosterTypes.DROP);
|
||||
|
||||
// Get Booster Count
|
||||
int count = api.getCount(player, BoosterTypes.BREAK);
|
||||
|
||||
// Reset BonusBooster Time
|
||||
api.resetBonusBooster(player);
|
||||
|
||||
// Get Step of Booster
|
||||
int step = api.getStep(BoosterTypes.MOB);
|
||||
|
||||
// Start Booster
|
||||
api .startBooster(BoosterTypes.FLY);
|
||||
api .startBooster(BoosterTypes.FLY, player);
|
||||
api .startBooster(BoosterTypes.FLY, 1);
|
||||
api .startBooster(BoosterTypes.FLY, player, 1);
|
||||
|
||||
// Stop Booster
|
||||
api.stopBooster(BoosterTypes.XP);
|
||||
|
||||
// Stop All Booster
|
||||
api.stopBooster();
|
||||
|
||||
}
|
||||
|
||||
}</code></pre>
|
||||
</details>
|
||||
|
||||
|
||||
[![https://bstats.org/signatures/bukkit/Booster.svg](https://bstats.org/signatures/bukkit/Booster.svg)]('https://bstats.org/plugin/bukkit/Booster/10307')
|
||||
|
Loading…
Reference in New Issue
Block a user