GreenHell Modding
  • Welcome to the GreenHell Modding docs!
  • TUTORIALS
    • How to install GreenHellModLoader
      • Troubleshooting
    • How to install a mod
    • Mods in multiplayer
  • MODDING TUTORIALS
    • How to create a mod project
      • The modinfo.json file
    • How to create an AssetBundle
  • CLIENT - CODE EXAMPLES
    • Reading private variables
    • Modifying private variables
    • Accessing the player instance
    • Giving items to a player
    • Modifying the inventory max weight
    • Unlocking everything in the Notepad
    • Disabling player movement
    • Toggling the mouse/cursor
    • Printing to the console
  • WEBSITE
    • Slugs
Powered by GitBook
On this page

Was this helpful?

  1. WEBSITE

Slugs

Slugs are strings that can be used in URLs. Slugs must fulfill all of the following rules:

  • Slugs must be at least one character and at most 64 characters long.

  • Slugs may only contain letters, numbers, dots ("."), dashes ("-") and underscores ("_").

  • All letters must be in lower case and from the basic latin alphabet.

Examples

Good examples:

  • my-mod

  • version-1.3.4

  • test-6.4.1_RC-3

Bad examples:

  • be$t-mod(dollar signs are not allowed)

  • café-mod("é" is not a letter of the latin alphabet)

  • <script>alert('xss')</script> ("<>()'/" are not allowed)

  • my mod 2 (whitespaces are not allowed)

  • a-very-very-very-very-very-very-very-very-very-very-very-very-very-long-name (longer than 64 characters)

PreviousPrinting to the console

Last updated 5 years ago

Was this helpful?