Skip to content

Instantly share code, notes, and snippets.

View Timongcraft's full-sized avatar

Timon Timongcraft

  • Germany
  • 17:03 (UTC +02:00)
View GitHub Profile
@Timongcraft
Timongcraft / accessing-maven-github-packages.md
Last active November 16, 2023 20:01
Accessing Maven GitHub Packages [Guide]

This guide will walk you through the process of getting and accessing Maven GitHub Packages using a personal access token. You can either integrate the token directly into your pom.xml (potentially unsafe) or set it up in your ~/.m2/settings.xml (safe)

Generating a Personal Access Token

@Timongcraft
Timongcraft / MsgCommand Example class
Last active August 21, 2023 14:43
Here is a msg command with the [CommandAPI](https://commandapi.jorel.dev) v9.0.0 to prevent chat reporting
import dev.jorel.commandapi.CommandAPI;
import dev.jorel.commandapi.CommandTree;
import dev.jorel.commandapi.arguments.GreedyStringArgument;
import dev.jorel.commandapi.executors.CommandArguments;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.command.BlockCommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import timongcraft.system.Main;
import timongcraft.system.commands.ReplyCommand;