New to plugin scripting
#1
Question 
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:
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
Reply
Thanks given by:


Messages In This Thread
New to plugin scripting - by hendrikyoda - 01-11-2015, 11:02 AM
RE: New to plugin scripting - by xoft - 01-11-2015, 07:39 PM



Users browsing this thread: 1 Guest(s)