Merge branch 'SD-7555' into development

This commit is contained in:
Christian Koop 2021-04-13 17:56:17 +02:00
commit bba7394942
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
14 changed files with 27 additions and 22 deletions

View File

@ -78,7 +78,7 @@
<repositories> <repositories>
<repository> <repository>
<id>public</id> <id>public</id>
<url>http://repo.songoda.com/repository/public/</url> <url>https://repo.songoda.com/repository/public/</url>
</repository> </repository>
<repository> <repository>
<id>jitpack.io</id> <id>jitpack.io</id>
@ -91,6 +91,7 @@
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId> <artifactId>spigot</artifactId>
<version>1.16.4</version> <version>1.16.4</version>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>fr.mrmicky</groupId> <groupId>fr.mrmicky</groupId>
@ -108,6 +109,7 @@
<groupId>com.songoda</groupId> <groupId>com.songoda</groupId>
<artifactId>UltimateBottles</artifactId> <artifactId>UltimateBottles</artifactId>
<version>1_0</version> <version>1_0</version>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>me.clip</groupId> <groupId>me.clip</groupId>

View File

@ -7,7 +7,7 @@ import com.songoda.core.compatibility.CompatibleMaterial;
import com.songoda.core.configuration.Config; import com.songoda.core.configuration.Config;
import com.songoda.core.gui.GuiManager; import com.songoda.core.gui.GuiManager;
import com.songoda.core.hooks.EconomyManager; import com.songoda.core.hooks.EconomyManager;
import com.songoda.epicenchants.command.commands.*; import com.songoda.epicenchants.commands.*;
import com.songoda.epicenchants.listeners.ArmorListener; import com.songoda.epicenchants.listeners.ArmorListener;
import com.songoda.epicenchants.listeners.EntityListener; import com.songoda.epicenchants.listeners.EntityListener;
import com.songoda.epicenchants.listeners.HeldItemListener; import com.songoda.epicenchants.listeners.HeldItemListener;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.EpicEnchants; import com.songoda.epicenchants.EpicEnchants;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.core.compatibility.CompatibleMaterial; import com.songoda.core.compatibility.CompatibleMaterial;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.EpicEnchants; import com.songoda.epicenchants.EpicEnchants;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.CommandCommons; import com.songoda.epicenchants.CommandCommons;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.CommandCommons; import com.songoda.epicenchants.CommandCommons;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.EpicEnchants; import com.songoda.epicenchants.EpicEnchants;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.CommandCommons; import com.songoda.epicenchants.CommandCommons;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.EpicEnchants; import com.songoda.epicenchants.EpicEnchants;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.EpicEnchants; import com.songoda.epicenchants.EpicEnchants;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.core.configuration.editor.PluginConfigGui; import com.songoda.core.configuration.editor.PluginConfigGui;

View File

@ -1,4 +1,4 @@
package com.songoda.epicenchants.command.commands; package com.songoda.epicenchants.commands;
import com.songoda.core.commands.AbstractCommand; import com.songoda.core.commands.AbstractCommand;
import com.songoda.epicenchants.EpicEnchants; import com.songoda.epicenchants.EpicEnchants;

View File

@ -2,6 +2,7 @@ package com.songoda.epicenchants.effect.effects;
import com.songoda.epicenchants.effect.EffectExecutor; import com.songoda.epicenchants.effect.EffectExecutor;
import com.songoda.epicenchants.enums.EventType; import com.songoda.epicenchants.enums.EventType;
import com.songoda.epicenchants.objects.LeveledModifier;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -15,6 +16,8 @@ public class Explode extends EffectExecutor {
@Override @Override
public void execute(@NotNull Player user, @Nullable LivingEntity opponent, int level, EventType eventType) { public void execute(@NotNull Player user, @Nullable LivingEntity opponent, int level, EventType eventType) {
consume(entity -> entity.getWorld().createExplosion(entity.getLocation(), getSection().getInt("magnitude")), user, opponent); consume(entity -> entity.getWorld().createExplosion(entity.getLocation(), (float) LeveledModifier
.of(getSection().getString("magnitude")).get(level, level, user, opponent)),
user, opponent);
} }
} }