mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-16 00:24:52 +09:00
Removed player config level and useing error command
This commit is contained in:
1 parent
ffbc96fb84
commit
408b5d7abd
2 files changed
+4
-6
No files matched your search
@@ -14,12 +14,12 @@ require 'config.expcore.command_general_parse'
|
||||
-- @command load-quickbar
|
||||
Commands.new_command('load-quickbar','Loads your preset Quickbar items')
|
||||
:register(function(player)
|
||||
if config.players[player.name] then
|
||||
local custom_quickbar = config.players[player.name]
|
||||
if config[player.name] then
|
||||
local custom_quickbar = config[player.name]
|
||||
for i, item_name in ipairs(custom_quickbar) do
|
||||
player.set_quick_bar_slot(i, item_name)
|
||||
end
|
||||
else
|
||||
Commands.print('Quickbar preset not found','red')
|
||||
Commands.error('Quickbar preset not found')
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user