Global switch (pvp, WL)
#1
Help with writing global pvp and access switches.

That is, I need the commands:
/globalpvp on - and players can fight
/globalpvp off - and the players can not fight

/globalaccess on - players can log on to
/globalaccess off - players can not log on to

With regard to access: probably need to return true in the method OnLogin, if set the switch /globalaccess off (if isGlobalAccess == false)

As for the pvp no ideas.
Reply
Thanks given by:
#2
There is an OnTakeDamage callback http://mc-server.org/wiki/doku.php?id=ap...takedamage
I think all you need to do is set TDI.Damage to 0
Reply
Thanks given by:
#3
I will write this.
Reply
Thanks given by:




Users browsing this thread: 4 Guest(s)