Server freeze on plugin loading
#1
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.

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/R1sGhyrM

EDIT 2: It seems that the ZeroBrane debugger isn't functioning correctly, will report back if i figure out a solution
Reply
Thanks given by:


Messages In This Thread
Server freeze on plugin loading - by gv1222 - 04-04-2014, 07:22 AM
RE: Server freeze on plugin loading - by gv1222 - 04-04-2014, 12:32 PM
RE: Server freeze on plugin loading - by xoft - 04-04-2014, 03:03 PM
RE: Server freeze on plugin loading - by gv1222 - 04-05-2014, 02:43 AM
RE: Server freeze on plugin loading - by xoft - 04-05-2014, 06:08 AM
RE: Server freeze on plugin loading - by gv1222 - 04-05-2014, 10:20 AM
RE: Server freeze on plugin loading - by gv1222 - 04-07-2014, 07:20 AM
RE: Server freeze on plugin loading - by xoft - 04-07-2014, 03:47 PM
RE: Server freeze on plugin loading - by gv1222 - 04-08-2014, 02:05 AM
RE: Server freeze on plugin loading - by xoft - 04-08-2014, 03:11 AM
RE: Server freeze on plugin loading - by gv1222 - 04-08-2014, 05:55 AM
RE: Server freeze on plugin loading - by xoft - 04-09-2014, 04:06 AM



Users browsing this thread: 2 Guest(s)