Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MetallicGoat committed Sep 25, 2022
1 parent 39e9bb2 commit 33ba1a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.metallicgoat</groupId>
<artifactId>MBedwarsTweaks</artifactId>
<version>2.0.1.1</version>
<version>2.0.1.2</version>

<repositories>
<repository>
Expand Down Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>de.marcely.bedwars</groupId>
<artifactId>API</artifactId>
<version>5.0.12</version>
<version>5.0.13</version>
<scope>system</scope>
<systemPath>${basedir}/libs/MBedwars.jar</systemPath>
</dependency>
Expand All @@ -50,12 +50,12 @@
<artifactId>API</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/libs/HotbarManager-1.0-SNAPSHOT.jar</systemPath>
<systemPath>${basedir}/public-libs/HotbarManager-1.0-SNAPSHOT.jar</systemPath>
</dependency>
<dependency>
<groupId>de.marcely.bedwars</groupId>
<artifactId>API</artifactId>
<version>5.0.13</version>
<version>5.0.14.2</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand All @@ -65,7 +65,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<version>1.18.24</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package me.metallicgoat.tweaksaddon.tweaks.advancedswords;

import de.marcely.bedwars.api.GameAPI;
import de.marcely.bedwars.api.arena.Arena;
import de.marcely.bedwars.api.arena.Team;
import de.marcely.bedwars.api.event.player.PlayerBuyInShopEvent;
import de.marcely.bedwars.api.game.shop.BuyGroup;
import de.marcely.bedwars.api.game.shop.ShopItem;
import de.marcely.bedwars.api.game.shop.product.ItemShopProduct;
import de.marcely.bedwars.api.game.shop.product.ShopProduct;
Expand Down Expand Up @@ -43,6 +41,9 @@ public static ItemStack getDefaultWoodSword(Player player, Arena arena){

final Team team = arena.getPlayerTeam(player);

if(team == null)
return new ItemStack(WOOD_SWORD);

for(ItemStack is : arena.getItemsGivenOnSpawn(player, team, true, true)){
if(is.getType() == WOOD_SWORD)
return is.clone();
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2.0.1.1
version: 2.0.1.2
name: MBedwarsTweaks
author: MetallicGoat
main: me.metallicgoat.tweaksaddon.MBedwarsTweaksPlugin
description: Adds some extra features to MBedwars
description: Adds some extra customizability to MBedwars
api-version: 1.13
depend: [MBedwars]
softdepend: [PlaceholderAPI, MBedwarsHotbarManager]

0 comments on commit 33ba1a0

Please sign in to comment.