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

[Request] Rank players on touch input?

Started by JzJad, 20 July 2015 - 09:11 PM
JzJad #1
Posted 20 July 2015 - 11:11 PM
I know this is rather lazy but im busy setting up a mod pack as well as helping the Devs from MyTown2 And Forge essentials with bugs and dont have time to touch up on lua, so im asking kindly.
Could anyone provide a way of ranking a player/executing a command on screen touch?

Im wanting to have a screen that reads off the basica rules for my server, and have a basic [Accept] [Decline] buttons at the bottom, the Accept executing the command that will rank the person who touched it, and the decline kicking them from the server. Could this be done?
Lyqyd #2
Posted 20 July 2015 - 11:22 PM
Moved to General.
KingofGamesYami #3
Posted 20 July 2015 - 11:41 PM
AFAIK, there is no way to determine who touched a monitor. If a command block can kick a player, a computer can too. Personally, I'd doubt it.

I did play on a server which used CC for something like this, they had a password on page two of the rules list, and when you entered that password into a computer it would teleport you to the 'real' spawn, rather than the box-like room you originally spawn in. I'm sure they simply used a command block that teleported the nearest player.
JzJad #4
Posted 21 July 2015 - 12:32 AM
AFAIK, there is no way to determine who touched a monitor. If a command block can kick a player, a computer can too. Personally, I'd doubt it.

I did play on a server which used CC for something like this, they had a password on page two of the rules list, and when you entered that password into a computer it would teleport you to the 'real' spawn, rather than the box-like room you originally spawn in. I'm sure they simply used a command block that teleported the nearest player.

I wouldn't mind doing something like this, only problem is currently Forge Essentials is having a bug with setting spawn propperly.
Cranium #5
Posted 21 July 2015 - 12:43 AM
There's a few peripherals you can use that do this. Check out MoarPeripherals and OpenPeripherals
Edited on 20 July 2015 - 10:44 PM
JzJad #6
Posted 22 July 2015 - 12:06 AM
There's a few peripherals you can use that do this. Check out MoarPeripherals and OpenPeripherals

What exactly could be done in my case by adding these? (I have them on my solder already from previous versions).
TheOddByte #7
Posted 22 July 2015 - 01:26 AM
What exactly could be done in my case by adding these? (I have them on my solder already from previous versions).
What he probably meant was that you can use the player detector from these mods.