diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-07-31 18:10:59 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-07-31 18:10:59 +0200 |
commit | 8ced99994bb654b935e5f858e1f13327ea7381fc (patch) | |
tree | ea716c9304b59a1dc37963f9e04f3081605f3daf /MCServer/Plugins/Core/give.lua | |
parent | Merge branch 'master' of github.com:tigerw/MCServer into tigerw-master (diff) | |
download | cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.tar cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.tar.gz cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.tar.bz2 cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.tar.lz cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.tar.xz cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.tar.zst cuberite-8ced99994bb654b935e5f858e1f13327ea7381fc.zip |
Diffstat (limited to 'MCServer/Plugins/Core/give.lua')
-rw-r--r-- | MCServer/Plugins/Core/give.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MCServer/Plugins/Core/give.lua b/MCServer/Plugins/Core/give.lua index d0fc026a6..d1c7ae59f 100644 --- a/MCServer/Plugins/Core/give.lua +++ b/MCServer/Plugins/Core/give.lua @@ -1,6 +1,6 @@ function HandleGiveCommand(Split, Player) if ((#Split ~= 2) and (#Split ~=3)) then - Player:SendMessage(cChatColor.Green .. "Usage: /give [ItemType/Name:Dmg] <Amount>"); + Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "Usage: /give [ItemType/Name:Dmg] <Amount>" ); return true; end @@ -12,7 +12,7 @@ function HandleGiveCommand(Split, Player) end if not(FoundItem) then - Player:SendMessage( cChatColor.Green .. "Invalid item id or name!" ) + Player:SendMessage(cChatColor.Rose .. "[INFO] " .. cChatColor.White .. "Invalid item id or name!" ) return true end @@ -20,7 +20,7 @@ function HandleGiveCommand(Split, Player) if (#Split == 3) then ItemAmount = tonumber(Split[3]); if ((ItemAmount == nil) or (ItemAmount < 1) or (ItemAmount > 512)) then - Player:SendMessage(cChatColor.Green .. "Invalid amount!"); + Player:SendMessage(cChatColor.Rose .. "[INFO] " .. cChatColor.White .. "Invalid amount!" ); return true; end end @@ -29,10 +29,10 @@ function HandleGiveCommand(Split, Player) local ItemsGiven = Player:GetInventory():AddItem(Item); if (ItemsGiven == ItemAmount) then - Player:SendMessage( cChatColor.Green .. "There you go!"); + Player:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "There you go!" ); LOG("Gave " .. Player:GetName() .. " " .. Item.m_ItemCount .. " times " .. Item.m_ItemType .. ":" .. Item.m_ItemDamage); else - Player:SendMessage(cChatColor.Green .. "Not enough space in inventory, only gave " .. ItemsGiven); + Player:SendMessage(cChatColor.Rose .. "[INFO] " .. cChatColor.White .. "Not enough space in inventory, only gave " .. ItemsGiven); LOG("Player " .. Player:GetName() .. " asked for " .. Item.m_ItemCount .. " times " .. Item.m_ItemType .. ":" .. Item.m_ItemDamage ..", but only could fit " .. ItemsGiven); end return true; |