This commit is contained in:
Brianna 2019-08-05 20:06:08 -04:00
parent 721dfa1179
commit 5e97f18bbe
33 changed files with 44 additions and 43 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "EpicEnchants"
path: "/builds/$CI_PROJECT_PATH"
version: "1_B8"
version: "1_RC1"
build:
stage: build

View File

@ -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));

View File

@ -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

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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.

View File

@ -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."

View File

@ -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:

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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"

View File

@ -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."

View File

@ -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."

View File

@ -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"

View File

@ -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."

View File

@ -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})"

View File

@ -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}'

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."

View File

@ -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."