Ulysses Stuff > Releases
SimpleCommands
Zmaster:
What is it
This addon is inspired by a plugin that my old friend made for Minecraft servers years ago, back in my Minecraft days. The idea behind it is that server owners can create chat commands without having any code knowledge. I expanded the idea a bit by making it not just show text, but also opening specified URLs in the Steam ingame browser.
Commands:
There's only one command, and it has no arguments
Chat commands: "!commands" or "/commands" --opens the main commands window (Pictures below)
To Do:
I have an idea to condense the code a bit w/out removing any functionality, will be done in a later update.
Known Bugs:
N/A
Pictures:
Main commands window: http://i.imgur.com/CenrSni.jpg
Command options window (double click existing command to open): http://i.imgur.com/3DCjo9f.jpg
Add a command window: http://i.imgur.com/WDaObyl.jpg
Add a command window w/ existing command types: http://i.imgur.com/C1fOKzh.jpg
Configuration:
There is one config file, all you need to do in it is supply the color that text command types show up in chat with, and the usergroups that are allowed to add/edit/remove commands. By default, the color is yellow(255, 255, 0) and the ranks are admin&superadmin
Versions:
--- Code: ---1.2 (3/2/16)
- Added option in config to either open URL through Steam ingame web browser or DFrame.
1.1 (7/31/15):
- Fixed bug where using the !commands command while not having access to it would return an error
1.0 (7/13/15):
- Initial release
--- End code ---
Download:
The addon is attached to this post as a .zip file
I think you need to be signed in to download it
MrPresident:
Interesting idea. You should have a third option for advanced users to add commands that do use code.
It would require a little string fines, but its doable.
Ex:
Command: !killme
Type: Script
Script: ply:Kill()
You could have it parse the text for lua, doing a simple find and replace for ply (or whatever) for the player running the command.
You could use this: http://wiki.garrysmod.com/page/Global/CompileString
Zmaster:
Hmm, sounds interesting
I'll try it out next time I'm working on it and try to work it in
Thanks for the idea
MrPresident:
No problem. If you need any help with it, let me know.
Naruu # Mr. Pink:
Hi!
When i am a "user" on my server and I write !commands in chat, the lua an error occurs.
--- Code: ---[ERROR] LuaCmd:1: ')' expected near '<eof>'
1. unknown - LuaCmd:0
--- End code ---
but, it's a great release! it works great !
Navigation
[0] Message Index
[#] Next page
Go to full version