Hello MCServer Community,
I started to script a plugin for MCServer. It should be a really simple party plugin.
I followed the one tutorial on how to begin to script plugins, but from there it's hard to get far. At the moment i simply dont know how to acces classes. I mean I can execute Player functions, but how can I acces the Team class?
This is my Plugin code so far:
I started to script a plugin for MCServer. It should be a really simple party plugin.
I followed the one tutorial on how to begin to script plugins, but from there it's hard to get far. At the moment i simply dont know how to acces classes. I mean I can execute Player functions, but how can I acces the Team class?
This is my Plugin code so far:
PLUGIN = nil
party = {}
function Initialize(Plugin)
Plugin:SetName("PartyPlugin")
Plugin:SetVersion(1)
PLUGIN = Plugin
cPluginManager.BindCommand("/party", "party.party", PartyMain, " ~ The Party Plugin.")
LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
return true
end
function PartyMain(Split, Player)
Player:SendMessageInfo("Test")
Player:SendMessageInfo(Player:GetTeam())
Team:AddPlayer("testtest")
return true
end

