Skip to content
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

Pvp utils improvement #69

Merged
merged 3 commits into from
Jun 14, 2018
Merged

Pvp utils improvement #69

merged 3 commits into from
Jun 14, 2018

Conversation

CraftedMods
Copy link
Member

@CraftedMods CraftedMods commented Jun 11, 2018

Closes #41. I didn't add utilities for the logging messages because they're not reused through the code.

@CraftedMods CraftedMods added improvement For improvements regarding existing features cleanup For refactoring and restructuring things labels Jun 11, 2018
@CraftedMods CraftedMods added this to the 1.1.0-BETA milestone Jun 11, 2018
@CraftedMods CraftedMods self-assigned this Jun 11, 2018
@CraftedMods CraftedMods requested a review from VulcanForge June 11, 2018 15:06
@CraftedMods CraftedMods mentioned this pull request Jun 12, 2018
@CraftedMods
Copy link
Member Author

I cannot really proceed until someone approved it. Unless we see the current situation as an exception and don't require a PR review.

@CraftedMods CraftedMods requested a review from mahtaran June 14, 2018 17:27
Copy link
Contributor

@mahtaran mahtaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than some formatting issues and questionable designing (Mostly, the use of this and curly brackets is inconsistent), it's good

@@ -28,13 +28,14 @@ public boolean canCommandSenderUseCommand (ICommandSender sender)
public void processCommand (ICommandSender sender, String[] args)
{
EntityPlayerMP player = getCommandSenderAsPlayer (sender);
EnumPvPMode currentMode = PvPUtils.getPvPMode (player);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this here and not check the mode in cancelPvPTimer?

Copy link
Member Author

@CraftedMods CraftedMods Jun 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because firstly I used it in the other function too but then I left the function as it was. It could also be moved to the function you've mentioned, but at least I like it to have "metadata" like this in a higher level because they could be used in future "child functions". But it's not that important, I think.

@CraftedMods
Copy link
Member Author

CraftedMods commented Jun 14, 2018

Also, I'm aware of the formatting issues. But I think it's the best to apply our formatting (and hopefully cleanup, see #64) guidelines once when we prepare a new release (or pre-release), because otherwise every commit is polluted with formattings, which makes the PRs hard to review.

@CraftedMods CraftedMods removed the request for review from VulcanForge June 14, 2018 18:19
@CraftedMods
Copy link
Member Author

The "this calls" were actually a leftover from my old cleanup template.

@CraftedMods
Copy link
Member Author

But this is why I'm strongly for reviews of the PR's. Two or three pairs of eyes see more than one.

@CraftedMods CraftedMods merged commit b4a2121 into Lembas-Modding-Team:development Jun 14, 2018
@CraftedMods CraftedMods deleted the pvp_utils_improvement branch June 14, 2018 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup For refactoring and restructuring things improvement For improvements regarding existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants