+ Fixed issue with give droptables not finding the correct damager
+ Fixed issue with VaultHelper economy get method being overriden
This commit is contained in:
Charles 2019-02-03 02:07:52 +08:00
parent aa21a516b7
commit d3f0bbf5cd
3 changed files with 5 additions and 5 deletions

View File

@ -76,9 +76,9 @@ public class BossDropTableManager {
return;
}
int position = NumberUtils.get().getInteger(positionString);
int position = NumberUtils.get().getInteger(positionString) - 1;
if(positions.size() < position) return;
if(position >= positions.size()) return;
UUID uuid = positions.get(position);
Player player = Bukkit.getPlayer(uuid);
@ -105,7 +105,7 @@ public class BossDropTableManager {
totalCommands.addAll(getCommands(randomCommands, maxCommands, subElement.getCommands()));
});
totalCommands.replaceAll(s -> s.replace("%player%", player.getName()));
totalCommands.replaceAll(s -> s = s.replace("%player%", player.getName()));
totalCommands.forEach(serverUtils::sendConsoleCommand);
totalRewards.forEach(itemStack -> {

View File

@ -13,7 +13,7 @@ import org.bukkit.plugin.RegisteredServiceProvider;
*/
public class VaultHelper implements IHelper {
@Getter private Economy economy;
private Economy economy;
@Override
public boolean isConnected() {

View File

@ -19,7 +19,7 @@
</modules>
<properties>
<plugin.version>1.0.7-U1</plugin.version>
<plugin.version>1.0.7-U2</plugin.version>
<plugin.name>EpicBosses</plugin.name>
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
<plugin.author>AMinecraftDev</plugin.author>