Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156804
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
595 B
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/smartshop_mod/init.lua
-- Modify smartshop
-- Copyright (C) 2024 1F616EMO
-- SPDX-License-Identifier: LGPL-3.0-or-later
-- Do not use unlimited inventory unless in creative mode
local
old_initialize_metadata
=
smartshop
.
shop_class
.
initialize_metadata
function
smartshop
.
shop_class
:
initialize_metadata
(
player
)
old_initialize_metadata
(
self
,
player
)
local
player_name
if
type
(
player
)
==
"string"
then
player_name
=
player
else
player_name
=
player
:
get_player_name
()
end
if
not
core
.
is_creative_enabled
(
player_name
)
then
self
:
set_unlimited
(
false
)
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 3, 2:42 AM (5 h, 38 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
63/a9/1499c07b1768252554def38c7a99
Default Alt Text
init.lua (595 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment