04-14-2013, 02:39 AM
No, you can't, that class is only for webadmin stuff.
I don't think there's any good support within MCServer for downloading stuff, or even networking, for that matter. There's a FS issue #313 for adding basic networking API: http://www.mc-server.org/support/index.p...ask_id=313
The problem with downloading is that it takes a long time, so you want to do it "in the background". But MCServer plugins cannot currently do anything in the background (and that's not supposed to change much anytime soon). A better approach is to have the plugin create an MCServer object that will call back into the plugin if there's anything of interest. Such as - a TCP socket object that will call a Lua callback whenever there's data incoming over the socket.
I don't think there's any good support within MCServer for downloading stuff, or even networking, for that matter. There's a FS issue #313 for adding basic networking API: http://www.mc-server.org/support/index.p...ask_id=313
The problem with downloading is that it takes a long time, so you want to do it "in the background". But MCServer plugins cannot currently do anything in the background (and that's not supposed to change much anytime soon). A better approach is to have the plugin create an MCServer object that will call back into the plugin if there's anything of interest. Such as - a TCP socket object that will call a Lua callback whenever there's data incoming over the socket.