mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Simplify clear command
This commit is contained in:
parent
f7b0702457
commit
c6a56ed430
@ -8,6 +8,9 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function handle_clear_command(giver, receiver)
|
local function handle_clear_command(giver, receiver)
|
||||||
|
if receiver == "" then
|
||||||
|
receiver = giver
|
||||||
|
end
|
||||||
local receiverref = minetest.get_player_by_name(receiver)
|
local receiverref = minetest.get_player_by_name(receiver)
|
||||||
if receiverref == nil then
|
if receiverref == nil then
|
||||||
return false, S("Player @1 does not exist.", receiver)
|
return false, S("Player @1 does not exist.", receiver)
|
||||||
|
Loading…
Reference in New Issue
Block a user