This is incredible! Easily customizable and safe. This is really useful!
This looks very nice, but I came across an issue:
14:54:42.076 - Infinite yield possible on 'Players.chrisopdemobiel.PlayerGui.Cmdr:WaitForChild("Frame")'
14:54:42.082 - Stack Begin
14:54:42.084 - Script 'ReplicatedStorage.CmdrClient.CmdrInterface.Window', Line 21
14:54:42.085 - Stack End
And indeed, there’s no frame anywhere.
Works just fine for me, how was this issue created?
I think you might have set up Cmdr incorrectly. Please refer to the README for the setup instructions.
I like this alot, especially the interface.
Could there be a testing placefile with Cmdr installed only? The community can use it to easily test it out to determine if it’s fitting the needs of them.
Cmdr now has a fancy new documentation website!
Using a VuePress plugin I wrote, the API Reference section is especially beautiful and much more detailed than before. Complete with hyperlinks to Cmdr and even Roblox types!
Hello, I’ve been looking through the code and I can’t seem to find where it makes sure that the player sending the command is an Admin. (Sorry for the bump)
I had the same question when I installed cmdr. This is what worked for me.
On the server (you can get the player inside the hook with context.Executor):
local rs = game:GetService("ReplicatedStorage");
local resources = require(rs:WaitForChild("Resources"));
local cmdr = resources:LoadLibrary("Cmdr");
cmdr:RegisterDefaultCommands();
cmdr.Registry:AddHook("BeforeRun", function(context)
if (check if user isnt admin here) then
return "You're not an admin!";
end
end)
On the client:
local rs = game:GetService("ReplicatedStorage");
local resources = require(rs:WaitForChild("Resources"));
local cmdr = resources:LoadLibrary("CmdrClient");
if (check if user is admin) then
cmdr:SetActivationKeys({Enum.KeyCode.Semicolon});
else
cmdr:SetActivationKeys({});
end
A better way to disable Cmdr from being used by a non-admin is to use CmdrClient.SetEnabled. Setting the activation keys to a blank table probably isn’t a good idea.
Wow this is amazing. I am discovering a lot of new tools to help speed up my game development. This and Aurora is gonna help me a lot.
How do I install this? Can someone tell me?
Wow that is a lot of work, and it’s did very well, you did an awesome job, there aren’t so many admins commands setups in roblox so you did a great contribute for developers too.
This looks very intriguing! I hope to get my hands on it sometime.
This is a great system, it’s just been implemented into an admin system for a game that I play and moderate in. @JohnnyMorganz
Just started using this in my game. I absolutely love the idea of custom-made commands and it works great. Highly recommend.
Kinda confused, sorry. But how would I toggle the command bar?
Hello, to toggle the command bar you would press the activation key(s) you have set in LocalScript where you required the CmdrClient module. By default, it would be Semicolon if you copied and pasted the code on the setup guide.