{"id":22004885,"url":"https://github.com/expdev07/bswear","last_synced_at":"2026-07-06T13:31:13.499Z","repository":{"id":99615768,"uuid":"129054889","full_name":"ExpDev07/BSwear","owner":"ExpDev07","description":"⛏ BungeeCord Anti-Swear plugin.","archived":false,"fork":false,"pushed_at":"2018-04-13T14:59:44.000Z","size":75,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T03:50:19.330Z","etag":null,"topics":["anti-swear","bungeecord","minecraft","plugin","swear-filter"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExpDev07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-11T07:43:26.000Z","updated_at":"2024-04-02T17:44:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff5d453f-8e6b-43c1-bc82-22038b301f98","html_url":"https://github.com/ExpDev07/BSwear","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExpDev07/BSwear","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpDev07%2FBSwear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpDev07%2FBSwear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpDev07%2FBSwear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpDev07%2FBSwear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExpDev07","download_url":"https://codeload.github.com/ExpDev07/BSwear/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpDev07%2FBSwear/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35193679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anti-swear","bungeecord","minecraft","plugin","swear-filter"],"created_at":"2024-11-30T00:17:26.800Z","updated_at":"2026-07-06T13:31:13.480Z","avatar_url":"https://github.com/ExpDev07.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BSwear\nA plugin made exclusively for Marcoo. \n\n**Order:**\n* **Version:** BungeeCord 1.12-SNAPSHOT\n* **Made:** 10.04.2018\n* **By:** Marcoo\n* **Paid:** 10 EUR\n* **Completed:** 11.04.2018\n\n**Description:** A simple yet innovative anti-swear plugin which introduces filters you can add to the chat.\n\n**Default filters:**\n1. **SwearFilter:** uses a dictionary to remove bad words and replaces them with stars (*).\n2. **CapsFilter:** makes a word lower case if it exceeds the allowed use of capital letters in one word.\n3. **GrammarFilter:** fixes some common grammatical errors. For example: not using capital letter after punctuations.\n\n**Adding your own filter:** ([TestFilter.java](src/test/java/TestFilter.java))\n```java\nimport me.expdev.bswear.BSwearPlugin;\nimport me.expdev.bswear.filter.MessageFilter;\n\n/**\n * You will need to implement the interface \"me.expdev.bswear.filter.MessageFilter\"\n */\npublic class TestFilter implements MessageFilter {\n\n    /**\n     * MessageFilter has one method: #filter(String message)\n     */\n    @Override\n    public String filter(String message) {\n        // Make message all lower case and build a StringBuilder\n        message = message.toLowerCase();\n        StringBuilder result = new StringBuilder();\n\n        // Loop through characters and make every second character uppercase\n        // Flag to make char capital\n        boolean capital = false;\n        for (char c : message.toCharArray()) {\n            // We want to ignore non-alphabetic characters\n            if (!Character.isAlphabetic(c)) {\n                // Just append character and continue\n                result.append(c);\n                continue;\n            }\n\n            // Translate character into a string\n            String asString = String.valueOf(c);\n            if (capital) {\n                asString = asString.toUpperCase();\n                capital = false;\n            } else capital = true;\n\n            // Append to result!\n            result.append(asString);\n        }\n\n        // Return edited/filtered message!\n        return result.toString();\n    }\n\n    /**\n     * Provide a priority for this filter. Should it have a final say\n     * in the outcome? Use HIGHEST or MONITOR (monitor should not modify outcome, just analyze).\n     */\n    @Override\n    public FilterPriority getPriority() {\n        return FilterPriority.HIGHEST;\n    }\n\n    /**\n     * Optionally, you can also provide a name\n     */\n    @Override\n    public String getName() {\n        return \"test_filter by ExpDev\";\n    }\n\n    /**\n     * Executed when program is started\n     */\n    public static void main() {\n        // Get filters and add your new filter!\n        BSwearPlugin.getPlugin().getFilters().add(new TestFilter());\n\n        // That's all! Now it will apply it to all messages sent in chat\n        // Input = \"doEs this. Work? HAHA\"\n        // Output = \"dOeS tHiS. wOrK? hAhA\"\n    }\n\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpdev07%2Fbswear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpdev07%2Fbswear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpdev07%2Fbswear/lists"}