Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Latest commit

 

History

History
20 lines (12 loc) · 693 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 693 Bytes

shell_mod

This mod add game terminal for execute shell commands. Please, use screen or other utility for long execute.

WARNING! This mod creates a potential backdoor! Do not give users of privileges for this mod!

Commands and privs

  • /shell - open terminal window (need shell_cmd priv)
  • /shell-clear - clear terminal history (need shell_clear priv)

Depends

  • initlib?

API

  • shell_mod.open_shell(player_name, old, cmd) - open terminal window. old - array (history), cmd - command for execute (string). old and cmd is optionally.
  • shell_mod.get_history() - get terminal history, return array
  • shell_mod.clear_history() - clear history