mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 11:05:38 +01:00
Save actual effect name to actions config, fixes #1389
This commit is contained in:
parent
ea0a2087e6
commit
bcb8e75de0
@ -3070,7 +3070,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
try {
|
||||
effect = Effect.valueOf(s.toUpperCase());
|
||||
} catch (final IllegalArgumentException e) {
|
||||
throw new ActionFormatException("effect-locations is not a valid effect name",
|
||||
throw new ActionFormatException(s + " is not a valid effect name",
|
||||
actionKey);
|
||||
}
|
||||
final Location l = ConfigUtil.getLocation(effectLocs.get(effectList.indexOf(s)));
|
||||
|
@ -341,7 +341,7 @@ public class EffectPrompt extends ActionsEditorNumericPrompt {
|
||||
} else {
|
||||
effects = new LinkedList<String>();
|
||||
}
|
||||
effects.add(input.toUpperCase());
|
||||
effects.add(MiscUtil.getProperEffect(input).name());
|
||||
context.setSessionData(CK.E_EFFECTS, effects);
|
||||
final Map<UUID, Block> selectedEffectLocations = plugin.getActionFactory().getSelectedEffectLocations();
|
||||
selectedEffectLocations.remove(player.getUniqueId());
|
||||
|
Loading…
Reference in New Issue
Block a user