Skip to content

Commit

Permalink
remove geoip.joinplayer_callback callback and docs (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
  • Loading branch information
BuckarooBanzay and BuckarooBanzay committed Jan 17, 2022
1 parent b860149 commit af5f097
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ local function format_result(result)
end
end

-- function(name, result, last_login)
geoip.joinplayer_callback = function() end

-- function(name, result, last_login)
local on_joinplayer_handlers = {}
function geoip.register_on_joinplayer(fn)
Expand Down Expand Up @@ -102,8 +99,6 @@ minetest.register_on_joinplayer(function(player, last_login)
return
end
end
-- execute function override callback
geoip.joinplayer_callback(name, data, last_login)
end)
end)

Expand Down
5 changes: 0 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ geoip.lookup("213.152.186.35", function(result)
-- see "Geoip result data"
end)

-- overrideable callback on player join
geoip.joinplayer_callback = function(playername, result, last_login)
-- see "Geoip result data"
end

-- event handler registration, `return true` will prevent overrideable callback and rest of event handlers to be called
geoip.register_on_joinplayer(function(playername, result, last_login)
-- see "Geoip result data"
Expand Down

0 comments on commit af5f097

Please sign in to comment.