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

Breaking snitches now displays who owns them and what group they were on #50

Merged
merged 3 commits into from
Dec 15, 2015
Merged

Conversation

TealNerd
Copy link

No description provided.

@@ -301,6 +301,14 @@ public void breakSnitchBlock(BlockBreakEvent event) {
return;
}
Block block = event.getBlock();
if(block.getType().equals(Material.JUKEBOX) || block.getType().equals(Material.NOTE_BLOCK) && plugin.getConfigManager().isDisplayOwnerOnBreak()) {

Choose a reason for hiding this comment

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

Dont think this logic is right. Shouldn't it be

if((block.getType().equals(Material.JUKEBOX) || block.getType().equals(Material.NOTE_BLOCK)) && plugin.getConfigManager().isDisplayOwnerOnBreak())

@TealNerd
Copy link
Author

The logic should still work but i can add the extra parenthesis just to be sure. as for the config thing, those are definitely parenthesis...

@rourke750
Copy link

For the if statement lets say some breaks a Jukebox wouldnt and config was set to false: true || false && false == true || false making the statement true even though it should be false or am I messing up?

@rourke750
Copy link

ok to test

1 similar comment
@rourke750
Copy link

ok to test

@CivcraftBot
Copy link

Can one of the admins verify this patch? Type 'ok to test' to test.

@rourke750
Copy link

ok to test

For some reason my macbook decided that quotes are not quotes and messed
it up
@TealNerd
Copy link
Author

Also I think you meant to say they weren't quotes not they weren't parenthesis
@rourke750

@rourke750
Copy link

rourke750 commented Nov 29, 2015 via email

@rourke750
Copy link

ok to test

@TealNerd
Copy link
Author

TealNerd commented Dec 9, 2015

@rourke750 can we merge this?

@Maxopoly
Copy link

Did you test this?

@ttk2
Copy link

ttk2 commented Dec 15, 2015

bump.

On Mon, Dec 14, 2015 at 8:21 AM, Max Baumstark notifications@github.com
wrote:

Did you test this?


Reply to this email directly or view it on GitHub
#50 (comment).

Before I derped and it was getting the world object, now it just gets the world name
@TealNerd
Copy link
Author

yes

rourke750 added a commit that referenced this pull request Dec 15, 2015
Breaking snitches now displays who owns them and what group they were on
@rourke750 rourke750 merged commit efb99c5 into Civcraft:master Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants