Hey all, i've recently become more interested in MCServer and decided to mess around with Lua and make a basic plugin. I've followed the plugin tutorial and looked at the Core plugin on github but i'm not necessarily sure what the issue causing the server to freeze on startup would be. I have the debug plugin enabled but it doesn't seem to log anything as the server freezes right when loading my plugin. (I have named the file plugin.lua) Code is below if anyone could give me a hand, thanks.
EDIT 2: It seems that the ZeroBrane debugger isn't functioning correctly, will report back if i figure out a solution
function Initialize(Plugin)
plugin:setName("Basics")
plugin:setVersion(1)
PluginManager = cRoot:Get():GetPluginManager()
LOG("Loading " .. Plugin:GetName() .. "Version: " .. Plugin:GetVersion())
cPluginManager.BindCommand('/heal', 'Basics.heal', HealPlayer, ' Heal player to full health.')
return true
end
function HealPlayer(Split, Player)
local Healed = false
if (Split[2] == nil) then
SendMessage(Player, cChatColor.Red .. 'You have been healed.')
Player:Feed(20)
Player:Heal(20)
Healed = true
return true
end
end
if not(Healed) then
SendMessageFailure(Player, Split[2] .. 'was not found.')
return false
end
EDIT: I'm not sure why the code tags added the extra /'s.. but the code is also on pastebin here: http://pastebin.com/R1sGhyrMEDIT 2: It seems that the ZeroBrane debugger isn't functioning correctly, will report back if i figure out a solution

