1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-12 02:50:25 +01:00

- Skin updates

- Sethome FINALLY fixed :yay:

Coming soon : Removing all the minetest.env calls. 👍
This commit is contained in:
LeMagnesium 2014-11-08 16:36:02 +01:00
parent 6a8e1c9bac
commit 2a5fc1ea55
1170 changed files with 779 additions and 1045 deletions

View File

@ -48,23 +48,32 @@ minetest.register_chatcommand("home", {
description = "Teleport you to your home point", description = "Teleport you to your home point",
privs = {home=true}, privs = {home=true},
func = function(name) func = function(name)
local player = minetest.env:get_player_by_name(name)
if not player_in_nether then return end local player = minetest.get_player_by_name(name)
local is_in_nether = table.icontains(players_in_nether, name) local player_pos = player:getpos()
local is_player_in_nether = player_pos.y < -19600
if player == nil then if player == nil then
-- just a check to prevent the server crashing -- just a check to prevent the server crashing
return false return false
end end
if homepos[player:get_player_name()] then
if is_in_nether then if is_player_in_nether then
player:setpos(nether.homepos[player:get_player_name()]) if homepos.nether[name] ~= nil then
player:setpos(homepos.nether[name])
minetest.log("action",name.." teleported with /home to "..homepos.nether[name].x..","..homepos.nether[name].y..","..homepos.nether[name].z..", in the nether.")
core.chat_send_player(name, "Teleported to home in the nether!")
else else
player:setpos(real.homepos[player:get_player_name()]) core.chat_send_player(name, "Set a home in the nether using /sethome")
end end
minetest.chat_send_player(name, "Teleported to home!")
else else
minetest.chat_send_player(name, "Set a home using /sethome") if homepos.real[name] ~= nil then
player:setpos(homepos.real[name])
minetest.log("action",name.." teleported with /home to "..homepos.real[name].x..","..homepos.real[name].y..","..homepos.real[name].z..", in the real world.")
core.chat_send_player(name,"Teleported to home in the real world!")
else
core.chat_send_player(name, "Set a home in the real world using /sethome")
end
end end
end, end,
}) })
@ -73,30 +82,25 @@ minetest.register_chatcommand("sethome", {
description = "Set your home point", description = "Set your home point",
privs = {home=true}, privs = {home=true},
func = function(name) func = function(name)
local player = minetest.env:get_player_by_name(name)
local pos = player:getpos()
-- Find players in the nether
local players_in_nether = {}
local seeking = 0
local nether_file = io.open(minetest.get_worldpath().."/nether_players","r") local player_pnt = minetest.get_player_by_name(name)
if not nether_file then return end local player_pos = player_pnt:getpos()
local player_is_in_nether = player_pos.y < -19600
local player_in_nether_read = nether_file:read() if player_is_in_nether == true then
--if player_in_nether_read == "" then homepos.nether[name] = pos
--if not players_in_nether then return end minetest.log("action",name.." set its home position to "..player_pos.x..","..player_pos.y..","..player_pos.z..", in the nether.")
player_in_nether = player_in_nether_read:split(" ") core.chat_send_player(name,"Home set in the nether!")
local is_in_nether = table.icontains(players_in_nether, name)
if is_in_nether == true then
homepos.nether[player:get_player_name()] = pos
else else
homepos.real[player:get_player_name()] = pos homepos.real[name] = pos
minetest.log("action",name.." set its home position to "..player_pos.x..","..player_pos.y..","..player_pos.z..", in the real world.")
core.chat_send_player(name,"Home set in the real world!")
end end
minetest.chat_send_player(name, "Home set!")
changed = true changed = true
if changed then if changed then
local output = 0 local output = 0
if is_in_nether then if is_in_nether then
output = io.open(nether_homes_file, "w") output = io.open(nether_homes_file, "w")
if output == 0 then return end -- Had not open the file if output == 0 then return end -- Had not open the file

View File

@ -63,7 +63,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local privs = minetest.get_player_privs(name) local privs = minetest.get_player_privs(name)
privs.shout = true privs.shout = true
minetest.set_player_privs(name, privs) minetest.set_player_privs(name, privs)
end --end
return return
elseif fields.decline then elseif fields.decline then
minetest.kick_player(name, "Aurevoir ! Vous devez accepter les règles de l'irc pour jouer sur le serveur (revennez si vous changez d'avis).") minetest.kick_player(name, "Aurevoir ! Vous devez accepter les règles de l'irc pour jouer sur le serveur (revennez si vous changez d'avis).")

View File

@ -97,7 +97,7 @@ minetest.register_node("seawrecks:ubootchest", {
local kind_of_price = math.floor(math.random()*2) local kind_of_price = math.floor(math.random()*2)
local amount_of_price = math.floor(math.random()*10)+1 local amount_of_price = math.floor(math.random()*10)+1
local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreore:silver_ingot"} local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreores:silver_ingot"}
local price_group = {"",""} local price_group = {"",""}
choosen_ingot = math.floor(math.random()*5)+1 choosen_ingot = math.floor(math.random()*5)+1
price_group[1] = ingot_price[choosen_ingot].." "..amount_of_price price_group[1] = ingot_price[choosen_ingot].." "..amount_of_price

View File

@ -1,3 +0,0 @@
Franklin
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Trevor Emma
Ferdi Napoli Cidney7760
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Bart Simpson
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Creeper
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
War Machine
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Gangnam Style
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Sonic The Hedgehog
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Charizard
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Scarlet Spider-man Wants
Ferdi Napoli Wants
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Ferdi Napoli villiantest III
Ferdi Napoli marshrover
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Semmett9
Infinatum
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Finn The Adventured Geopbyte
Ferdi Napoli Geopbyte
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Jake Diamond Armor Sam
Ferdi Napoli Block_Guy
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Ferdi Napoli Reserve Hobo/Homeless person
Ferdi Napoli Minetestian
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Joker Block_Guy
Ferdi Napoli Block_Guy
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Bleau Steve Solid-Color Sam
Ferdi Napoli Block_Guy
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Deadpool Bleau
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Seth Rollins
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Daffy Duck RockerLuke skin
LuxAtheris RockerLuke
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
DareDevil Diamond Armor Sam
Ferdi Napoli Block_Guy
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Clone
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
John Semmett9
Evergreen Infinatum
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Banana Guy
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Rubber Molten Elemental
Ferdi Napoli Dunedubby
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Gothic Sam
GingerHunter797
CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Tails
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Aguia Explorer herobrine
Davizinho Zaki
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Toad
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
oOChainLynxOo Link
oOChainLynxOo tux_peng
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
amazing spiderman
mateus
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
black spiderman Saris
mateus Gfiti
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Sam Mese Tee Malon
oOChainLynxOo SummerCampV
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
rotor112
rotor112
CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Jesus
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Wires
Geopbyte
CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Vector
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Fire Mario
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
skin minecraft Froggy
lestouem Linxx
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
santa Bob
jordan4ibanez LuxAtheris
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
PenguinDad Naruto
PenguinDad LuxAtheris
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
New Ferdi Napoli Skin
Ferdi Napoli
CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Jan
Jan
CC BY 4.0

View File

@ -1,3 +0,0 @@
PilzAdam
PilzAdam
CC BY 4.0

View File

@ -1,3 +0,0 @@
Older Man Sam
philipbenr
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Renan123 Alien
sou o melhor jmf
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
PenguinDad with Cape manoel1500
PenguinDad manoel1500
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Adarqet Vile Sam
Adarqet philipbenr
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Adarqet(Cape) BlueZ Sam II
Adarqet philipbenr
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
wither Tetra
mario alberto philipbenr
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Cywalk Sam AMMOnym
w_laenger AMMOnym
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
rantathe Soldier
ranta Ragnar
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
ranta mk 2 TestManiac
ranta AMMOnym
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
gta HurtedOerkki
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv AMMOnym
CC BY 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
DJ Gangstar
hansuke123
CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
G-Robo v5000
philipbenr
CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
Blue Tron Man
Novacain
CC BY 3.0

View File

@ -1,3 +1,3 @@
killer man S"am"TEVE
hansuke123 AMMOnym
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
agent slender Samerkki
krauserlee AMMOnym
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
DJ Gangstar on the cape Calinou
hansuke123 Calinou
CC BY-NC-SA 4.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Steve on the a creeper head Black
hansuke123 Calinou
CC BY 4.0 CC BY 4.0

View File

@ -1,3 +1,3 @@
Calinou SuperSam
Calinou AMMOnym
CC BY-SA 4.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
EnderMan TrollSam
Eu AMMOnym
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Finnzzin HungrySteve
Jo&atilde;o Neto AMMOnym
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Golden Knight ShadowNinja
Nero3605 ShadowNinja
CC BY-SA 3.0 CC BY-SA 4.0

View File

@ -1,3 +1,3 @@
wheat farmer Minetestian
addi Minetestian
CC BY 3.0 CC BY-SA 3.0

View File

@ -1,3 +0,0 @@
jojoa1997
jojoa1997
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
one of my favourite skins lordphoenixmh
w_laenger lordphoenixmh
CC BY-SA 3.0 CC BY 4.0

View File

@ -1,3 +1,3 @@
Mammu Ladyvioletkitty
hansuke123 lordphoenixmh
CC BY-SA 3.0 CC BY 4.0

View File

@ -1,3 +1,3 @@
Enderman 4°district
hansuke123 Ferdi Napoli
CC BY-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
DanTDM Chop
hansuke123 Ferdi Napoli
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Gangstar Herobrine Franklin
hansuke123 Ferdi Napoli
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Zombie Boss Trevor
hansuke123 Ferdi Napoli
CC BY-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Esteban Bart Simpson
Esteban Ferdi Napoli
CC BY-NC-SA 4.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Bajancanadian Creeper
bajanhgk Ferdi Napoli
CC BY 4.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
boy War Machine
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Zenohelds default player
sdzen
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Dead pool Gangnam Style
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
cool guy Sonic The Hedgehog
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Cryotic Charizard
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Altier Scarlet Spider-man
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Sasuke Ferdi Napoli
Bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Iron patriot Finn The Adventured
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Iron spider Jake
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Spider man Ferdi Napoli Reserve
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
War machine Joker
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Dante Bleau Steve
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +0,0 @@
Sdzen
sdzen
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Naruto kuiby Deadpool Bleau
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Blue iron man Seth Rollins
bajnhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Pewdiepie Daffy Duck
bajanhgk LuxAtheris
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Akatsuki sasuke DareDevil
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Notch Clone
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Steve HD Banana Guy
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Taco creeper Rubber
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Bajancanadians knight Gothic Sam
bajanhgk GingerHunter797
CC BY-NC-SA 3.0 CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Bajancanadian soldier Tails
bajanhgk Ferdi Napoli
CC BY-NC-SA 3.0 CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
True MU Aguia Explorer
bajanhgk Davizinho
CC BY-NC-SA 3.0 CC BY-SA 3.0

Some files were not shown because too many files have changed in this diff Show More