Skip to content

Latest commit

 

History

History
85 lines (71 loc) · 4.27 KB

README.MD

File metadata and controls

85 lines (71 loc) · 4.27 KB

PayAll

This is a minecraft mod, with which you're able to pay everyone on the server.
I made this out of boredom while watching a YouTube video from DuperTrooper, in which he paid everyone manually.
He replied to someone in the comments, who asked why he doesn't use a mod to automate it, that he doesn't have a competent developer to do that, and because I thought it would be easy, I tried to make it!

Currently supported and tested: 1.19.x, 1.18.x, 1.16.5

Currently supported but NOT tested:

Table of Contents

Usage

This mod uses chat messages, due to me be being STUPID and not figuring out how client-side commands can be made, even after 4 hours of testing.
After some testing with hours of crying, commands have been implemented!

Default usage

/payall <delay in seconds> <amount>

Examples:

  • /payall 2 6969
  • /payall 0.67 10000000

Custom usage

/payall <delay in seconds> <amount> [custom command]...
The default command used is /pay player amount (e.g. /pay SteinGaming 5000)
In case a server switched the properties or uses a completely different command, you can append the command desired to the Default Usage.
It provides these placeholders:

  • ! for the player name
  • $ for the amount

Examples:

  • If the command is /deez PLAYER AMOUNT:
    • Then /payall 2 6969 deez ! $
  • If the command is /nuts AMOUNT PLAYER
    • Then /payall 0.67 10000000 nuts $ !

Dryrunning

/payalldry ...
If you have a problem, you want to list the players found or you just want to see the command that will be running, then you can use this to your advantage.
Just use any of the previously mentioned usages and change /payall to /payalldry.
Nothing will be sent and this is just meant to help me find methods for identifying players and other kinds of debugging.

Building

Minecraft mods have a tendency to be ratted, which is why I have the code public, with which everyone can check the code for any rats and build it for themselves.
Just having the src public isn't enough, so I'm not making any own releases for them.

!!!! Releases ARE avalible NOW, but this is still urgently recommended !!!!

  1. Download the project. You can:
    • Get it as an archive here and extract it
    • Use the git util to clone it
  2. Open a terminal in the extracted/cloned directory (some can just right-click on empty space and click "Open Terminal") and execute the following command:
    • .\gradlew.bat shadowJar
  3. The final .jar mod file can be found in output/
  4. If you are done, clean up afterward

Cleaning up

Only deleting the directory in which you built the project is only a part of it, due to gradle downloading many dependencies.
If you aren't a developer, then go to your home folder (on windows C:\Users\YOUR USER\) and delete the .gradle folder.

Test-Server

I created a simple test server for this project, due to me not wanting to have multiple minecraft clients open.
It uses Minestom, for it's low CPU/RAM usage and FakePlayer capabilities.
If you want to start it, just run:

.\gradlew.bat run

The server is on 1.19.4, so if you want to test other versions, set a Velocity Server with the ViaVersion + ViaBackwards plugins, and add the port of the server to the lobby.
The world only consists of netherite blocks, because why would you need something else?
The Server contains these commands:

  • /deez
    • Spawns 21 Fake Players
  • /pay
    • DEFAULT Syntax: /pay $player $amount
    • REVERSE Syntax: /pay $amount $player
    • Usage: Duh, for the mod
  • /reverse
    • This command switches between DEFAULT and REVERSE mode for the /pay command