{"id":19439037,"url":"https://github.com/majekdev/pvptoggle","last_synced_at":"2026-04-28T00:32:13.599Z","repository":{"id":38373304,"uuid":"315847568","full_name":"MajekDev/PvPToggle","owner":"MajekDev","description":"Small plugin that allows players to change their PvP Status to reflect whether or not they want to fight other players.","archived":false,"fork":false,"pushed_at":"2023-02-28T06:59:39.000Z","size":163,"stargazers_count":2,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T09:01:53.025Z","etag":null,"topics":["minecraft-plugin","papermc","pvp","pvp-status","spigot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MajekDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-25T06:21:43.000Z","updated_at":"2025-03-04T17:17:53.000Z","dependencies_parsed_at":"2025-01-08T23:00:32.827Z","dependency_job_id":null,"html_url":"https://github.com/MajekDev/PvPToggle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/MajekDev/PvPToggle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajekDev%2FPvPToggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajekDev%2FPvPToggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajekDev%2FPvPToggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajekDev%2FPvPToggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MajekDev","download_url":"https://codeload.github.com/MajekDev/PvPToggle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MajekDev%2FPvPToggle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32361477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["minecraft-plugin","papermc","pvp","pvp-status","spigot"],"created_at":"2024-11-10T15:20:53.115Z","updated_at":"2026-04-28T00:32:13.577Z","avatar_url":"https://github.com/MajekDev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PvPToggle v2\n\nPvPToggle is a plugin that allows players to use a simple command (/pvp) to change their \"PvP status.\" When a player has PvP toggled off they won't be able to take damage\nfrom other players or deal any damage to other players. Damage from mobs, explosions, lava, etc. will not be affected by your PvP status. \n\n## Commands and Permissions\nUnless changed in the configuration file, all players will be able to use `/pvp`. If `use-permissions` is enabled in the config file, only players with the permission\n`pvptoggle.use` will be able to access `/pvp`. If this is enabled, players without the permission will also not be protected from damage from other players (if the attacking\nplayer has pvp enabled or no permission like them).\n\nPlayers with the permission `pvptoggle.others` will be able to change the PvP status of other players with the command `/pvp \u003con|off\u003e \u003cplayer\u003e`. You should only give this command\nto staff members.\n\n## Data Storage\nBy default, player's PvP status will be stored in an SQLite database by their unique ID. The value will be updated every time the status is changed and when the server is stopped.\nWhen the server starts back up the player's uuid and PvP status are put back into memory for easy access.\n\nThe plugin also allows MySQL to be used for data storage instead of SQLite. This is for servers running BungeeCord that want player's PvP status to sync between servers.\nIf you want to use MySQL, it must be enabled in the config file.\n\n## Hooking into PvPToggle\nIf you want to hook into PvPToggle from a different plugin, all of the main features can be easily accessed. Simply download the latest jar file and add it is a dependency \nin your plugin. Don't forget to add PvPToggle as a soft dependency, or hard dependency, in your plugin.yml. \n\nYou can access the PvP status change event the same way you access standard Bukkit events. All other methods, such as the one to check if a player has PvP on, can be accessed \nsimply by doing `PvPToggle.getCore().hasPvPOn(player)` Note: This returns a boolean. \n\n**Example:**\n```java\nif (PvPToggle.getCore().hasPvPOn(player)) {\n    // Do something\n    PvPToggle.getCore().setStatus(player.getUniqueId(), true); // This would set their PvP status to true\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajekdev%2Fpvptoggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajekdev%2Fpvptoggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajekdev%2Fpvptoggle/lists"}