Jump to content




Safeguard - Protection with Command Computers

utility command

3 replies to this topic

#1 Agent Silence

  • Members
  • 319 posts
  • Location[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)

Posted 18 April 2015 - 07:15 PM

Hello there! I have made a quick 32 line program that sets anyone in range that isn't on the whitelist to Adventure mode. When they leave the range, it sets anyone in adventure mode to survival mode. The only downside is that you have to edit the program manually to change the whitelist and range.

pastebin get fXfKVnRj startup

Please notify me of any bugs, if you find any.

Edited by Requiem of Silence, 18 April 2015 - 07:18 PM.


#2 biggest yikes

  • Members
  • 573 posts

Posted 18 April 2015 - 08:22 PM

Haven't tested yet, but it looks like the detection of the scoreboard objective (if found == false) should be outside the for loop

#3 chexo3

  • Members
  • 5 posts

Posted 16 December 2015 - 03:03 PM

Why do you need a scoreboard objective? Couldn't you just use tables, and the http api to get UUIDs from usernames? Then just use that for protection.

#4 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 16 December 2015 - 03:35 PM

Hmm interesting program but i see one problem. I am inside range and not whitelisted. I got set to adventure. I die. I respawn at spawn that is more than range+11 blocks away. I am still stuck in adventure mode.

Anyhow this program makes me consider so many interesting command programs that a person could make.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users