Drop towny_chat as it is not useful in any way
This commit is contained in:
parent
a6376b559a
commit
01aefb5094
@ -1 +0,0 @@
|
|||||||
towny
|
|
@ -1 +0,0 @@
|
|||||||
Towny Chat Mods
|
|
@ -1,15 +0,0 @@
|
|||||||
-- A township system for Minetest servers.
|
|
||||||
-- The MIT License - 2019 Evert "Diamond" Prants <evert@lunasqu.ee>
|
|
||||||
|
|
||||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|
||||||
towny.chat.modpath = modpath
|
|
||||||
|
|
||||||
minetest.register_on_chat_message(function (name, message)
|
|
||||||
local town = towny.get_player_town(name)
|
|
||||||
local result = ("<%s> %s"):format(name, message)
|
|
||||||
if town then
|
|
||||||
result = ("[%s] <%s> %s"):format(towny.get_full_name(town), towny.get_player_name(name), message)
|
|
||||||
end
|
|
||||||
minetest.chat_send_all(result)
|
|
||||||
return true
|
|
||||||
end)
|
|
@ -1,3 +0,0 @@
|
|||||||
name = towny_chat
|
|
||||||
description = Towny Chat Mods
|
|
||||||
depends = towny
|
|
Loading…
Reference in New Issue
Block a user