Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7a335a0b79 | ||
|
52ab308ade | ||
|
f50ad9e8bb | ||
|
be5abaf47d | ||
|
8c08605940 | ||
|
5f61bc894c | ||
|
fe2c061d7e | ||
|
3f40aab928 |
@@ -10,6 +10,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible actions: activate, activate_step1, activate_step2,activate_step3,
|
||||
Action: activate
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
14:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -35,6 +37,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible actions: activate, activate_step1, activate_step2,activate_step3,
|
||||
Action: activate_step1
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
15:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -60,6 +64,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible actions: activate, activate_step1, activate_step2,activate_step3,
|
||||
Action: activate_step2
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
16:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -85,6 +91,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible actions: activate, activate_step1, activate_step2,activate_step3,
|
||||
Action: activate_step3
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
27:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -106,6 +114,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back
|
||||
Action: back
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
# This item is set in all places where no item is stored.
|
||||
Background:
|
||||
Enabled: true
|
||||
|
@@ -30,6 +30,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible actions: accept, deny, close
|
||||
Action: accept
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
25:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
@@ -42,6 +44,8 @@ Slots:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible actions: accept, deny, close
|
||||
Action: deny
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
# This item is set in all places where no item is stored.
|
||||
Background:
|
||||
Enabled: true
|
||||
|
@@ -59,6 +59,8 @@ Slots:
|
||||
Action: activate_break
|
||||
# Permission to display the item
|
||||
Permission: 'booster.break'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
31:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
@@ -75,6 +77,8 @@ Slots:
|
||||
Action: activate_drop
|
||||
# Permission to display the item
|
||||
Permission: 'booster.drop'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
32:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
@@ -91,6 +95,8 @@ Slots:
|
||||
Action: activate_fly
|
||||
# Permission to display the item
|
||||
Permission: 'booster.fly'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
33:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
@@ -107,11 +113,13 @@ Slots:
|
||||
Action: activate_mob
|
||||
# Permission to display the item
|
||||
Permission: 'booster.mob'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
34:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: experience_bottle
|
||||
Material: 'placeholder_xp'
|
||||
# The name of the item
|
||||
Title: '&6XP-Booster'
|
||||
# Lore of the item.
|
||||
@@ -123,6 +131,8 @@ Slots:
|
||||
Action: activate_xp
|
||||
# Permission to display the item
|
||||
Permission: 'booster.xp'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
39:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
|
110
Configs/GUIs/selection.yml
Normal file
110
Configs/GUIs/selection.yml
Normal file
@@ -0,0 +1,110 @@
|
||||
# GUI title
|
||||
Title: '&4Booster'
|
||||
# Number of rows in the GUI
|
||||
Rows: 3
|
||||
# This item is set in all places where no item is stored.
|
||||
Background:
|
||||
Enabled: true
|
||||
Material: 'placeholder'
|
||||
Slots:
|
||||
# The number represents the slot of the item
|
||||
12:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: iron_pickaxe
|
||||
# The name of the item
|
||||
Title: '&6Break-Booster'
|
||||
# Lore of the item.
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&aKlicke, um einen &6Break-Booster &2zu bekommen'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: get (Requires Booster[XP, Break, Drop, Mob, Fly])
|
||||
Action: get
|
||||
# Possible Types: XP, Break, Drop, Mob, Fly
|
||||
Booster: Break
|
||||
# Permission to display the item
|
||||
Permission: 'booster.break'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
13:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: iron_ingot
|
||||
# The name of the item
|
||||
Title: '&6Drop-Booster'
|
||||
# Lore of the item.
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&aKlicke, um einen &6Drop-Booster &2zu bekommen'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: get (Requires Booster[XP, Break, Drop, Mob, Fly])
|
||||
Action: get
|
||||
# Possible Types: XP, Break, Drop, Mob, Fly
|
||||
Booster: Drop
|
||||
# Permission to display the item
|
||||
Permission: 'booster.drop'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
14:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: feather
|
||||
# The name of the item
|
||||
Title: '&6Fly-Booster'
|
||||
# Lore of the item.
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&aKlicke, um einen &6Fly-Booster &2zu bekommen'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: get (Requires Booster[XP, Break, Drop, Mob, Fly])
|
||||
Action: get
|
||||
# Possible Types: XP, Break, Drop, Mob, Fly
|
||||
Booster: Fly
|
||||
# Permission to display the item
|
||||
Permission: 'booster.fly'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
15:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: bone
|
||||
# The name of the item
|
||||
Title: '&6Mob-Booster'
|
||||
# Lore of the item.
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&aKlicke, um einen &6Mob-Booster &2zu bekommen'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: get (Requires Booster[XP, Break, Drop, Mob, Fly])
|
||||
Action: get
|
||||
# Possible Types: XP, Break, Drop, Mob, Fly
|
||||
Booster: Mob
|
||||
# Permission to display the item
|
||||
Permission: 'booster.mob'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
16:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: 'placeholder_xp'
|
||||
# The name of the item
|
||||
Title: '&6XP-Booster'
|
||||
# Lore of the item.
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&aKlicke, um einen &6XP-Booster &2zu bekommen'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: get (Requires Booster[XP, Break, Drop, Mob, Fly])
|
||||
Action: get
|
||||
# Possible Types: XP, Break, Drop, Mob, Fly
|
||||
Booster: XP
|
||||
# Permission to display the item
|
||||
Permission: 'booster.xp'
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
@@ -25,6 +25,8 @@ Shop:
|
||||
Action: shop
|
||||
Count: 1
|
||||
Price: 1000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
14:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
@@ -42,6 +44,8 @@ Shop:
|
||||
Action: shop
|
||||
Count: 5
|
||||
Price: 4000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
17:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
@@ -59,6 +63,8 @@ Shop:
|
||||
Action: shop
|
||||
Count: 10
|
||||
Price: 7000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
27:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -80,6 +86,8 @@ Shop:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: shop (Requires Count and Price), back
|
||||
Action: back
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
# This item is set in all places where no item is stored.
|
||||
Background:
|
||||
Enabled: true
|
||||
@@ -131,7 +139,7 @@ Shop:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Material
|
||||
# The material of the item. (Can be made visible in the client with F3 + H).
|
||||
Material: experience_bottle
|
||||
Material: 'placeholder_xp'
|
||||
# The name of the item
|
||||
Title: '&6XP-Booster'
|
||||
# Lore of the item.
|
||||
@@ -159,6 +167,8 @@ Shop:
|
||||
Count: 1
|
||||
Booster: Break
|
||||
Price: 1000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
5:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -182,6 +192,8 @@ Shop:
|
||||
Count: 5
|
||||
Booster: Break
|
||||
Price: 4000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
7:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -205,6 +217,8 @@ Shop:
|
||||
Count: 10
|
||||
Booster: Break
|
||||
Price: 7000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
12:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -228,6 +242,8 @@ Shop:
|
||||
Count: 1
|
||||
Booster: Drop
|
||||
Price: 1000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
14:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -251,6 +267,8 @@ Shop:
|
||||
Count: 5
|
||||
Booster: Drop
|
||||
Price: 4000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
16:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -274,6 +292,8 @@ Shop:
|
||||
Count: 10
|
||||
Booster: Drop
|
||||
Price: 7000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
21:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -289,7 +309,7 @@ Shop:
|
||||
# Lore of the item. Placeholder %count%, %price%
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&2Kaufe &2%count% &6Fly-Booster'
|
||||
- '&2Kaufe &6%count% &2Fly-Booster'
|
||||
- '&2Kostet: &6%price%$'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back
|
||||
@@ -297,6 +317,8 @@ Shop:
|
||||
Count: 1
|
||||
Booster: Fly
|
||||
Price: 1000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
23:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -312,7 +334,7 @@ Shop:
|
||||
# Lore of the item. Placeholder %count%, %price%
|
||||
Lore:
|
||||
- '&8--------------------'
|
||||
- '&2Kaufe &2%count% &2Fly-Booster'
|
||||
- '&2Kaufe &6%count% &2Fly-Booster'
|
||||
- '&2Kostet: &6%price%$'
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back
|
||||
@@ -320,6 +342,8 @@ Shop:
|
||||
Count: 5
|
||||
Booster: Fly
|
||||
Price: 4000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
25:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -343,6 +367,8 @@ Shop:
|
||||
Count: 10
|
||||
Booster: Fly
|
||||
Price: 7000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
30:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -366,6 +392,8 @@ Shop:
|
||||
Count: 1
|
||||
Booster: Mob
|
||||
Price: 1000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
32:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -389,6 +417,8 @@ Shop:
|
||||
Count: 5
|
||||
Booster: Mob
|
||||
Price: 4000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
34:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -412,6 +442,8 @@ Shop:
|
||||
Count: 10
|
||||
Booster: Mob
|
||||
Price: 7000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
39:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -435,6 +467,8 @@ Shop:
|
||||
Count: 1
|
||||
Booster: XP
|
||||
Price: 1000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
41:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -458,6 +492,8 @@ Shop:
|
||||
Count: 5
|
||||
Booster: XP
|
||||
Price: 4000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
43:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -481,6 +517,8 @@ Shop:
|
||||
Count: 10
|
||||
Booster: XP
|
||||
Price: 7000
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
45:
|
||||
# The type defines what properties the slot has. Types: Material or Skull
|
||||
Type: Skull
|
||||
@@ -500,6 +538,8 @@ Shop:
|
||||
# Action to be performed when the item is clicked.
|
||||
# Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back
|
||||
Action: back
|
||||
# Sound on click
|
||||
Sound: 'placeholder'
|
||||
# This item is set in all places where no item is stored.
|
||||
Background:
|
||||
Enabled: true
|
||||
|
@@ -15,8 +15,15 @@ MySQLPlayerDataBridge: false
|
||||
SendAsPrivateMessage: false
|
||||
# Enable Logging
|
||||
Logging: true
|
||||
Placeholder:
|
||||
# Should 2 digits always be displayed for Second placeholders
|
||||
TwoDigitsS: false
|
||||
# Should 2 digits always be displayed for Minute placeholders
|
||||
TwoDigitsM: false
|
||||
# What should happen at the '/booster' command. Options: GUI, OVERVIEW
|
||||
Maincommand: GUI
|
||||
# Disable Booster-Messages on Join
|
||||
DisableJoinMessages: false
|
||||
Booster:
|
||||
XP:
|
||||
# Time how long a booster is active in Minutes. Set it to -1 to disable it
|
||||
@@ -155,6 +162,8 @@ Booster:
|
||||
- World2
|
||||
# Should fireworks be started when the booster is activated
|
||||
FireworkOnStart: true
|
||||
# If Enabled Natural Mob Spawning will be multiplied (Not only Spawner)
|
||||
NaturalSpawning: false
|
||||
Stages:
|
||||
# How many levels the booster should have. You can expand it by copy-paste or reduce it by delete.
|
||||
# Attention There must not be a duplicate name!
|
||||
@@ -228,10 +237,25 @@ Shop:
|
||||
Sound: 'placeholder'
|
||||
# Booster that players get for free after a certain period of time (With Permission)
|
||||
Bonusbooster:
|
||||
# Time until you can get a bonus booster in hours (Set to -1 to disable)
|
||||
Time: 168
|
||||
# Number of boosters you get
|
||||
Count: 1
|
||||
# What booster Man should get guys: XP, Break, Drop, Mob, Fly, ALL, Random
|
||||
# You can also set it like this, for example: XP,Break,Mob, Random
|
||||
Type: Random
|
||||
# Priority of Bonus
|
||||
# Require Numbers
|
||||
1:
|
||||
# Time until you can get a bonus booster in hours
|
||||
Time: 168
|
||||
# Number of boosters you get
|
||||
Count: 2
|
||||
# What booster Man should get guys: XP, Break, Drop, Mob, Fly, ALL, Random
|
||||
# You can also set it like this, for example: XP,Break,Mob, Random, Select
|
||||
Type: ALL
|
||||
# Permission
|
||||
Permission: 'booster.bonusbooster.admin'
|
||||
2:
|
||||
# Time until you can get a bonus booster in hours
|
||||
Time: 168
|
||||
# Number of boosters you get
|
||||
Count: 1
|
||||
# What booster Man should get guys: XP, Break, Drop, Mob, Fly, ALL, Random
|
||||
# You can also set it like this, for example: XP,Break,Mob, Random, Select
|
||||
Type: Random
|
||||
# Permission
|
||||
Permission: 'booster.bonusbooster.mod'
|
||||
|
@@ -43,9 +43,11 @@ Player:
|
||||
Refresh: '%prefix% &2Die Booster wurden angewandt.'
|
||||
AddBooster:
|
||||
Success: '%prefix% &2Du hast &6%reciver%&2, &6%count% &2Booster hinzugefügt.'
|
||||
Reciver: '%prefix% &2Du hast von &6%sender%&2, &6%count% &2Booster des Types &6%type% &2bekommen.'
|
||||
Help: '%prefix% &cBitte nutze: &b/booster add <player> <amount> <type>'
|
||||
SetBooster:
|
||||
Success: '%prefix% &2Du hast &6%reciver%&2, &6%count% &2Booster gesetzt.'
|
||||
Reciver: '%prefix% &2Du hast von &6%sender%&2, &6%count% &2Booster des Types &6%type% &2gesetzt bekommen.'
|
||||
Help: '%prefix% &cBitte nutze: &b/booster set <player> <amount> <type>'
|
||||
See:
|
||||
Success: '%prefix% &6%player% &2hat &6%count% &2Booster des Types &6%type%.'
|
||||
@@ -53,9 +55,11 @@ See:
|
||||
RemoveBooster:
|
||||
Success: '%prefix% &2Du hast &6%reciver%&2, &6%count% &2Booster entfernt.'
|
||||
Not_Enough: '%prefix% &c%reciver% hat nicht genügend Booster.'
|
||||
Reciver: '%prefix% &2Du hast von &6%sender%&2, &6%count% &2Booster des Types &6%type% &2entfernt bekommen.'
|
||||
Help: '%prefix% &cBitte nutze: &b/booster remove <player> <amount> <type>'
|
||||
Giveall:
|
||||
Success: '%prefix% &2Du hast &6%reciver%&2, &6%count% &2Booster hinzugefügt.'
|
||||
Reciver: '%prefix% &2Du hast von &6%sender%&2, &6%count% &2Booster des Types &6%type% &2bekommen.'
|
||||
Help: '%prefix% &cBitte nutze: &b/booster giveall <amount> <type>'
|
||||
Send:
|
||||
Success: '%prefix% &2Du hast &6%reciver%&2, &6%count% &2Booster geschickt.'
|
||||
@@ -69,7 +73,7 @@ Bonusbooster:
|
||||
Help: '%prefix% &cBitte nutze: &b/booster bbreset <player>'
|
||||
Success: '%prefix% &2Du hast von &6%player% &2die Zeit resettet.'
|
||||
Booster:
|
||||
MaxStep: '%prefix% &cEs ist bereits die Maximale stäre des &6%type%-Boosters&c.'
|
||||
MaxStep: '%prefix% &cEs ist bereits die Maximale Stärke des &6%type%-Boosters&c.'
|
||||
Not_Enough: '%prefix% &cDu hast nicht genügend Booster.'
|
||||
Wrong_World: '%prefix% &cDu kannst den Booster in dieser Welt nicht starten.'
|
||||
Infinity: 'unendlich'
|
||||
|
61
README.md
61
README.md
@@ -175,6 +175,67 @@ 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>
|
||||
<p><strong>Maven:</strong></p>
|
||||
<pre><code class="language-Java"><repository>
|
||||
<id>T2Code</id>
|
||||
<url>https://repo.t2code.net/repository/T2Code/</url>
|
||||
</repository>
|
||||
</code></pre>
|
||||
<pre><code class="language-Java">
|
||||
<dependency>
|
||||
<groupId>net.t2code</groupId>
|
||||
<artifactId>Booster</artifactId>
|
||||
<version>{version}</version>
|
||||
</dependency></code></pre>
|
||||
<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/plugin/bukkit/Booster/10307')
|
||||
|
Reference in New Issue
Block a user