mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-20 15:39:31 +00:00
Fixed %player% bug
This commit is contained in:
@@ -46,7 +46,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.willfp:eco:5.2.0'
|
compileOnly 'com.willfp:eco:5.7.1'
|
||||||
|
|
||||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
compileOnly 'org.jetbrains:annotations:19.0.0'
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package com.willfp.ecobosses;
|
|||||||
import com.willfp.eco.core.AbstractPacketAdapter;
|
import com.willfp.eco.core.AbstractPacketAdapter;
|
||||||
import com.willfp.eco.core.EcoPlugin;
|
import com.willfp.eco.core.EcoPlugin;
|
||||||
import com.willfp.eco.core.command.AbstractCommand;
|
import com.willfp.eco.core.command.AbstractCommand;
|
||||||
|
import com.willfp.eco.core.command.impl.PluginCommand;
|
||||||
import com.willfp.eco.core.integrations.IntegrationLoader;
|
import com.willfp.eco.core.integrations.IntegrationLoader;
|
||||||
import com.willfp.ecobosses.bosses.EcoBosses;
|
import com.willfp.ecobosses.bosses.EcoBosses;
|
||||||
import com.willfp.ecobosses.bosses.listeners.AttackListeners;
|
import com.willfp.ecobosses.bosses.listeners.AttackListeners;
|
||||||
@@ -35,7 +36,7 @@ public class EcoBossesPlugin extends EcoPlugin {
|
|||||||
* Internal constructor called by bukkit on plugin load.
|
* Internal constructor called by bukkit on plugin load.
|
||||||
*/
|
*/
|
||||||
public EcoBossesPlugin() {
|
public EcoBossesPlugin() {
|
||||||
super("EcoBosses", 86576, 10635, "com.willfp.ecobosses.proxy", "&9");
|
super(86576, 10635, "com.willfp.ecobosses.proxy", "&9");
|
||||||
instance = this;
|
instance = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,13 +99,8 @@ public class EcoBossesPlugin extends EcoPlugin {
|
|||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* EcoEnchants-specific commands.
|
|
||||||
*
|
|
||||||
* @return A list of all commands.
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public List<AbstractCommand> getCommands() {
|
public List<PluginCommand> getPluginCommands() {
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
new CommandEbreload(this),
|
new CommandEbreload(this),
|
||||||
new CommandEbdrop(this),
|
new CommandEbdrop(this),
|
||||||
@@ -145,4 +141,9 @@ public class EcoBossesPlugin extends EcoPlugin {
|
|||||||
TabCompleterEbspawn.class
|
TabCompleterEbspawn.class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getMinimumEcoVersion() {
|
||||||
|
return "5.7.1";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ public class EcoBoss extends PluginDependent {
|
|||||||
this.topDamagerCommands = new HashMap<>();
|
this.topDamagerCommands = new HashMap<>();
|
||||||
for (int i = 1; i <= 3; i++) {
|
for (int i = 1; i <= 3; i++) {
|
||||||
this.topDamagerCommands.put(i, new ArrayList<>());
|
this.topDamagerCommands.put(i, new ArrayList<>());
|
||||||
for (String string : this.getConfig().getStrings("rewards.top-damager-commands." + i)) {
|
for (String string : this.getConfig().getStrings("rewards.top-damager-commands." + i, false)) {
|
||||||
double chance = 100;
|
double chance = 100;
|
||||||
if (string.contains("::")) {
|
if (string.contains("::")) {
|
||||||
String[] split = string.split("::");
|
String[] split = string.split("::");
|
||||||
@@ -388,7 +388,7 @@ public class EcoBoss extends PluginDependent {
|
|||||||
// Nearby Rewards
|
// Nearby Rewards
|
||||||
this.nearbyRadius = this.getConfig().getDouble("rewards.nearby-player-commands.radius");
|
this.nearbyRadius = this.getConfig().getDouble("rewards.nearby-player-commands.radius");
|
||||||
this.nearbyPlayersCommands = new HashMap<>();
|
this.nearbyPlayersCommands = new HashMap<>();
|
||||||
for (String string : this.getConfig().getStrings("rewards.nearby-player-commands.commands")) {
|
for (String string : this.getConfig().getStrings("rewards.nearby-player-commands.commands", false)) {
|
||||||
double chance = 100;
|
double chance = 100;
|
||||||
if (string.contains("::")) {
|
if (string.contains("::")) {
|
||||||
String[] split = string.split("::");
|
String[] split = string.split("::");
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package com.willfp.ecobosses.bosses.util.obj;
|
package com.willfp.ecobosses.bosses.util.obj;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
public record ImmunityOptions(boolean immuneToFire,
|
public record ImmunityOptions(boolean immuneToFire,
|
||||||
boolean immuneToSuffocation,
|
boolean immuneToSuffocation,
|
||||||
boolean immuneToDrowning,
|
boolean immuneToDrowning,
|
||||||
|
|||||||
Reference in New Issue
Block a user