Skip to content

kybe236/rhp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusherhack plugin manager

Installs Rusherhack plugin for you and sets the needed flags.

feel free to make pr if you wanna add something

GitHub Downloads (all assets, all releases) GitHub code size in bytes

Disclaimer

be sure to open an github issue if you find any bugs.

pls use code kybe for rusherhack too support me

Installation

Arch

With an AUR manager

paru -S rhp-git
yay rhp-git

Without an packet manager

git clone https://aur.archlinux.org/rhp-git.git && cd rhp-git && makepkg -si

Every platform

move downloaded file to your bin

Build rhp from source

  zig build -Doptimize=ReleaseFast
  mv zig-out/bin/rhp /usr/bin

Usage

Settings

configuration wizard

rhp --config

seting an specifig seting

keys

  • mc_path: string
  • cfg: bool
  • subnames: bool
rhp --config set <key> <value>

Geting an setting

rhp --config get <key>

Installing

to install an plugin

rhp <name>

to search with multiple words

rhp "<word> <word>"

Patching cfg

rhp --patch <file>

Special install if using global storage

global saves all plugins in $XDG_STATE_HOME/.rhp/global and $HOME/.local/state/.rhp/global as fallback or %APPDATA%/.rhp/global on windowss

add mc rusherhack folders to use the global folder via

rhp --link <path to plugins folder>

and to remove an link (deletes and makes a folder)

rhp --unlink <path to plugins folder>

Usage developer

Listen for file changes and change the mod in the mc folder

rhp --watch file

How it works

It gets the contents of the plugin list from @Garlic

After that it first of splits anything betwen <!-- START PLUGINS LIST --> and <!-- END PLUGINS LIST -->

Then it splits by ---

The name and url for the downloads originate from the header (the on starting with ### [)

The description is based on whats left after ignoring every tag for images and vidios so if theres none of these and it isn't empty its the tag

Then it does some github site lookups.

  1. https://github.com/user/repo/releases

from there it gets the tag url via the header

  1. https://github.com/user/repo/releases/expanded_assets/tag-id

fom there it gets all releases and asks the user wich to download and then downloads it