Skip to content

Commit

Permalink
Stop using deprecated cPluginLua:AddWebTab function (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiascode authored Aug 29, 2022
1 parent e6c0012 commit 864e351
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ function Initialize(Plugin)
IntializeItemBlacklist(Plugin)

-- Add webadmin tabs:
Plugin:AddWebTab("Manage Server", HandleRequest_ManageServer)
Plugin:AddWebTab("Server Settings", HandleRequest_ServerSettings)
Plugin:AddWebTab("Chat", HandleRequest_Chat)
Plugin:AddWebTab("Players", HandleRequest_Players)
Plugin:AddWebTab("Whitelist", HandleRequest_WhiteList)
Plugin:AddWebTab("Permissions", HandleRequest_Permissions)
Plugin:AddWebTab("Plugins", HandleRequest_ManagePlugins)
Plugin:AddWebTab("Time & Weather", HandleRequest_Weather)
Plugin:AddWebTab("Ranks", HandleRequest_Ranks)
Plugin:AddWebTab("Player Ranks", HandleRequest_PlayerRanks)
cWebAdmin:AddWebTab("Manage Server", "manage-server", HandleRequest_ManageServer)
cWebAdmin:AddWebTab("Server Settings", "server-settings", HandleRequest_ServerSettings)
cWebAdmin:AddWebTab("Chat", "chat", HandleRequest_Chat)
cWebAdmin:AddWebTab("Players", "players", HandleRequest_Players)
cWebAdmin:AddWebTab("Whitelist", "whitelist", HandleRequest_WhiteList)
cWebAdmin:AddWebTab("Permissions", "permissions", HandleRequest_Permissions)
cWebAdmin:AddWebTab("Plugins", "plugins", HandleRequest_ManagePlugins)
cWebAdmin:AddWebTab("Time & Weather", "time-weather", HandleRequest_Weather)
cWebAdmin:AddWebTab("Ranks", "ranks", HandleRequest_Ranks)
cWebAdmin:AddWebTab("Player Ranks", "player-ranks", HandleRequest_PlayerRanks)

-- Load the message of the day from file, and cache it:
LoadMOTD()
Expand Down

1 comment on commit 864e351

@NiLSPACE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change broke a few things because apparently urls are case sensitive.

Please sign in to comment.