mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Fixed warp name length
This commit is contained in:
@@ -8,6 +8,7 @@ commands.add_command('make-warp', 'Make a warp point at your location', {
|
|||||||
if not game.player then return end
|
if not game.player then return end
|
||||||
local position = game.player.position
|
local position = game.player.position
|
||||||
local name = args.name
|
local name = args.name
|
||||||
|
if anme:len() > 40 then player_return({'ExpGamingCore_Command.error-string-len',40},defines.textcolor.med) return commands.error end
|
||||||
if game.player.gui.top[name] then player_return({'WarpPoints.name-used'},defines.textcolor.med) return commands.error end
|
if game.player.gui.top[name] then player_return({'WarpPoints.name-used'},defines.textcolor.med) return commands.error end
|
||||||
if warps.warps[name] then player_return({'WarpPoints.name-used'},defines.textcolor.med) return commands.error end
|
if warps.warps[name] then player_return({'WarpPoints.name-used'},defines.textcolor.med) return commands.error end
|
||||||
for name,warp in pairs(warps.warps) do
|
for name,warp in pairs(warps.warps) do
|
||||||
|
|||||||
Reference in New Issue
Block a user