Skip to content

Patch Project Zomboid old discord module (javacord) to newest version.

Notifications You must be signed in to change notification settings

TheDialgaTeam-Project-Zomboid-Mods/PZ-Discord-Patch

Repository files navigation

Project Zomboid Discord Patch

Table of Contents
  1. About This Mod
  2. Built Instructions
  3. Installation

About This Mod

This mod upgrade the existing javacord 2.0.17 to javacord 3.8.0.

(back to top)

Built Instructions

This project is build with gradle.

  1. Clone / Download the git repository source code.
    Git CLI: git clone https://github.com/TheDialgaTeam-Project-Zomboid-Mods/PZ-Discord-Patch.git

  2. Edit build.gradle.kts rootDir to your Project Zomboid Dedicated Server location.
    For Windows: val rootDir = "C:/Program Files (x86)/Steam/steamapps/common/Project Zomboid Dedicated Server/"

  3. Build the program with gradle.
    CLI: gradlew shadowJar

(back to top)

Installation

Note: This require root access to your Project Zomboid Dedicated Server directory. If you are using a hosting provider that host the PZ server for you, you are unable to do the installation as you can't change the classpath.

  1. Copy PZDiscordPatch-1.0.0.jar into Project Zomboid Dedicated Server's java directory.
    For Windows: C:/Program Files (x86)/Steam/steamapps/common/Project Zomboid Dedicated Server/java/

  2. Edit the classpath to include java/PZDiscordPatch-1.0.0.jar at the beginning. (For json file, please put it before java/. entry)

  3. Restart your server and check the console. If done right, it should complain about missing Log4j2 as Project Zomboid uses a custom Logger. (org.javacord.core.util.logging.ExceptionLoggerDelegateImpl No Log4j2 compatible logger was found. Using default Javacord implementation!)

Note that you are required to enable the Message Content Intent for the bot that you have created. Otherwise discord module will not run.

(back to top)

About

Patch Project Zomboid old discord module (javacord) to newest version.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages