5 Commits
6.4 ... 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
Jakob Grundgeir
be5abaf47d „Configs/config.yml“ ändern 2022-07-14 09:30:46 +02:00
Jkobs
8c08605940 Changes 2022-07-11 17:38:34 +02:00
8 changed files with 261 additions and 9 deletions

View File

@@ -10,6 +10,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible actions: activate, activate_step1, activate_step2,activate_step3, # Possible actions: activate, activate_step1, activate_step2,activate_step3,
Action: activate Action: activate
# Sound on click
Sound: 'placeholder'
14: 14:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -35,6 +37,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible actions: activate, activate_step1, activate_step2,activate_step3, # Possible actions: activate, activate_step1, activate_step2,activate_step3,
Action: activate_step1 Action: activate_step1
# Sound on click
Sound: 'placeholder'
15: 15:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -60,6 +64,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible actions: activate, activate_step1, activate_step2,activate_step3, # Possible actions: activate, activate_step1, activate_step2,activate_step3,
Action: activate_step2 Action: activate_step2
# Sound on click
Sound: 'placeholder'
16: 16:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -85,6 +91,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible actions: activate, activate_step1, activate_step2,activate_step3, # Possible actions: activate, activate_step1, activate_step2,activate_step3,
Action: activate_step3 Action: activate_step3
# Sound on click
Sound: 'placeholder'
27: 27:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -106,6 +114,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back # Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back
Action: back Action: back
# Sound on click
Sound: 'placeholder'
# This item is set in all places where no item is stored. # This item is set in all places where no item is stored.
Background: Background:
Enabled: true Enabled: true

View File

@@ -30,6 +30,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible actions: accept, deny, close # Possible actions: accept, deny, close
Action: accept Action: accept
# Sound on click
Sound: 'placeholder'
25: 25:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
@@ -42,6 +44,8 @@ Slots:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible actions: accept, deny, close # Possible actions: accept, deny, close
Action: deny Action: deny
# Sound on click
Sound: 'placeholder'
# This item is set in all places where no item is stored. # This item is set in all places where no item is stored.
Background: Background:
Enabled: true Enabled: true

View File

@@ -59,6 +59,8 @@ Slots:
Action: activate_break Action: activate_break
# Permission to display the item # Permission to display the item
Permission: 'booster.break' Permission: 'booster.break'
# Sound on click
Sound: 'placeholder'
31: 31:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
@@ -75,6 +77,8 @@ Slots:
Action: activate_drop Action: activate_drop
# Permission to display the item # Permission to display the item
Permission: 'booster.drop' Permission: 'booster.drop'
# Sound on click
Sound: 'placeholder'
32: 32:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
@@ -91,6 +95,8 @@ Slots:
Action: activate_fly Action: activate_fly
# Permission to display the item # Permission to display the item
Permission: 'booster.fly' Permission: 'booster.fly'
# Sound on click
Sound: 'placeholder'
33: 33:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
@@ -107,11 +113,13 @@ Slots:
Action: activate_mob Action: activate_mob
# Permission to display the item # Permission to display the item
Permission: 'booster.mob' Permission: 'booster.mob'
# Sound on click
Sound: 'placeholder'
34: 34:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
# The material of the item. (Can be made visible in the client with F3 + H). # 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 # The name of the item
Title: '&6XP-Booster' Title: '&6XP-Booster'
# Lore of the item. # Lore of the item.
@@ -123,6 +131,8 @@ Slots:
Action: activate_xp Action: activate_xp
# Permission to display the item # Permission to display the item
Permission: 'booster.xp' Permission: 'booster.xp'
# Sound on click
Sound: 'placeholder'
39: 39:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: 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 Action: shop
Count: 1 Count: 1
Price: 1000 Price: 1000
# Sound on click
Sound: 'placeholder'
14: 14:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
@@ -42,6 +44,8 @@ Shop:
Action: shop Action: shop
Count: 5 Count: 5
Price: 4000 Price: 4000
# Sound on click
Sound: 'placeholder'
17: 17:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Material Type: Material
@@ -59,6 +63,8 @@ Shop:
Action: shop Action: shop
Count: 10 Count: 10
Price: 7000 Price: 7000
# Sound on click
Sound: 'placeholder'
27: 27:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -80,6 +86,8 @@ Shop:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible Actions: shop (Requires Count and Price), back # Possible Actions: shop (Requires Count and Price), back
Action: back Action: back
# Sound on click
Sound: 'placeholder'
# This item is set in all places where no item is stored. # This item is set in all places where no item is stored.
Background: Background:
Enabled: true Enabled: true
@@ -159,6 +167,8 @@ Shop:
Count: 1 Count: 1
Booster: Break Booster: Break
Price: 1000 Price: 1000
# Sound on click
Sound: 'placeholder'
5: 5:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -182,6 +192,8 @@ Shop:
Count: 5 Count: 5
Booster: Break Booster: Break
Price: 4000 Price: 4000
# Sound on click
Sound: 'placeholder'
7: 7:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -205,6 +217,8 @@ Shop:
Count: 10 Count: 10
Booster: Break Booster: Break
Price: 7000 Price: 7000
# Sound on click
Sound: 'placeholder'
12: 12:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -228,6 +242,8 @@ Shop:
Count: 1 Count: 1
Booster: Drop Booster: Drop
Price: 1000 Price: 1000
# Sound on click
Sound: 'placeholder'
14: 14:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -251,6 +267,8 @@ Shop:
Count: 5 Count: 5
Booster: Drop Booster: Drop
Price: 4000 Price: 4000
# Sound on click
Sound: 'placeholder'
16: 16:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -274,6 +292,8 @@ Shop:
Count: 10 Count: 10
Booster: Drop Booster: Drop
Price: 7000 Price: 7000
# Sound on click
Sound: 'placeholder'
21: 21:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -297,6 +317,8 @@ Shop:
Count: 1 Count: 1
Booster: Fly Booster: Fly
Price: 1000 Price: 1000
# Sound on click
Sound: 'placeholder'
23: 23:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -320,6 +342,8 @@ Shop:
Count: 5 Count: 5
Booster: Fly Booster: Fly
Price: 4000 Price: 4000
# Sound on click
Sound: 'placeholder'
25: 25:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -343,6 +367,8 @@ Shop:
Count: 10 Count: 10
Booster: Fly Booster: Fly
Price: 7000 Price: 7000
# Sound on click
Sound: 'placeholder'
30: 30:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -366,6 +392,8 @@ Shop:
Count: 1 Count: 1
Booster: Mob Booster: Mob
Price: 1000 Price: 1000
# Sound on click
Sound: 'placeholder'
32: 32:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -389,6 +417,8 @@ Shop:
Count: 5 Count: 5
Booster: Mob Booster: Mob
Price: 4000 Price: 4000
# Sound on click
Sound: 'placeholder'
34: 34:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -412,6 +442,8 @@ Shop:
Count: 10 Count: 10
Booster: Mob Booster: Mob
Price: 7000 Price: 7000
# Sound on click
Sound: 'placeholder'
39: 39:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -435,6 +467,8 @@ Shop:
Count: 1 Count: 1
Booster: XP Booster: XP
Price: 1000 Price: 1000
# Sound on click
Sound: 'placeholder'
41: 41:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -458,6 +492,8 @@ Shop:
Count: 5 Count: 5
Booster: XP Booster: XP
Price: 4000 Price: 4000
# Sound on click
Sound: 'placeholder'
43: 43:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -481,6 +517,8 @@ Shop:
Count: 10 Count: 10
Booster: XP Booster: XP
Price: 7000 Price: 7000
# Sound on click
Sound: 'placeholder'
45: 45:
# The type defines what properties the slot has. Types: Material or Skull # The type defines what properties the slot has. Types: Material or Skull
Type: Skull Type: Skull
@@ -500,6 +538,8 @@ Shop:
# Action to be performed when the item is clicked. # Action to be performed when the item is clicked.
# Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back # Possible Actions: shop (Requires Count, Booster[XP, Break, Drop, Mob, Fly] and Price), back
Action: back Action: back
# Sound on click
Sound: 'placeholder'
# This item is set in all places where no item is stored. # This item is set in all places where no item is stored.
Background: Background:
Enabled: true Enabled: true

