mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Added #78, magic.yml changes
This commit is contained in:
1 parent
01df416236
commit
9211003d6d
4 files changed
+45
-19
No files matched your search
@@ -99,4 +99,12 @@ public interface Lang {
|
||||
* @return Kicking broadcast.
|
||||
*/
|
||||
public String KICK_BROADCAST();
|
||||
|
||||
|
||||
/**
|
||||
* Get the alert prefix for staff and debug.
|
||||
*
|
||||
* @return Alert prefix.
|
||||
*/
|
||||
public String ALERT_PREFIX();
|
||||
}
|
||||
@@ -16,7 +16,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.rammelkast.anticheatreloaded.event;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
@@ -56,22 +55,23 @@ public class EventListener implements Listener {
|
||||
boolean debugMode = CONFIG.getConfig().debugMode.getValue();
|
||||
int vlForType = type.getUses(player.getUniqueId()) + 1;
|
||||
int notifyEveryVl = CONFIG.getConfig().notifyEveryVl.getValue();
|
||||
String prefix = ChatColor.translateAlternateColorCodes('&', CONFIG.getLang().ALERT_PREFIX());
|
||||
if (message == null || message.equals("")) {
|
||||
if (debugMode) {
|
||||
message = ChatColor.GOLD + "" + ChatColor.BOLD + "ACR " + ChatColor.DARK_GRAY + "> " + ChatColor.GRAY + player.getName() + " failed "
|
||||
message = prefix + player.getName() + " failed "
|
||||
+ type.getName();
|
||||
} else {
|
||||
message = ChatColor.GOLD + "" + ChatColor.BOLD + "ACR " + ChatColor.DARK_GRAY + "> " + ChatColor.GRAY + player.getName() + " failed "
|
||||
message = prefix + player.getName() + " failed "
|
||||
+ type.getName() + ChatColor.GOLD + " (x" + vlForType + ")";
|
||||
}
|
||||
} else {
|
||||
if (debugMode) {
|
||||
message = ChatColor.GOLD + "" + ChatColor.BOLD + "ACR " + ChatColor.DARK_GRAY + "> " + ChatColor.GRAY + player.getName() + " failed "
|
||||
message = prefix + player.getName() + " failed "
|
||||
+ type.getName() + ChatColor.DARK_GRAY + " | " + ChatColor.GRAY + message
|
||||
+ ChatColor.DARK_GRAY + " | " + ChatColor.GRAY + "ping: " + user.getPing() + "ms"
|
||||
+ ", tps: " + TPS_FORMAT.format(AntiCheatReloaded.getPlugin().getTPS());
|
||||
} else {
|
||||
message = ChatColor.GOLD + "" + ChatColor.BOLD + "ACR " + ChatColor.DARK_GRAY + "> " + ChatColor.GRAY
|
||||
message = prefix
|
||||
+ player.getName() + " failed " + type.getName() + ChatColor.GOLD + " (x" + vlForType + ")"
|
||||
+ ChatColor.DARK_GRAY + " | " + ChatColor.GRAY
|
||||
+ (subcheck != null ? ("type: " + subcheck.toLowerCase() + ", ") : "") + "ping: " + user.getPing() + "ms"
|
||||
|
||||
@@ -1,17 +1,35 @@
|
||||
# AntiCheatReloaded language file
|
||||
# The alert message when a player enters a higher group
|
||||
ALERT:
|
||||
- '&c%player% has just entered the %group% hack group.'
|
||||
- '&c%player%''s last failed check was: %check%.'
|
||||
- '&cType ''/acr report %player%'' for more information.'
|
||||
- '&6&lACR &8> &7%player% has just entered the %group% hack group.'
|
||||
- '&6&lACR &8> &7%player%''s last failed check was: %check%.'
|
||||
- '&6&lACR &8> &7Type ''/acr report %player%'' for more information.'
|
||||
# The warning a player receives when reaching a certain level
|
||||
# Only sent when enabled in groups.yml
|
||||
WARNING:
|
||||
- '&6&lACR &8>&7 You have been flagged for using cheats.'
|
||||
- '&6&lACR &8>&7 If you continue to cheat, action will be taken.'
|
||||
# Ban message
|
||||
BAN_REASON: '&6&lACR &8> &7Banned for unfair advantage'
|
||||
# Message to broadcast when banned
|
||||
# Only sent when enabled in config.yml
|
||||
BAN_BROADCAST: '&6&lACR &8> &7%player% was banned for cheating'
|
||||
# Kick message
|
||||
KICK_REASON: '&6&lACR &8> &7Kicked for unfair advantage'
|
||||
# Message to broadcast when kicked
|
||||
# Only sent when enabled in config.yml
|
||||
KICK_BROADCAST: '&6&lACR &8> &7%player% was kicked for cheating'
|
||||
SPAM_WARNING: '&cStop spamming the server or you will be kicked!'
|
||||
SPAM_KICK_REASON: '&cKicked for spamming'
|
||||
SPAM_KICK_BROADCAST: '&c%player% was kicked for spamming'
|
||||
SPAM_BAN_REASON: '&cBanned for spamming'
|
||||
SPAM_BAN_BROADCAST: '&c%player% was banned for spamming'
|
||||
# The warning message to send when a player is spamming
|
||||
SPAM_WARNING: '&6&lACR &8> &7Stop spamming the server or you will be kicked!'
|
||||
# Kick reason when spamming
|
||||
SPAM_KICK_REASON: '&6&lACR &8> &7Kicked for spamming'
|
||||
# Message to broadcast when kicked for spamming
|
||||
# Only sent when enabled in config.yml
|
||||
SPAM_KICK_BROADCAST: '&6&lACR &8> &7%player% was kicked for spamming'
|
||||
# Ban reason when spamming
|
||||
SPAM_BAN_REASON: '&6&lACR &8> &7Banned for spamming'
|
||||
# Message to broadcast when banned for spamming
|
||||
# Only sent when enabled in config.yml
|
||||
SPAM_BAN_BROADCAST: '&c%player% was banned for spamming'
|
||||
# The prefix for staff and debug alerts
|
||||
ALERT_PREFIX: "&6&lACR &8> &7"
|
||||
@@ -10,16 +10,16 @@ TELEPORT_TIME: 1500
|
||||
JOIN_TIME: 2000
|
||||
# Time to exempt a player from moving because of taking damage
|
||||
# Can be decreased very slightly to increase detection
|
||||
# Increasing in case of false positives is almost never necessary and is not advised
|
||||
DAMAGE_TIME: 3000
|
||||
# Increase in case of false positives after taking damage
|
||||
DAMAGE_TIME: 500
|
||||
# Time to exempt a player from moving because of taking damage with knockback effects
|
||||
# Can be decreased very slightly to increase detection
|
||||
# Increase in case of false positives, but shouldn't be necessary
|
||||
KNOCKBACK_DAMAGE_TIME: 4000
|
||||
# Increase in case of false positives after knockback
|
||||
KNOCKBACK_DAMAGE_TIME: 2000
|
||||
# Time to exempt a player from moving because of taking damage from an explosion
|
||||
# Can be decreased very slightly to increase detection
|
||||
# Increasing in case of false positives is almost never necessary and is not advised
|
||||
EXPLOSION_DAMAGE_TIME: 5000
|
||||
# Increasing in case of false positives after explosions
|
||||
EXPLOSION_DAMAGE_TIME: 2500
|
||||
# Amount of seconds to extend a players velocitized state after receiving velocity again
|
||||
VELOCITY_EXTENSION: 2
|
||||
# Time a player is considered to have a change in velocity
|
||||
|
||||
Reference in new issue
Block a user