This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
valithor's profile picture

Command Events

Started by valithor, 12 February 2015 - 03:27 AM
valithor #1
Posted 12 February 2015 - 04:27 AM
Being a server owner this is coming from a server owners point of view.

With the coming of command computers comes the possibility of CC becoming a way to manage servers (in the form of plugins). Of course you would not be able to recreate every bukkit plugin efficently (such as block logging or grief prevention), but most of them is possible. The one limitation to this is the ability to tell the computer running a plugin to do something, apart from things such as chatboxes or using a pocket computer. Although these would be solutions one requires a extra mod and the other is incovient for players on a server.

My suggestion is the ability to add a command like /CC (cmd argument here)
What this command would do is fire a event in command computers, which would return a table with each argument following /CC being a index in the table.

An example of this would be /CC teleport spawn
It would return {playername,"teleport","spawn"}

This would allow people to easily create commands for command block programs they create, so they do not have to be right beside the computer to use their program. As it is the idea is cool, but it is difficult/inconvient to actually use.
Edited on 12 February 2015 - 03:33 AM
Lyqyd #2
Posted 12 February 2015 - 05:27 AM
It seems like using a separate peripheral mod would be easiest in this situation, since mods that would work for this purpose already exist, and server administrators are able to add the mod to their server if they so desire.
Cranium #3
Posted 12 February 2015 - 05:56 AM
One such addon is MoarPeripherals. It has a chatbox that can receive strings from in game chat.
valithor #4
Posted 14 February 2015 - 07:13 AM
Sorry for the late reply been busy.

One such addon is MoarPeripherals. It has a chatbox that can receive strings from in game chat.

I did actually already mention chatboxes in the original post.

It seems like using a separate peripheral mod would be easiest in this situation, since mods that would work for this purpose already exist, and server administrators are able to add the mod to their server if they so desire.

The entire reason i suggested this is i really do not see this being used much unless if this is added. The only people who will be able to use these are ops, which would be the server owners. You really wouldnt use them much in single player unless if it is a creative world.

So the point still stands, why require a extra mod to use something that is implemented in the main part of CC. It just doesnt make sense.

Chatboxes are able to receive chat messages not commands. Chatboxes can recieve "chat commands", but these are just chat messages that start with ## not actual commands. Is there another peripheral that I am missing that adds the support similar to what I suggested?
Edited on 14 February 2015 - 06:17 AM