[PR #375] [MERGED] Implemented Command Processor #11248

Open
opened 2026-06-04 12:21:56 +00:00 by Dark98 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/2006-Scape/2006Scape/pull/375
Author: @DamionDamion
Created: 2/11/2020
Status: Merged
Merged: 2/15/2020
Merged by: @dginovker

Base: masterHead: commandconsole


📝 Commits (8)

  • 85eacf9 Added CommandConsole and CommandProcessor Interface
  • f8ed690 Added two commands, ListPlayers and Stop
  • b369671 Registered commands with CommandConsole
  • 38037c6 Added request for console from main.
  • 48d5023 Moved some files around
  • 30afe3e Bug fix
  • addb333 swap break; for continue;
  • 1c79801 cough bug fix

📊 Changes

5 files changed (+145 additions, -0 deletions)

View changed files

📝 2006Redone Server/src/main/java/com/rebotted/GameEngine.java (+3 -0)
2006Redone Server/src/main/java/com/rebotted/console/CommandConsole.java (+70 -0)
2006Redone Server/src/main/java/com/rebotted/console/CommandProcessor.java (+13 -0)
2006Redone Server/src/main/java/com/rebotted/console/commands/ListPlayers.java (+31 -0)
2006Redone Server/src/main/java/com/rebotted/console/commands/Stop.java (+28 -0)

📄 Description

Added a command processor!

It runs in another thread and reads/writes to stdin stdout.

Create a class that implements CommandProcessor, add it to the ArrayList<CommandProcessor> cmds in the CommandConsole() constructor.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/2006-Scape/2006Scape/pull/375 **Author:** [@DamionDamion](https://github.com/DamionDamion) **Created:** 2/11/2020 **Status:** ✅ Merged **Merged:** 2/15/2020 **Merged by:** [@dginovker](https://github.com/dginovker) **Base:** `master` ← **Head:** `commandconsole` --- ### 📝 Commits (8) - [`85eacf9`](https://github.com/2006-Scape/2006Scape/commit/85eacf96c11169a24367e2f406d423532da7426e) Added CommandConsole and CommandProcessor Interface - [`f8ed690`](https://github.com/2006-Scape/2006Scape/commit/f8ed690e1473a196b1d4c71ff0fc5931322bc74d) Added two commands, ListPlayers and Stop - [`b369671`](https://github.com/2006-Scape/2006Scape/commit/b369671ddc742509f734084f4e93076ea6cceb13) Registered commands with CommandConsole - [`38037c6`](https://github.com/2006-Scape/2006Scape/commit/38037c6b77999d7bf77534d7b2b3a975ed5b2261) Added request for console from main. - [`48d5023`](https://github.com/2006-Scape/2006Scape/commit/48d50235bbbdc27188055d22fe71da5902139d5c) Moved some files around - [`30afe3e`](https://github.com/2006-Scape/2006Scape/commit/30afe3e52cbe91d9e7e6912fbc106635616af689) Bug fix - [`addb333`](https://github.com/2006-Scape/2006Scape/commit/addb333545a4956d30b818a92ef32362874e8c2c) swap `break;` for `continue;` - [`1c79801`](https://github.com/2006-Scape/2006Scape/commit/1c798013d85610a0fb2f6b8a812e2c2e0bb6342c) *cough* bug fix ### 📊 Changes **5 files changed** (+145 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `2006Redone Server/src/main/java/com/rebotted/GameEngine.java` (+3 -0) ➕ `2006Redone Server/src/main/java/com/rebotted/console/CommandConsole.java` (+70 -0) ➕ `2006Redone Server/src/main/java/com/rebotted/console/CommandProcessor.java` (+13 -0) ➕ `2006Redone Server/src/main/java/com/rebotted/console/commands/ListPlayers.java` (+31 -0) ➕ `2006Redone Server/src/main/java/com/rebotted/console/commands/Stop.java` (+28 -0) </details> ### 📄 Description Added a command processor! It runs in another thread and reads/writes to stdin stdout. Create a class that implements `CommandProcessor`, add it to the `ArrayList<CommandProcessor> cmds` in the `CommandConsole()` constructor. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Dark98 added the pull-request label 2026-06-04 12:21:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#11248