Jump to content




[1.3] Get person's username


  • You cannot reply to this topic
8 replies to this topic

#1 Hawk777

  • Members
  • 162 posts

Posted 09 March 2012 - 04:32 AM

It would be neat if there were a way to get the (Minecraft) username of the person interacting with a console (since multiple people can presumably right-click on a console at the same time, perhaps this could be hung off something like "key" and "char" events, indicating who typed the key.

#2 Sebra

  • Members
  • 726 posts

Posted 09 March 2012 - 04:52 AM

What happens now when multiple people right-click on a console at the same time?

#3 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 09 March 2012 - 10:32 AM

This is hard to do; multiple people can access the same computer at the same time.

When multiple people use a computer, their input is combined, e.g if person A typed "hello ", and person B typed "world!", the computer's screen might look like this:
CraftOS 1.3
> hello world!


#4 Sebra

  • Members
  • 726 posts

Posted 09 March 2012 - 10:40 AM

so both persons will see "hello world!" ?

#5 Hawk777

  • Members
  • 162 posts

Posted 09 March 2012 - 12:07 PM

That's why I suggested doing this at the event level. Sure, one person might type "hello" and one might type "world", but each individual "key" or "char" event will come from only one person.

#6 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 09 March 2012 - 12:45 PM

That sounds like magic, though :/

I don't think Dan would approve.

#7 Jan

  • Members
  • 141 posts
  • Locationthe Netherlands

Posted 09 March 2012 - 04:27 PM

Maybe a fingerprint/iris-scan device?
commands in the peripheral api:
"on" - The device starts flashing, so the user sees it is ready, and he can put his finger on it.
"off" - Put the device off
"get" - Returns the latest fingerprint taken (fingerprint is the name of player, or the checksum of the name)

#8 passinglurker

  • New Members
  • 88 posts

Posted 09 March 2012 - 05:30 PM

if this is going to be like the crafting table problem then i'm going to keep my computers out of reach in a locked room

#9 coolblockj

  • Members
  • 84 posts

Posted 09 March 2012 - 11:16 PM

I agree with this idea and Jan, i would love to have like a scanner for my code doors and such on multiplayer!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users