MCPcopy Index your code
hub / github.com/Elikill58/Negativity

github.com/Elikill58/Negativity @2.7.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.7.2 ↗ · + Follow
6,070 symbols 18,801 edges 820 files 913 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Negativity

It's a Minecraft AntiCheat for multiples platforms : - Spigot 1.8.8 to 1.21 (and fork like PaperSpigot or Tuinity) - Sponge API 7, 8, 9 & 10 - WARN: After internal issue, it's actually not available. Fabric MC 1.18.2, 1.19 to 1.19.4 (Download here) - Minestom 1.19.3

Proxies: - BungeeCord - Velocity

If you are using proxy, you should put the plugins on all sub servers where you want to check players.

Informations

Need help ? Have a question or something to suggest ?

Contact me via Discord private messages (Elikill58) or in my server (join it here).

Suggestions and bug reports can also be filled in this repository issue tracker.

How to install ?

Check installation wiki for all informations according to platform.

I want to test it before download !

You can check it on play.negativity.fr (server in 1.19.2, you can connect with 1.8.8 to 1.19.2). Server can be down.

What are the detected cheat ?

We made a wiki for all detected cheat which explain what every hack does.

How detection works ? What do you check ?

If they are enabled, I'm checking a lot of things : movement, action, packet ... Else, I'm doing anything. So, if you don't need detection, disable it and you will keep resources.

And for bad connection ? TPS drop ?

By default, if the player have a ping higher than 150 ms, it will not create alert.

Also by default, if the server is less than 19 TPS, alert will be disabled

Translation

We support a lot of languages : - English (en_US, default lang) By Elikill58 & RedNesto - French (fr_FR) By Elikill58 - Portuguese (pr_BR) By jheyson - Norwegian (no_NO) By SuchHero - Russian (ru_RU) By VidTu - Chinese (zh_CN) By f0rb1d, SGYRE & Dust - German (de_DE) By CodingAir - Dutch (nl_NL) By DeveloperBoy - Swedish (sv_SV) By YungSloop - Spanish (es_ES) By SolitaSolaa - Vietnamese (vi_VN) By HuyMCYTTM#7592 - Italian (it_IT) By Herobrine99dan#1564 - Czech Republic (cs_CZ) By Disordeon#1824 - Albanian (sq_SQ) By ErzenX#2439 - Polish (pl_PL) By milkv2 & Tytano#5336 - Romanian (ro_RO) By @Edward205 - Egyptian Arabic (ar_EG) By Andro Sameh#6837 - Hungarian (hu_HU) By HasX#1966 - Korean (ko_KR) By soshimee#4397 - Indonesian (id_ID) By Dave9123#0757 - Thai (th_TH) By IAmOverD҉A҉R҉K҉E҈S҉T҉#2498 - English (GB) (en_GB) By NEWBTW#2108 - Turkish (tr_TR) By 'Eternal The God 🕶#0707 - Japanese (ja_JP) By RamuneRemonedo

To change the lang, just use "/nlang" or change "Translation.default" to the one that you want.

You find a grammar error on your language ? You want to add your own ? Contact me on discord (link below)

(For developer, you can set your own translation system)

I don't understand the config, HELP !

For general config, click here.

For ban config, click here.

For permissions config, click here.

Build the plugin

Prerequisites: - Git - JDK 8 (any distribution should work, AdoptOpenJDK for example) - JDK 18 (any distribution should work) recommended for latest minecraft version (also work with lower versions)

In the following instructions you will have to execute Gradle tasks. You must use the Gradle wrapper distributed in this repository.

Examples will be using ./gradlew, if you are on Windows you need to use gradlew.bat instead.

  1. Clone this repository: git clone https://github.com/Elikill58/Negativity.git

  2. Change branch to v2 using git checkout v2

  3. Build the plugin: ./gradlew build

  4. You can find the all-in-one jar in /build/libs/
  5. Platform-specific jars are available in their own project subdirectories (/spigot/build/libs/ for example)

Extension points exported contracts — how you extend this code

PluginDependentExtension (Interface)
Implemented on extensions that should only be registered if the plugin identified by the provided {@link #getPluginId() [17 …
common/src/com/elikill58/negativity/universal/PluginDependentExtension.java
NegativityHolderOwner (Interface)
(no doc)
fabric/src/com/elikill58/negativity/fabric/bridge/NegativityHolderOwner.java
PermissionChecker (Interface)
PermissionCheckers are used by Negativity to determine if a player has the right to do something. Checkers responses are [11 …
common/src/com/elikill58/negativity/universal/permissions/PermissionChecker.java
BanProcessor (Interface)
Decides what to do with ban and unban requests as well as active and logged bans queries. BanManager basical [12 implementers]
common/src/com/elikill58/negativity/universal/ban/processor/BanProcessor.java
BanProcessorProvider (Interface)
Used for registering BanProcessors automatically via the java.util.ServiceLoader ServiceLoader mechanism. To [21 implementers]
common/src/com/elikill58/negativity/universal/ban/processor/BanProcessorProvider.java
BanLogsStorage (Interface)
A class responsible for loading and saving logged bans. Implementations must not retain any state since they can be [7 …
common/src/com/elikill58/negativity/universal/ban/storage/BanLogsStorage.java

Core symbols most depended-on inside this repo

put
called by 1000
common/src/com/elikill58/negativity/api/TimedHashMap.java
get
called by 509
common/src/com/elikill58/negativity/universal/translation/TranslationProvider.java
getAdapter
called by 397
common/src/com/elikill58/negativity/universal/Adapter.java
equals
called by 282
common/src/com/elikill58/negativity/universal/ban/Ban.java
getName
called by 276
common/src/com/elikill58/negativity/api/commands/CommandSender.java
getType
called by 219
common/src/com/elikill58/negativity/api/entity/Entity.java
contains
called by 207
common/src/com/elikill58/negativity/api/inventory/Inventory.java
addKeyWord
called by 201
common/src/com/elikill58/negativity/api/maths/Expression.java

Shape

Method 5,144
Class 802
Interface 63
Enum 61

Languages

Java100%

Modules by API surface

common/src/com/elikill58/negativity/api/maths/Expression.java86 symbols
common/src/com/elikill58/negativity/api/entity/Player.java71 symbols
sponge/src/com/elikill58/negativity/sponge/impl/entity/SpongePlayer.java68 symbols
sponge7/src/com/elikill58/negativity/sponge7/impl/entity/SpongePlayer.java67 symbols
spigot/src/com/elikill58/negativity/spigot/impl/entity/SpigotPlayer.java67 symbols
common/src/com/elikill58/negativity/api/impl/server/entity/CompensatedPlayer.java67 symbols
minestom/src/com/elikill58/negativity/minestom/impl/entity/MinestomPlayer.java66 symbols
common/src/com/elikill58/negativity/universal/webhooks/integrations/DiscordWebhook.java58 symbols
common/src/com/elikill58/negativity/api/entity/AbstractProxyPlayer.java57 symbols
common/src/com/elikill58/negativity/universal/utils/UniversalUtils.java48 symbols
common/src/com/elikill58/negativity/api/packets/PacketType.java47 symbols
common/src/com/elikill58/negativity/universal/detections/Cheat.java46 symbols

For agents

$ claude mcp add Negativity \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact