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

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

@ -9,7 +9,7 @@ group: LEGENDARY
# 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

@ -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,11 +16,11 @@ 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