-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ben/mv5/modify command #3023
Ben/mv5/modify command #3023
Conversation
# Conflicts: # src/main/java/org/mvplugins/multiverse/core/commandtools/MVCommandContexts.java # src/main/java/org/mvplugins/multiverse/core/world/MultiverseWorld.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all I can review atm. Gotta lay down.
MultiverseWorld mvWorld = context.getContextValue(MultiverseWorld.class); | ||
ConfigModifyType modifyType = context.getContextValue(ConfigModifyType.class); | ||
String propertyName = context.getContextValue(String.class); | ||
return mvWorld.suggestPropertyValues(modifyType, propertyName, context.getInput()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a world suggesting property values? This smells like MultiverseWorld is doing too much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe parts of this class need to be exposed with a new interface with a getter on MultiverseWorld. I think this would help manage SRP a bit more.
No description provided.