3 Commits
6.6 ... 6.8

Author SHA1 Message Date
Jakob Grundgeir
7a335a0b79 „README.md“ ändern 2022-07-18 16:27:14 +02:00
Jakob Grundgeir
52ab308ade „README.md“ ändern 2022-07-18 00:39:39 +02:00
Jkobs
f50ad9e8bb v 6.6 2022-07-14 23:35:45 +02:00
7 changed files with 237 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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,6 +113,8 @@ 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
@@ -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
View 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'

View File

@@ -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
@@ -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
@@ -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
@@ -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

View File

@@ -22,6 +22,8 @@ Placeholder:
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

View File

@@ -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">&lt;repository&gt;
&lt;id&gt;T2Code&lt;/id&gt;
&lt;url&gt;https://repo.t2code.net/repository/T2Code/&lt;/url&gt;
&lt;/repository&gt;
</code></pre>
<pre><code class="language-Java">
&lt;dependency&gt;
&lt;groupId&gt;net.t2code&lt;/groupId&gt;
&lt;artifactId&gt;Booster&lt;/artifactId&gt;
&lt;version&gt;{version}&lt;/version&gt;
&lt;/dependency&gt;</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/signatures/bukkit/Booster.svg](https://bstats.org/signatures/bukkit/Booster.svg)]('https://bstats.org/plugin/bukkit/Booster/10307')