Jump to content

addCommandHandler


#Paper

Recommended Posts

addCommandHandler("thx", 
function (thePlayer, command, arg1) 
if (arg1 == nil ) or not getPlayerFromName (arg1) then 
outputChatBox ("Error: You must insert a valid player name.", thePlayer, 255, 12, 15, false) 
else 
who = getPlayerFromName(arg1) 
outputChatBox(getPlayerName(thePlayer) .. " say thanks to ".. getPlayerName(who) .. "",getRootElement(),0,255,0) 
end 
end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...