mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-09-29 08:07:34 +02:00
Final
This commit is contained in:
parent
721dfa1179
commit
5e97f18bbe
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "EpicEnchants"
|
name: "EpicEnchants"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "1_B8"
|
version: "1_RC1"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -28,7 +28,7 @@ public class CommandManager implements CommandExecutor {
|
|||||||
addCommand(new CommandSettings(commandEpicEnchants));
|
addCommand(new CommandSettings(commandEpicEnchants));
|
||||||
addCommand(new CommandReload(commandEpicEnchants));
|
addCommand(new CommandReload(commandEpicEnchants));
|
||||||
addCommand(new CommandApply(commandEpicEnchants));
|
addCommand(new CommandApply(commandEpicEnchants));
|
||||||
addCommand(new CommandInfo(commandEpicEnchants));
|
addCommand(new CommandList(commandEpicEnchants));
|
||||||
addCommand(new CommandGiveBook(commandEpicEnchants));
|
addCommand(new CommandGiveBook(commandEpicEnchants));
|
||||||
addCommand(new CommandGiveItemDust(commandEpicEnchants));
|
addCommand(new CommandGiveItemDust(commandEpicEnchants));
|
||||||
addCommand(new CommandGiveScroll(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.enums.EnchantResult.BROKEN_FAILURE;
|
||||||
import static com.songoda.epicenchants.utils.single.GeneralUtils.getMessageFromResult;
|
import static com.songoda.epicenchants.utils.single.GeneralUtils.getMessageFromResult;
|
||||||
|
|
||||||
public class CommandInfo extends AbstractCommand {
|
public class CommandList extends AbstractCommand {
|
||||||
|
|
||||||
public CommandInfo(AbstractCommand parent) {
|
public CommandList(AbstractCommand parent) {
|
||||||
super(parent, true, "info");
|
super(parent, true, "list");
|
||||||
}
|
}
|
||||||
|
|
||||||
//ee apply [enchant] [level] <success-rate> <destroy-rate>
|
|
||||||
@Override
|
@Override
|
||||||
protected ReturnType runCommand(EpicEnchants instance, CommandSender sender, String... args) {
|
protected ReturnType runCommand(EpicEnchants instance, CommandSender sender, String... args) {
|
||||||
instance.getInfoManager().getMainInfoMenu().open((Player)sender);
|
instance.getInfoManager().getMainInfoMenu().open((Player)sender);
|
||||||
@ -36,12 +35,12 @@ public class CommandInfo extends AbstractCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPermissionNode() {
|
public String getPermissionNode() {
|
||||||
return "epicenchants.info";
|
return "epicenchants.list";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSyntax() {
|
public String getSyntax() {
|
||||||
return "/ee info";
|
return "/ee list";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@ -16,13 +16,15 @@ description:
|
|||||||
item-whitelist:
|
item-whitelist:
|
||||||
- "CHESTPLATES"
|
- "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:
|
effects:
|
||||||
THROW:
|
THROW:
|
||||||
# The trigger that will fire this effect.
|
# The trigger that will fire this effect.
|
||||||
trigger: "DEFENSE_PLAYER_MELEE, DEFENSE_PLAYER_RANGE"
|
trigger: "DEFENSE_PLAYER_MELEE, DEFENSE_PLAYER_RANGE"
|
||||||
# The direction of the throw.
|
# The direction of the throw.
|
||||||
direction: BACKWARD
|
direction: BACKWARD
|
||||||
|
# Who should this effect be ran on.
|
||||||
|
who: OPPONENT
|
||||||
# Magnitude of the throw.
|
# Magnitude of the throw.
|
||||||
magnitude: "{level} * 0.2"
|
magnitude: "{level} * 0.2"
|
||||||
# Chance of the effect firing.
|
# Chance of the effect firing.
|
||||||
|
@ -9,7 +9,7 @@ group: LEGENDARY
|
|||||||
|
|
||||||
# Description
|
# 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.
|
# What items this enchant can be applied to.
|
||||||
item-whitelist:
|
item-whitelist:
|
||||||
|
@ -22,5 +22,5 @@ effects:
|
|||||||
# The trigger that will fire this effect
|
# The trigger that will fire this effect
|
||||||
trigger: "DEFENSE_PLAYER_MELEE,DEFENSE_MOB_MELEE"
|
trigger: "DEFENSE_PLAYER_MELEE,DEFENSE_MOB_MELEE"
|
||||||
# Chance that this effect wil fire.
|
# Chance that this effect wil fire.
|
||||||
chance: "user_is_sneaking ? (8 * {level}) : (4 * {level})"
|
chance: "{user_is_sneaking} ? (8 * {level}) : (4 * {level})"
|
||||||
|
|
@ -16,11 +16,11 @@ item-whitelist:
|
|||||||
- "SWORDS"
|
- "SWORDS"
|
||||||
- "AXES"
|
- "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:
|
effects:
|
||||||
POTION:
|
POTION:
|
||||||
trigger: 'ATTACK_PLAYER_MELEE,ATTACK_PLAYER_RANGE,ATTACK_MOB_MELEE,ATTACK_MOB_RANGE'
|
trigger: 'ATTACK_PLAYER_MELEE,ATTACK_PLAYER_RANGE,ATTACK_MOB_MELEE,ATTACK_MOB_RANGE'
|
||||||
potion-type: SLOWNESS
|
potion-type: SLOW
|
||||||
duration: '10*{level}'
|
duration: '10*{level}'
|
||||||
amplifier: '{level}'
|
amplifier: '{level}'
|
||||||
who: OPPONENT
|
who: OPPONENT
|
||||||
|
Loading…
Reference in New Issue
Block a user