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

Added /cstoggle #33

Closed
wants to merge 1 commit into from
Closed

Added /cstoggle #33

wants to merge 1 commit into from

Conversation

Dagvir
Copy link

@Dagvir Dagvir commented May 9, 2014

/cstoggle needs improving before release. Currently have a 'should-be'
functional method of disabling all forms of CS buy/sell spam. Issue is
in the implementation of the /cstoggle others option, pursuing a
feasible fix.

/cstoggle needs improving before release. Currently have a 'should-be'
functional method of disabling all forms of CS buy/sell spam. Issue is
in the implementation of the /cstoggle others potion, pursuing a
feasible fix.
@Acrobot
Copy link
Collaborator

Acrobot commented May 10, 2014

Thanks for the pull request, seems to be mostly fine, however the project is coded in a style that requires braces in every case, could you just fix that and I will gladly merge it :)

@Acrobot
Copy link
Collaborator

Acrobot commented May 10, 2014

Oh, also please put the command inside plugin.yml file and, if you could, implement the "usage" (/cstoggle ?) in that file, instead of hard-coding it in the plugin. Thanks!

@Dagvir
Copy link
Author

Dagvir commented May 10, 2014

Absolutely, noted. Will do, and get back to you. I'm still learning Java itself, for all intents and purposes. My background is in C++ and I've been putting this off too long.

@Acrobot
Copy link
Collaborator

Acrobot commented May 11, 2014

No problem, it's just a matter of style - I prefer to stick to one through the whole codebase. I'm the opposite - my background is in Java and I'm currently learning Python/C++/C# :)

@@ -38,7 +38,7 @@ protected static void sendBuyMessage(TransactionEvent event) {

String price = Economy.formatBalance(event.getPrice());

if (Properties.SHOW_TRANSACTION_INFORMATION_CLIENT) {
if (Properties.SHOW_TRANSACTION_INFORMATION_CLIENT && !Toggle.isIgnoringOthersMessages()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You must pass the "Player" instance here as isIgnoringOthersMessages() takes the parameter Player player.

@FarisR99
Copy link
Contributor

I'm going to be making my own code and creating a pull request for this.

@Dagvir
Copy link
Author

Dagvir commented May 24, 2014

Acro, go ahead and use his code if it checks out, I've got a lot going on right now that stole my attention from this again.

@Acrobot
Copy link
Collaborator

Acrobot commented May 24, 2014

@Dagvir No problem, I actually merged his commits already, however thank to you both!

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.

None yet

3 participants