NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Question Infractions
Started by JackTheFoxy

JackTheFoxy

JackTheFoxy

Member
Joined
07 May 2019
Last Seen
21 Oct 2020
Topics
2
Posts
2

Hello I'm running namelessmc 1.0.21 and I want to ask how to rename infractions in the address bar and in the navbar to Banlist

JackTheFoxy · over 5 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
22 Nov 2024
Topics
41
Posts
1076

To change the language, edit addons/Infractions/language.php and change 'infractions' => 'Infractions' to 'infractions' => 'Banlist'

 

Changing the link is a bit harder, first rename pages/infractions.php to pages/banlist.php. Then edit this file and update any /infractions links to /banlist

Then edit addons/Infractions/initialisation.php

  • If your infractions link is in the navbar, change array('infractions' ... on this line to array('banlist' ...
  • If your infractions link is in the footer, change $footer_nav_array['infractions'] on this line to $footer_nav_array['banlist']
  • If your infractions link is in the More dropdown, change '/infractions' to '/banlist' on this line
Samerton · over 5 years ago · Last edited: over 5 years ago