Using ScriptCraft in Singleplayer Mode

154 views
Skip to first unread message

Captain Starbuck

unread,
Aug 28, 2017, 11:28:04 PM8/28/17
to ScriptCraft - Scripting Minecraft
I know this has been discussed before but I'm not connecting dots here, and hope for some insight.

I know we can start a server from the OS command line and then connect into the localhost server in Multiplayer mode. From the server command-line, OP PlayerName and we now have ops and we can use ScriptCraft.

But can we use ScriptCraft in Singleplayer mode?

/js and /jsp are not available.
There's no Ops window to give my player/user OPS privileges.

We have file build.local.properties with the following, but I can't find info on how this is used:

# This setting will ensure the bukkit server will give you ops
op
.name=YOUR_USERID_HERE

Even when setting that, and rebuilding, I'm not getting auto-OPS in Multiplayer or Singleplayer.

Is there any more info on this topic?

I've written new documentation for how to start the server and connect in, about what happens with Singleplayer, etc. But on this topic I'm not well informed.

Thanks!

Randy Friend

unread,
Aug 29, 2017, 9:32:13 AM8/29/17
to ScriptCraft - Scripting Minecraft
I believe the issue with singleplayer mode is there is no API exposed as it is a direct connect to an 'internal' server of sorts such as a 'sandboxed' game.  Without access to the API calls, nothing will work.  

I have not tried the setting you are referencing, but other flags that could come into play in the server.properties file are 'white-list' and 'online-mode'..  If 'white-list' is set to true, the OP will need to be in the whitelist file as well.  With 'online-mode' set to true, the username and password must be valid and will be verified online during login.

Captain Starbuck

unread,
Sep 1, 2017, 3:30:32 AM9/1/17
to ScriptCraft - Scripting Minecraft
Thanks Randy - Indeed, I'm a little embarrassed but I've forgotten about plugins and SinglePlayer mode. I'll look into the online-mode flag. It doesn't look like it affects SP mode

I set the flags as indicated, copied my whitelist info with the GUID from my live server. I understand how whitelisting works, it doesn't address this current challenge.

Unless someone comes up with settings for this, I'll assume we can't do it. That's not a problem at all, the docs I'm working on don't suggest doing anything in SP anyway.

.
Reply all
Reply to author
Forward
0 new messages