1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +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",
privs = {home=true},
func = function(name)
local player = minetest.env:get_player_by_name(name)
if not player_in_nether then return end
local is_in_nether = table.icontains(players_in_nether, name)
local player = minetest.get_player_by_name(name)
local player_pos = player:getpos()
local is_player_in_nether = player_pos.y < -19600
if player == nil then
-- just a check to prevent the server crashing
return false
end
if homepos[player:get_player_name()] then
if is_in_nether then
player:setpos(nether.homepos[player:get_player_name()])
if is_player_in_nether then
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
player:setpos(real.homepos[player:get_player_name()])
core.chat_send_player(name, "Set a home in the nether using /sethome")
end
minetest.chat_send_player(name, "Teleported to home!")
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,
})
@ -73,30 +82,25 @@ minetest.register_chatcommand("sethome", {
description = "Set your home point",
privs = {home=true},
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")
if not nether_file then return end
local player_pnt = minetest.get_player_by_name(name)
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_in_nether_read == "" then
--if not players_in_nether then return end
player_in_nether = player_in_nether_read:split(" ")
local is_in_nether = table.icontains(players_in_nether, name)
if is_in_nether == true then
homepos.nether[player:get_player_name()] = pos
if player_is_in_nether == true then
homepos.nether[name] = pos
minetest.log("action",name.." set its home position to "..player_pos.x..","..player_pos.y..","..player_pos.z..", in the nether.")
core.chat_send_player(name,"Home set in the nether!")
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
minetest.chat_send_player(name, "Home set!")
changed = true
if changed then
local output = 0
if is_in_nether then
output = io.open(nether_homes_file, "w")
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)
privs.shout = true
minetest.set_player_privs(name, privs)
end
--end
return
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).")

View File

@ -97,7 +97,7 @@ minetest.register_node("seawrecks:ubootchest", {
local kind_of_price = math.floor(math.random()*2)
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 = {"",""}
choosen_ingot = math.floor(math.random()*5)+1
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
Ferdi Napoli
CC BY-NC-SA 3.0
Emma
Cidney7760
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
Ferdi Napoli
CC BY-NC-SA 3.0
Wants
Wants
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
Ferdi Napoli
Ferdi Napoli
CC BY-NC-SA 3.0
villiantest III
marshrover
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
Ferdi Napoli
CC BY-NC-SA 3.0
Geopbyte
Geopbyte
CC BY-SA 3.0

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
Bleau Steve
Ferdi Napoli
CC BY-NC-SA 3.0
Solid-Color Sam
Block_Guy
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
LuxAtheris
RockerLuke skin
RockerLuke
CC BY-SA 3.0

View File

@ -1,3 +1,3 @@
DareDevil
Ferdi Napoli
CC BY-NC-SA 3.0
Diamond Armor Sam
Block_Guy
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
Evergreen
CC BY-SA 3.0
Semmett9
Infinatum
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
Ferdi Napoli
CC BY-NC-SA 3.0
Molten Elemental
Dunedubby
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
Davizinho
herobrine
Zaki
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
oOChainLynxOo
CC BY-SA 3.0
Link
tux_peng
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
mateus
Saris
Gfiti
CC BY-NC-SA 3.0

View File

@ -1,3 +1,3 @@
Sam Mese Tee
oOChainLynxOo
CC BY-SA 3.0
Malon
SummerCampV
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
lestouem
Froggy
Linxx
CC BY-SA 3.0

View File

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

View File

@ -1,3 +1,3 @@
PenguinDad
PenguinDad
Naruto
LuxAtheris
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
sou o melhor
Alien
jmf
CC BY-SA 3.0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
gta
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
CC BY 3.0
HurtedOerkki
AMMOnym
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
hansuke123
S"am"TEVE
AMMOnym
CC BY-SA 3.0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
wheat farmer
addi
CC BY 3.0
Minetestian
Minetestian
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
w_laenger
CC BY-SA 3.0
lordphoenixmh
lordphoenixmh
CC BY 4.0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
boy
bajanhgk
War Machine
Ferdi Napoli
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
bajanhgk
Gangnam Style
Ferdi Napoli
CC BY-NC-SA 3.0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
Dante
bajanhgk
Bleau Steve
Ferdi Napoli
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
bajanhgk
Deadpool Bleau
Ferdi Napoli
CC BY-NC-SA 3.0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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