View File

@@ -22,6 +22,8 @@ Placeholder:
TwoDigitsM: false TwoDigitsM: false
# What should happen at the '/booster' command. Options: GUI, OVERVIEW # What should happen at the '/booster' command. Options: GUI, OVERVIEW
Maincommand: GUI Maincommand: GUI
# Disable Booster-Messages on Join
DisableJoinMessages: false
Booster: Booster:
XP: XP:
# Time how long a booster is active in Minutes. Set it to -1 to disable it # Time how long a booster is active in Minutes. Set it to -1 to disable it
@@ -235,10 +237,25 @@ Shop:
Sound: 'placeholder' Sound: 'placeholder'
# Booster that players get for free after a certain period of time (With Permission) # Booster that players get for free after a certain period of time (With Permission)
Bonusbooster: Bonusbooster:
# Time until you can get a bonus booster in hours (Set to -1 to disable) # 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 Time: 168
# Number of boosters you get # Number of boosters you get
Count: 1 Count: 1
# What booster Man should get guys: XP, Break, Drop, Mob, Fly, ALL, Random # 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 # You can also set it like this, for example: XP,Break,Mob, Random, Select
Type: Random Type: Random
# Permission
Permission: 'booster.bonusbooster.mod'

View File

@@ -73,7 +73,7 @@ Bonusbooster:
Help: '%prefix% &cBitte nutze: &b/booster bbreset <player>' Help: '%prefix% &cBitte nutze: &b/booster bbreset <player>'
Success: '%prefix% &2Du hast von &6%player% &2die Zeit resettet.' Success: '%prefix% &2Du hast von &6%player% &2die Zeit resettet.'
Booster: 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.' Not_Enough: '%prefix% &cDu hast nicht genügend Booster.'
Wrong_World: '%prefix% &cDu kannst den Booster in dieser Welt nicht starten.' Wrong_World: '%prefix% &cDu kannst den Booster in dieser Welt nicht starten.'
Infinity: 'unendlich' Infinity: 'unendlich'

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> <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') [![https://bstats.org/signatures/bukkit/Booster.svg](https://bstats.org/signatures/bukkit/Booster.svg)]('https://bstats.org/plugin/bukkit/Booster/10307')