cmdr-additions is still largely incomplete. Use with caution.
An extension for Cmdr that provides additional functionality you would expect from a traditional Roblox "admin commands" suite.
cmdr-additions tries to be as un-intrusive as possible, allowing use alongside Cmdr in all Roblox games.
Forking this repository is encouraged if you wish to add any functionality that may be specific to your game but isn't achievable with the Cmdr API, including but not limited to:
- UI modifications
- Modified functionality for certain commands
- Translations to other languages
TODO
Add this repository as a submodule to your project. This assumes you wish to clone it into a Packages
directory. Don't forget to initialize submodules!
git submodule add https://github.com/Reselim/cmdr-additions.git Packages/CmdrAdditions
git submodule update --init --recursive
You can also clone it if you don't have a git repository set up in your project.
git clone https://github.com/Reselim/cmdr-additions.git Packages/CmdrAdditions
cd Packages/CmdrAdditions
git submodule init
If you have the Packages
directory already syncing in, you're good to go! cmdr-additions will be added as normal thanks to having a project file with no root.
Add cmdr-additions as a synced in directory wherever you wish, and add a Folder object named "Packages" inside with all of the dependencies, according to the project file.
"CmdrAdditions": {
"$path": "Packages/CmdrAdditions",
"Packages": {
"$className": "Folder",
"Roact": { "$path": "Packages/Roact" },
"Flipper": { "$path": "Packages/Flipper" },
"RoactFlipper": { "$path": "Packages/RoactFlipper" },
"Promise": { "$path": "Packages/Promise/lib" },
"Util": { "$path": "Packages/Util" }
}
}
You can supplement the paths of these dependencies with ones already in your Packages directory, but it's recommended to use the ones provided by cmdr-additions to make sure the version is compatible.
TODO
On both the client and the server:
- Initialize Cmdr using the setup guide on the Cmdr website.
- Create a new instance of CmdrAdditions with config provided (see here for an example).
- Call
:Register(cmdr)
, providing either the Cmdr or CmdrClient object depending on which applies.
CmdrAdditions.new(config):Register(Cmdr)
TODO (see here for an example)
Note: There are plenty more commands planned.
message
, m
Shows a message that covers all players' screens.
Arguments:
string
Content β The content of the message to show
servermessage
, sm
Like the message
command, but without author details.
Arguments:
string
Content β The content of the message to show
teleport
, tp
Teleports players to a player.
Arguments:
players
Players β The players to teleportplayer
Target player β The player to teleport to
to
, goto
Teleports you to a player.
Arguments:
player
Target player β The player to teleport to
bring
Teleports players to you.
Arguments:
players
Players β The players to bring
setwalkspeed
, walkspeed
, ws
Updates the WalkSpeed property on players' humanoids.
Arguments:
players
Players β The players to updatenumber
Walk speed β Maximum walking speed, measured in studs per second
setjumppower
, jumppower
, jp
Updates the JumpPower property on players' humanoids.
Arguments:
players
Players β The players to updatenumber
Jump power
forcefield
, ff
Gives players a forcefield.
Arguments:
players
Players β The players to give a forcefield to
removeforcefield
, unff
, unforcefield
Removes all forcefields that are on players' characters.
Arguments:
players
Players β The players to remove forcefields from
respawn
Respawns players' characters.
Arguments:
players
Players β The players to respawn
refresh
Respawns players' characters, but keeps their old position.
Arguments:
players
Players β The players to refresh
kill
Kills players by running BreakJoints on their character.
Arguments:
players
Players β The players to kill
uptime
Shows how long the server has been up for.
sit
Makes a player sit.
Arguments:
players
Players β The players to sit
stun
, platformstand
Stuns players by setting PlatformStand on their humanoids to true.
Arguments:
players
Players β The players to stun
jump
, unstun
, unplatformstand
Makes players jump; also sets PlatformStand to false.
Arguments:
players
Players β The players to make jump
setgravitymodifier
, setgrav
, grav
Sets characters' gravity compared to the global gravity.
Arguments:
players
Players β The players to change gravity fornumber
Gravity modifier β The ratio of character gravity to global gravity; 0 for no gravity, 1 for default
TODO
cmdr-additions requires Rojo 0.6.0 or above to sync properly. Once you have that installed, run:
rojo serve Demo
Use the Roblox Studio plugin to sync into any place you wish (preferably an empty baseplate!) and you're good to go. Rojo will automatically keep any changes up to date, allowing you to play-test at any time.
cmdr-additions is available under the MIT license. See LICENSE for details.
Please note that included dependencies may have different licenses.