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

Changed commands field to a dictionary, our problems are over. #48

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

Jdance-Media
Copy link
Collaborator

Made changes that prevent the module from taking a few seconds to execute a command when searching for it.

Resolves #43

@Jdance-Media
Copy link
Collaborator Author

That build failure was not me.

@@ -80,9 +81,9 @@ private IRocketCommand GetCommand(IRocketCommand command)

public IRocketCommand GetCommand(string command)

Choose a reason for hiding this comment

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

Would it not be possible to return a bool and out a IRocketCommand, then you dont have to check for null and just see if its a true or false return.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not the scope of this PR.

Choose a reason for hiding this comment

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

Ik i was just pointing it out.

Copy link

@BlueBeard63 BlueBeard63 left a comment

Choose a reason for hiding this comment

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

Code is clean and well done, recommend merge.

@sunnamed434 sunnamed434 merged commit 15202a4 into master Mar 31, 2024
2 checks passed
@sunnamed434 sunnamed434 deleted the fix/commands-rework branch April 8, 2024 06:21
@sunnamed434 sunnamed434 restored the fix/commands-rework branch April 8, 2024 06:21
@sunnamed434 sunnamed434 deleted the fix/commands-rework branch April 8, 2024 06:22
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.

A lot of commands in Commands.config.xml cause server lags for any command
3 participants