Skip to content

Add AGPL compliance#53

Open
Cubicake wants to merge 10 commits into
mainfrom
AGPL
Open

Add AGPL compliance#53
Cubicake wants to merge 10 commits into
mainfrom
AGPL

Conversation

@Cubicake
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2026 12:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds AGPLv3 compliance materials: an in-game /raycastedantiespCredits command that prints copyright, license, source link, warranty disclaimer, and credits; a console attribution message on plugin enable; SPDX headers on touched Paper files; and an extensive README section documenting forking obligations, in-game attribution rationale, copyright, and disclaimer.

Changes:

  • New Attribution command class (StrokkCommands-based) registered alongside the main command and invoked from onEnable() to log attribution to the console.
  • README expanded with Credits, in-game attribution explanation, Forking guidance, and Copyright/Disclaimer sections; also updates stable/alpha version notes, supported-version statement, and PacketEvents dependency description.
  • SPDX/AGPL-3.0 headers added to RaycastedAntiESP.java, RaycastedAntiESPCommand.java, and Attribution.java; main help command now references Attribution.attributionCommandDescription, and a test subcommand references an Attribution constant via assert to deter silent removal.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
README.md Adds Credits, in-game attribution note, Forking, and Copyright/Disclaimer sections; updates version/support/dependency wording.
platform-paper/.../paper/RaycastedAntiESP.java Adds SPDX header, imports Attribution/AttributionBrigadier, registers the new Brigadier command, emits attribution to console on enable.
platform-paper/.../paper/commands/RaycastedAntiESPCommand.java Adds SPDX header, appends attribution command line to help, and adds assert references to Attribution to discourage removal.
platform-paper/.../paper/commands/Attribution.java New command class sending three rich-message attribution blocks with a fork-developer template and tamper-deterrent constant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated

## Forking:

Please see the the [AGPL v3 license](LICENSE.md)—especially section 5, section 7, and section 13—before forking this repository, as there are some specific legal requirements for forks.
Comment thread README.md Outdated

## Forking:

Please see the the [AGPL v3 license](LICENSE.md)—especially section 5, section 7, and section 13—before forking this repository, as there are some specific legal requirements for forks.

@Executes("location-drift")
void testCommand(CommandSender sender) {
assert Attribution.class == Attribution.class;
Comment on lines +136 to +137
assert Attribution.class == Attribution.class;
assert Attribution.READ_COMMENTS_BEFORE_EDITING_OR_DELETING_CLASS_OR_FACE_LEGAL_ACTION == 0; //Using constant from Attribution class to ensure that it cannot be deleted without the developer noticing that they are obligated to replace it with an equivalent notice.
Comment on lines +15 to +26
@Command("raycastedantiespCredits") //Deliberately an obscure name and not "attribution" or "credits" to avoid being annoying to server owners.
public class Attribution {
public static final byte READ_COMMENTS_BEFORE_EDITING_OR_DELETING_CLASS_OR_FACE_LEGAL_ACTION = 0; //Provocative name to make sure people actually read the comments.
/*
Please note that removing this command without providing an alternative, equally (or more) prominent way to view this information a violation of the AGPLv3 licence, which may result in legal action.
If you are forking this project, read the below note for fork developers to see how to modify the notice to remain AGPLv3 compliant.

If you wish to acquire a copy of the plugin without the obligation to display this notice or equivalent, you may discuss purchasing a commercial licence by contacting Cubicake via Discord (@Cubicake) or by making a GitHub issue at https://github.com/Cubicake/RaycastedAntiESP

Note that using external software to remove this command (for example by using a command blocker plugin to block players from using this command) is ALSO illegal.
* */
@Executes
}
}
}, 1200, 1200);*/
/*Do not delete, this is a legal notice*/Attribution.sendAttributionMessage(Bukkit.getConsoleSender()); // Legal notice as required by AGPLv3, it prominently offers users of this plugin the source code and displays an appropriate copyright notice. If you are a fork developer, do NOT remove this unless you have a thorough understanding of the AGPL and have replaced it with a suitable equivalent notice which is "prominently visible", displays the copyright notice, and includes a link to the source code of your fork which is accessible to all users of the plugin.
public class Attribution {
public static final byte READ_COMMENTS_BEFORE_EDITING_OR_DELETING_CLASS_OR_FACE_LEGAL_ACTION = 0; //Provocative name to make sure people actually read the comments.
/*
Please note that removing this command without providing an alternative, equally (or more) prominent way to view this information a violation of the AGPLv3 licence, which may result in legal action.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants