Several Ajustments

master
Elias Fleckenstein 2020-05-10 17:31:51 +02:00
parent 2de6c6cfe6
commit ec9f366270
7 changed files with 12 additions and 7 deletions

0
birthday.lua Normal file → Executable file
View File

View File

@ -8,8 +8,8 @@ minetest.register_on_joinplayer(function(player)
minetest.chat_send_player(player:get_player_name(),
minetest.colorize("#D6CD00", " ELIDRAGON") .. "\n" ..
minetest.colorize("#6076FF"," Join our discord Server (discord.gg/Z7SfXYx) or our IRC channel (#elidragon-skyblocks on irc.edgy1.net)") .. "\n" ..
minetest.colorize("#E27900", " Go to hub using /hub !") .. "\n" ..
minetest.colorize("#00F0FF", " Use /island to teleport to your island!") .. "\n" ..
minetest.colorize("#E27900", " Go to hub using /hub") .. "\n" ..
minetest.colorize("#00F0FF", " Use /island to teleport to your island") .. "\n" ..
minetest.colorize("#83FF00", " NEWS: ") .. minetest.colorize("#FFFFFF", elidragon.savedata.news or "No current News")
)
end)

5
mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = elidragon
description = The plugins for the Elidragon Server
author = Fleckenstein
depends = worldedit, moreores, moretrees, default, flowers
optional_depends = irc

View File

@ -70,7 +70,7 @@ end
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
minetest.chat_send_all(elidragon.get_player_name(name, true) .. "has joined the Server.")
if irc.connected and irc.config.send_join_part then
if irc and irc.connected and irc.config.send_join_part then
irc.say(elidragon.get_player_name(name) .. "has joined the Server.")
end
player:set_nametag_attributes({color = elidragon.get_rank(name).color})
@ -79,14 +79,14 @@ end)
minetest.register_on_leaveplayer(function(player)
local name = player:get_player_name()
minetest.chat_send_all(elidragon.get_player_name(name, true) .. "has left the Server.")
if irc.connected and irc.config.send_join_part then
if irc and irc.connected and irc.config.send_join_part then
irc.say(elidragon.get_player_name(name) .. "has left the Server.")
end
end)
minetest.register_on_chat_message(function(name, message)
minetest.chat_send_all(elidragon.get_player_name(name, true, {"<", ">"}) .. message)
if irc.connected and irc.joined_players[name] then
if irc and irc.connected and irc.joined_players[name] then
irc.say(elidragon.get_player_name(name, false, {"<", ">"}) .. message)
end
return true

0
schems/island.we Normal file → Executable file
View File

View File

@ -53,9 +53,9 @@ end
function elidragon.skyblock.load_start_positions()
local file = io.open(minetest.get_worldpath() .. "/start_positions", "r")
if file then
local data = minetest.deserialize(file:read())
local start_positions = minetest.deserialize(file:read())
file:close()
return data
return start_positions
end
end

0
textures/elidragon_quest.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 307 B