forked from Driftay/ChatFilter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
95 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>groupId</groupId> | ||
<artifactId>ChatFilter</artifactId> | ||
<version>2.0-SNAPSHOT</version> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
</properties> | ||
|
||
<repositories> | ||
<repository> | ||
<id>nukkitx-repo</id> | ||
<url>https://repo.nukkitx.com/snapshot/</url> | ||
</repository> | ||
</repositories> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>releases</id> | ||
<name>nukkitx-releases</name> | ||
<url>https://repo.nukkitx.com/release</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>snapshots</id> | ||
<name>nukkitx-snapshots</name> | ||
<url>https://repo.nukkitx.com/snapshot</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot-api</artifactId> | ||
<version>1.8.8-R0.1-SNAPSHOT</version> | ||
<groupId>cn.nukkit</groupId> | ||
<artifactId>nukkit</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<repositories> | ||
<repository> | ||
<id>spigot-repo</id> | ||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> | ||
</repository> | ||
</repositories> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
<defaultGoal>clean package</defaultGoal> | ||
<finalName>${project.name}</finalName> | ||
<sourceDirectory>src/main/java</sourceDirectory> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>true</filtering> | ||
<directory>src/main/resources/</directory> | ||
</resource> | ||
</resources> | ||
</build> | ||
|
||
|
||
</project> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
package me.driftay.chatfilter; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.command.ConsoleCommandSender; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
import cn.nukkit.event.Listener; | ||
import cn.nukkit.plugin.PluginBase; | ||
|
||
public class Main extends JavaPlugin { | ||
ConsoleCommandSender Console = Bukkit.getConsoleSender(); | ||
public class Main extends PluginBase { | ||
|
||
public void onEnable() { | ||
this.Console.sendMessage("ChatFilter Enabled"); | ||
this.Console.sendMessage("Author: Driftay"); | ||
this.getConfig().options().copyDefaults(true); | ||
this.getLogger().info("ChatFilter Enabled"); | ||
this.getLogger().info("Author: Driftay"); | ||
this.saveDefaultConfig(); | ||
this.getServer().getPluginManager().registerEvents(new WordsFilter(this), this); | ||
this.getCommand("chatfilter").setExecutor(new ReloadCMD(this)); | ||
|
||
this.getServer().getPluginManager().registerEvents((Listener) new WordsFilter(this), this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
chatfilter: | ||
bypass-permission: 'chatfilter.bypass' | ||
warning-message: '&d&lYOUR SERVER HERE &8» &bWe''ve noticed you''re using &6Profane Language &ba lot. Please keep it to a minimum.' | ||
|
||
|
||
#Example: Hello will be replaced with **** | ||
replace-symbol: '*' | ||
|
||
|
||
# You can continue this list as long as you want just copy my examples above | ||
# NOTE: I do find these words HIGHLY OFFENSIVE and Recommend you keep them | ||
muted-words: | ||
- 'nigger' | ||
- 'beaner' | ||
- 'n1gger' | ||
- 'nibba' | ||
- 'fuck' | ||
- 'bitch' | ||
- 'cunt' | ||
- 'slut' | ||
- 'whore' | ||
- 'ass' | ||
- 'asshole' |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
main: me.driftay.chatfilter.Main | ||
name: ChatFilter | ||
author: Driftay | ||
version: 2.0-SNAPSHOT | ||
description: The Best Plugin For Managing Offensive Words |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Generated by Maven | ||
#Mon Oct 31 15:34:45 EET 2022 | ||
groupId=groupId | ||
artifactId=ChatFilter | ||
version=2.0-SNAPSHOT |
2 changes: 2 additions & 0 deletions
2
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
me\driftay\chatfilter\WordsFilter.class | ||
me\driftay\chatfilter\Main.class |
2 changes: 2 additions & 0 deletions
2
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
C:\Users\mefrr\Desktop\ChatFilter-master\src\main\java\me\driftay\chatfilter\WordsFilter.java | ||
C:\Users\mefrr\Desktop\ChatFilter-master\src\main\java\me\driftay\chatfilter\Main.java |