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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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 |