Skip to content

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

Merged
sunnamed434 merged 1 commit into
masterfrom
fix/commands-rework
Mar 31, 2024
Merged

Changed commands field to a dictionary, our problems are over.#48
sunnamed434 merged 1 commit into
masterfrom
fix/commands-rework

Conversation

@Jdance-Media
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

That build failure was not me.

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

public IRocketCommand GetCommand(string command)
Copy link
Copy Markdown

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
Copy Markdown
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.

Copy link
Copy Markdown

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
Copy Markdown

@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
@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