Skip to content

Add ChatCommands & New ConsoleCommands#939

Open
KKNecmi wants to merge 23 commits intosmartcmd:mainfrom
KKNecmi:chatcommands
Open

Add ChatCommands & New ConsoleCommands#939
KKNecmi wants to merge 23 commits intosmartcmd:mainfrom
KKNecmi:chatcommands

Conversation

@KKNecmi
Copy link
Contributor

@KKNecmi KKNecmi commented Mar 8, 2026

Description

it adds the chat commands was left not finished

Changes

Added arg parsing to handlecommand() to check added commands also changed minecraftserver.cpp to add some commands to console

Previous Behavior

the game was looking messages starts with / but wasnt doing anything with it before changing there was a comment "4J - TODO"

Root Cause

not finished command system

New Behavior

it checks some keywords like /kill /gamemode if handlechat() finds / in the message start and check right args if not give a sendmessage to show args for that command

Fix Implementation

added arg parser to handlecommand() and with if statemens looked available commands if not give a sendmessage "unkown command"

AI Use Disclosure

ai was used to format some hard bracket insides and mapping item,tile,entity names for giveitem,setblock/fill,summon for time saving

Related Issues

  • Fixes Nothing
  • Related to Nothing

@KKNecmi KKNecmi marked this pull request as draft March 8, 2026 10:41
@KKNecmi KKNecmi marked this pull request as ready for review March 9, 2026 02:53
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.

1 participant