Skip to content

Commit

Permalink
APIDump: Fixed example cCompositeChat URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Howaner committed Nov 14, 2014
1 parent 644240a commit 7120b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MCServer/Plugins/APIDump/APIDesc.lua
Expand Up @@ -614,7 +614,7 @@ function OnPlayerJoined(a_Player)
-- Send an example composite chat message to the player:
a_Player:SendMessage(cCompositeChat()
:AddTextPart("Hello, ")
:AddUrlPart(a_Player:GetName(), "www.mc-server.org", "u@2") -- Colored underlined link
:AddUrlPart(a_Player:GetName(), "http://www.mc-server.org", "u@2") -- Colored underlined link
:AddSuggestCommandPart(", and welcome.", "/help", "u") -- Underlined suggest-command
:AddRunCommandPart(" SetDay", "/time set 0") -- Regular text that will execute command when clicked
:SetMessageType(mtJoin) -- It is a join-message
Expand Down

0 comments on commit 7120b1a

Please sign in to comment.