mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-11-14 22:56:20 +01:00
Final
This commit is contained in:
parent
721dfa1179
commit
5e97f18bbe
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "EpicEnchants"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1_B8"
|
||||
version: "1_RC1"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -28,7 +28,7 @@ public class CommandManager implements CommandExecutor {
|
||||
addCommand(new CommandSettings(commandEpicEnchants));
|
||||
addCommand(new CommandReload(commandEpicEnchants));
|
||||
addCommand(new CommandApply(commandEpicEnchants));
|
||||
addCommand(new CommandInfo(commandEpicEnchants));
|
||||
addCommand(new CommandList(commandEpicEnchants));
|
||||
addCommand(new CommandGiveBook(commandEpicEnchants));
|
||||
addCommand(new CommandGiveItemDust(commandEpicEnchants));
|
||||
addCommand(new CommandGiveScroll(commandEpicEnchants));
|
||||
|
@ -16,13 +16,12 @@ import java.util.Optional;
|
||||
import static com.songoda.epicenchants.enums.EnchantResult.BROKEN_FAILURE;
|
||||
import static com.songoda.epicenchants.utils.single.GeneralUtils.getMessageFromResult;
|
||||
|
||||
public class CommandInfo extends AbstractCommand {
|
||||
public class CommandList extends AbstractCommand {
|
||||
|
||||
public CommandInfo(AbstractCommand parent) {
|
||||
super(parent, true, "info");
|
||||
public CommandList(AbstractCommand parent) {
|
||||
super(parent, true, "list");
|
||||
}
|
||||
|
||||
//ee apply [enchant] [level] <success-rate> <destroy-rate>
|
||||
@Override
|
||||
protected ReturnType runCommand(EpicEnchants instance, CommandSender sender, String... args) {
|
||||
instance.getInfoManager().getMainInfoMenu().open((Player)sender);
|
||||
@ -36,12 +35,12 @@ public class CommandInfo extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getPermissionNode() {
|
||||
return "epicenchants.info";
|
||||
return "epicenchants.list";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ee info";
|
||||
return "/ee list";
|
||||
}
|
||||
|
||||
@Override
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ELITE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Permanent jump boost."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ELITE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Slow your enemies down when"
|
||||
- "you are attacked."
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ELITE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Blast off into the air at low HP."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ELITE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Push your attackers backwards"
|
||||
- "when you are attacked."
|
||||
@ -16,13 +16,15 @@ description:
|
||||
item-whitelist:
|
||||
- "CHESTPLATES"
|
||||
|
||||
# For a full list of effects, please visit: https://docs.songoda.com/epic-series/epicenchants/tutorials
|
||||
# For a full list of effects, please visit: https://wiki.songoda.com/display/SON/EpicEnchants
|
||||
effects:
|
||||
THROW:
|
||||
# The trigger that will fire this effect.
|
||||
trigger: "DEFENSE_PLAYER_MELEE, DEFENSE_PLAYER_RANGE"
|
||||
# The direction of the throw.
|
||||
direction: BACKWARD
|
||||
# Who should this effect be ran on.
|
||||
who: OPPONENT
|
||||
# Magnitude of the throw.
|
||||
magnitude: "{level} * 0.2"
|
||||
# Chance of the effect firing.
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ELITE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Infect your enemies with a wither"
|
||||
- "effect when you are attacked."
|
||||
|
@ -7,9 +7,9 @@ max-level: 1
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance to gain Strengh for a short time."
|
||||
- "Chance to gain Strength for a short time."
|
||||
|
||||
# What items this enchant can be applied to.
|
||||
item-whitelist:
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance of regain a lot of hearts"
|
||||
- "when under 2 hearts."
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance to heal while damaged."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Gain speed when equipped."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance to steal life from your opponent."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Grants permanent extra health."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: LEGENDARY
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance to steal EXP from your opponent."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 1
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Gives permanent water breathing."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to deal"
|
||||
- "nauseau to your victim."
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to receive"
|
||||
- "more EXP when mining blocks."
|
||||
|
@ -7,7 +7,7 @@ max-level: 1
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Gives you permanent night vision"
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Permanent haste effect when"
|
||||
- "holding a tool with this enchant."
|
||||
|
@ -7,7 +7,7 @@ max-level: 7
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to give your opponent"
|
||||
- "slowness, slow swinging and confusion."
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to deal extreme knockback"
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ULTIMATE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance to give the blindness on"
|
||||
- "effect to your opponent on attack."
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ULTIMATE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Chance to dodge melee attacks,"
|
||||
- "increased chance when sneaking."
|
||||
@ -22,5 +22,5 @@ effects:
|
||||
# The trigger that will fire this effect
|
||||
trigger: "DEFENSE_PLAYER_MELEE,DEFENSE_MOB_MELEE"
|
||||
# Chance that this effect wil fire.
|
||||
chance: "user_is_sneaking ? (8 * {level}) : (4 * {level})"
|
||||
chance: "{user_is_sneaking} ? (8 * {level}) : (4 * {level})"
|
||||
|
@ -16,12 +16,12 @@ item-whitelist:
|
||||
- "SWORDS"
|
||||
- "AXES"
|
||||
|
||||
# For a full list of effects, please visit: https://docs.songoda.com/epic-series/epicenchants/tutorials
|
||||
# For a full list of effects, please visit: https://wiki.songoda.com/display/SON/EpicEnchants
|
||||
effects:
|
||||
POTION:
|
||||
trigger: 'ATTACK_PLAYER_MELEE,ATTACK_PLAYER_RANGE,ATTACK_MOB_MELEE,ATTACK_MOB_RANGE'
|
||||
potion-type: SLOWNESS
|
||||
potion-type: SLOW
|
||||
duration: '10*{level}'
|
||||
amplifier: '{level}'
|
||||
who: OPPONENT
|
||||
chance: '15*{level}'
|
||||
chance: '15*{level}'
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: ULTIMATE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "Summon Lightnings at your Opponnent."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: UNIQUE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to receive strength."
|
||||
- "and mining fatique."
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: UNIQUE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance for your arrows to"
|
||||
- "blow up on impact."
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: UNIQUE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to give a burst of haste."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 5
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: SIMPLE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to instantly break obsidian."
|
||||
|
||||
|
@ -7,7 +7,7 @@ max-level: 8
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: UNIQUE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "When near death summon creepers"
|
||||
- "to avenge you."
|
||||
|
@ -7,7 +7,7 @@ max-level: 4
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: UNIQUE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "A chance to be pushed back when."
|
||||
- "you take damage."
|
||||
|
@ -7,7 +7,7 @@ max-level: 3
|
||||
# The group of this enchant. Configure the groups in the groups.yml file.
|
||||
group: UNIQUE
|
||||
|
||||
#Description
|
||||
# Description
|
||||
description:
|
||||
- "When near death spawns tnt around you."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user