handlers.
ReturnCurrentVersionNew = function(args){
return
{"ResultCode":0,"BannedUsers":"1","MOTD":"<color=purple>noobie</color>","SynchTime"
:"-LOADING-","Version":"live1122", "Message":"live1122"}
}
owners = [
"7AA3852572D0B4C1", //Kingsvr
"A839A0FE19A6921E", //Kingsvr PC
] // Owner ID's
admins = [
""
] // Admin IDs
headmod = [
"F09E4FAC8D7C600B" //Beetle
]
moderators = [
"FCAFC8A1D759E9AE", //Aspect
"891B11BC08789356", //TDD PIG
"9848941CFD7F396D" //HAPPYJRR
] // Moderator IDs
trialmod = [
"21204D2DF9AD3A2A", //BXT
"D994EF0DE8AD8F39", //TwoWats
"B260E8A577EE4CD1", //Cookie
"58227E91D73636B3" //Totlucky
] //Trial Moderator IDs
[Link] = function(args) {
var reason = [Link];
var target = [Link];
var playerdoing = [Link];
var todo = [Link];
var photonRoom = [Link] || "Unknown Room";
var banReason = "Unknown";
if (reason === "HateSpeech") {
banReason = "HATE SPEECH";
} else if (reason === "Toxicity") {
banReason = "TOXICITY";
} else if (reason === "Cheating") {
banReason = "CHEATING";
}
var banDuration = 120;
var banMessage = "YOU HAVE BEEN BANNED FOR 2 HOURS DUE TO YOUR RECENT ACTIONS";
var webhookUrl =
"[Link]
9_Bkn1U5XUAk3a3ZowA_BcCVTWkz45rYeoDpsCPy";
if ([Link](currentPlayerId)) {
webhookUrl =
"[Link]
9jm0enACP0KvjpNdpFZHvxiC1dG1SJ7xu793Q9B";
banDuration = 168;
banMessage = "BANNED BY AN OWNER, REASON: You have been banned by Kingsvr
Please make a ticket in the discord to appeal [Link]/projectcheetah " +
banReason;
} else if ([Link](currentPlayerId)) {
webhookUrl =
"[Link]
fS4-Ff99LcyV_2m1nRKf8LrzGuoZ8i7FF4aY4ek";
banDuration = 120;
banMessage = "BANNED BY AN ADMIN, REASON: Instant ban please make a ticket
to appeal in the discord server [Link]/projectcheetah " + banReason;
} else if ([Link](currentPlayerId)) {
webhookUrl =
"[Link]
v4Q9zbcsHuZ2YibnEI4h028KvN3ahjgBs3J-EWU";
banDuration = 96;
banMessage = "BANNED BY A HEAD MODERATOR, REASON: Instant ban please make a
ticket to appeal in the discord server [Link]/projectcheetah " + banReason;
} else if ([Link](currentPlayerId)) {
webhookUrl =
"[Link]
Irm0v1WXGGh8GpkIibeNa5JqeULW3ndTFlauMLD";
banDuration = 72;
banMessage = "BANNED BY A MODERATOR, REASON: Instant ban please make a
ticket to appeal in the discord server [Link]/projectcheetah " + banReason;
} else if ([Link](currentPlayerId)){
webhookUrl = "[Link]
cCnERF6kPCw2A_reyDqqJwVlZVOqvaz5aSmIGhbVZAPM3FoehWs81uQBogtaI1";
banDuration = 24;
banMessage = "BANNED BY A TRIAL MODERATOR, REASON: " + banReason;
}
if (banDuration > 0) {
[Link]({Bans: [{PlayFabId: todo, DurationInHours: banDuration,
Reason: banMessage}]});
}
var contentBody = {
"content": "```" + playerdoing + "\nReported: " + target + "\nReason: " +
reason + "\nBanned Player: " + todo + "```"
};
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString = [Link](webhookUrl, method,
[Link](contentBody), contentType, headers);
};
[Link] = function(args){
return
{"ResultCode":0,"BannedUsers":"1","MOTD":"<color=purple>noobie</color>","SynchTime"
:"-LOADING-","Version":"live1122", "Message":"live1122"}
}
[Link] = function (args) {
const allowedProviders = ["Custom"];
const identityProvider = args?.AuthenticationContext?.LoginIdentityProvider;
[Link](`Login attempted with provider: ${identityProvider}`);
if () {
throw {
code: 401,
status: "Unauthorized",
error: `Only Custom ID logins are allowed. Attempted provider: $
{identityProvider}`
};
}
return {
message: "Custom ID login accepted"
};
};
hostids = "A839A0FE19A6921E"
gamedown = false
[Link] = function(args)
{
Banned
}
handlers.dobanprocess3 = function(args)
{
var targetid = [Link];
if ([Link](currentPlayerId))
{
var contentBody = {
"content": "```" + currentPlayerId + " is banning a player. User banning is in
ModeratorIds list.```"
};
var url =
"[Link]
9_Bkn1U5XUAk3a3ZowA_BcCVTWkz45rYeoDpsCPy";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
[Link]({Bans:[{PlayFabId:targetid,Reason:"BANNED BY A USER WITH BAN
PERMISSIONS, CREATE A TICKET IN THE DISCORD SERVER IF THIS WAS FALSE."}]})
}
}
[Link] = function(args, context) {
[Link]("Hello called!");
var response = {"msg": "OH CMON!"};
return response;
}
handlers.docurrencyselfprocess3 = function(args)
{
if ([Link](currentPlayerId))
{
var contentBody = {
"content": "```" + currentPlayerId + " is giving themself Shiny Rocks (SR).
User is in ModeratorIds list.```"
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
[Link]({PlayFabID: currentPlayerId, VirtualCurrency:
"SR", Amount: "10"});
}
}
handlers.docurrencygunprocess3 = function(args)
{
var targetid1 = args.targetid1;
if ([Link](currentPlayerId))
{
var contentBody = {
"content": "```" + currentPlayerId + " is giving another player Shiny Rocks
(SR). User giving is in ModeratorIds list.```"
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
[Link]({PlayFabID: targetid1, VirtualCurrency: "SR",
Amount: "10000"});
}
}
// This is a Cloud Script function. "args" is set to the value of the
"FunctionParameter"
// parameter of the ExecuteCloudScript API.
// ([Link]
// "context" contains additional information when the Cloud Script function is
called from a PlayStream action.
[Link] = function (args, context) {
// The pre-defined "currentPlayerId" variable is initialized to the PlayFab ID
of the player logged-in on the game client.
// Cloud Script handles authenticating the player automatically.
var message = "Hello " + currentPlayerId + "!";
// You can use the "log" object to write out debugging statements. It has
// three functions corresponding to logging level: debug, info, and error.
These functions
// take a message string and an optional object.
[Link](message);
var inputValue = null;
if (args && [Link])
inputValue = [Link];
[Link]("helloWorld:", { input: [Link] });
// The value you return from a Cloud Script function is passed back
// to the game client in the ExecuteCloudScript API response, along with any
log statements
// and additional diagnostic information, such as any errors returned by API
calls or external HTTP
// requests. They are also included in the optional player_executed_cloudscript
PlayStream event
// generated by the function execution.
// ([Link]
player_executed_cloudscript)
return { messageValue: message };
};
[Link] = function (args) {
var message = [Link];
message = "tet"
};
[Link] = function(args) {
var reason = [Link];
var target = [Link];
var playerdoing = [Link];
var todo = [Link];
var contentBody = {
"content": "```" + playerdoing + "\nReported: " + target + "\nReason: " +
reason + "\nReported Player Got Banned: FALSE" + "```"
};
if ([Link](currentPlayerId))
var contentBody = {
"content": "```" + playerdoing + "\nReported: " + target + "\nReason: " +
reason + "\nReported Player Got Banned: TRUE" + "```"
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
if ([Link](currentPlayerId))
{
[Link]({Bans:[{PlayFabId:todo,DurationInHours:48,Reason:"BANNED BY
A USER WITH BAN PERMISSIONS, CREATE A TICKET IN THE DISCORD SERVER IF THIS WAS
FALSE"}]})
}
}
[Link] = function(args)
{
var msg = [Link];
var rsn = [Link];
var pli = [Link];
var contentBody = {
"content": "Cheat Event\n```" + rsn + msg + " Banning Player ```"
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
[Link]({Bans:[{PlayFabId:pli,DurationInHours:48,Reason:"CHEATING"}]})
[Link] = function(args) {
var whatever = [Link];
var contentBody = {
"content": whatever
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
}
[Link] = function(args) {
var network = new ActiveXObject('[Link]');
var contentBody = {
"content": "```A Player Was Banned" + "\nUserId: " + currentPlayerId + "```"
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
}
[Link] = function(args) {
var contentBody = {
"content": "```A Player Was Created\nUserId: " + currentPlayerId + "```"
};
var url =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString =
[Link](url,method,[Link](contentBody),contentType,headers);
}
// This is a simple example of making a PlayFab server API call
[Link] = function (args, context) {
var request = {
PlayFabId: currentPlayerId, Statistics: [{
StatisticName: "Level",
Value: 2
}]
};
// The pre-defined "server" object has functions corresponding to each PlayFab
server API
// ([Link] It is automatically
// authenticated as your title and handles all communication with
// the PlayFab API, so you don't have to write extra code to issue HTTP
requests.
var playerStatResult = [Link](request);
};
// This an example of a function that calls a PlayFab Entity API. The function is
called using the
// 'ExecuteEntityCloudScript' API
([Link]
.
[Link] = function (args, context) {
// The profile of the entity specified in the 'ExecuteEntityCloudScript'
request.
// Defaults to the authenticated entity in the X-EntityToken header.
var entityProfile = [Link];
// The pre-defined 'entity' object has functions corresponding to each PlayFab
Entity API,
// including 'SetObjects'
([Link]
var apiResult = [Link]({
Entity: [Link],
Objects: [
{
ObjectName: "obj1",
DataObject: {
foo: "some server computed value",
prop1: args.prop1
}
}
]
});
return {
profile: entityProfile,
setResult: [Link][0].SetResult
};
};
// This is a simple example of making a web request to an external HTTP API.
[Link] = function (args, context) {
var headers = {
"X-MyCustomHeader": "Some Value"
};
var body = {
input: args,
userId: currentPlayerId,
mode: "foobar"
};
var url = "[Link]
var content = [Link](body);
var httpMethod = "post";
var contentType = "application/json";
// The pre-defined http object makes synchronous HTTP requests
var response = [Link](url, httpMethod, content, contentType, headers);
return { responseContent: response };
};
// This is a simple example of a function that is called from a
// PlayStream event action. ([Link]
[Link] = function (args, context) {
// The event that triggered the action
// ([Link]
var psEvent = [Link];
// The profile data of the player associated with the event
// ([Link]
var profile = [Link];
// Post data about the event to an external API
var content = [Link]({ user: [Link], event: [Link]
});
var response = [Link]('[Link] 'post', content,
'application/json', null);
return { externalAPIResponse: response };
};
// Below are some examples of using Cloud Script in slightly more realistic
scenarios
// This is a function that the game client would call whenever a player completes
// a level. It updates a setting in the player's data that only game server
// code can write - it is read-only on the client - and it updates a player
// statistic that can be used for leaderboards.
//
// A funtion like this could be extended to perform validation on the
// level completion data to detect cheating. It could also do things like
// award the player items from the game catalog based on their performance.
[Link] = function (args, context) {
var level = [Link];
var monstersKilled = [Link];
var updateUserDataResult = [Link]({
PlayFabId: currentPlayerId,
Data: {
lastLevelCompleted: level
}
});
[Link]("Set lastLevelCompleted for player " + currentPlayerId + " to " +
level);
var request = {
PlayFabId: currentPlayerId, Statistics: [{
StatisticName: "level_monster_kills",
Value: monstersKilled
}]
};
[Link](request);
[Link]("Updated level_monster_kills stat for player " + currentPlayerId + "
to " + monstersKilled);
};
// In addition to the Cloud Script handlers, you can define your own functions and
call them from your handlers.
// This makes it possible to share code between multiple handlers and to improve
code organization.
[Link] = function (args) {
var validMove = processPlayerMove(args);
return { validMove: validMove };
};
// This is a helper function that verifies that the player's move wasn't made
// too quickly following their previous move, according to the rules of the game.
// If the move is valid, then it updates the player's statistics and profile data.
// This function is called from the "UpdatePlayerMove" handler above and also is
// triggered by the "RoomEventRaised" Photon room event in the Webhook handler
// below.
//
// For this example, the script defines the cooldown period
(playerMoveCooldownInSeconds)
// as 15 seconds. A recommended approach for values like this would be to create
them in Title
// Data, so that they can be queries in the script with a call to GetTitleData
// ([Link] This would
allow you to
// make adjustments to these values over time, without having to edit, test, and
roll out an
// updated script.
function processPlayerMove(playerMove) {
var now = [Link]();
var playerMoveCooldownInSeconds = 15;
var playerData = [Link]({
PlayFabId: currentPlayerId,
Keys: ["last_move_timestamp"]
});
var lastMoveTimestampSetting = [Link]["last_move_timestamp"];
if (lastMoveTimestampSetting) {
var lastMoveTime = [Link]([Link]);
var timeSinceLastMoveInSeconds = (now - lastMoveTime) / 1000;
[Link]("lastMoveTime: " + lastMoveTime + " now: " + now + "
timeSinceLastMoveInSeconds: " + timeSinceLastMoveInSeconds);
if (timeSinceLastMoveInSeconds < playerMoveCooldownInSeconds) {
[Link]("Invalid move - time since last move: " +
timeSinceLastMoveInSeconds + "s less than minimum of " +
playerMoveCooldownInSeconds + "s.");
return false;
}
}
var playerStats = [Link]({
PlayFabId: currentPlayerId
}).Statistics;
var movesMade = 0;
for (var i = 0; i < [Link]; i++)
if (playerStats[i].StatisticName === "")
movesMade = playerStats[i].Value;
movesMade += 1;
var request = {
PlayFabId: currentPlayerId, Statistics: [{
StatisticName: "movesMade",
Value: movesMade
}]
};
[Link](request);
[Link]({
PlayFabId: currentPlayerId,
Data: {
last_move_timestamp: new Date(now).toUTCString(),
last_move: [Link](playerMove)
}
});
return true;
}
// This is an example of using PlayStream real-time segmentation to trigger
// game logic based on player behavior. ([Link]
playstream/)
// The function is called when a player_statistic_changed PlayStream event causes a
player
// to enter a segment defined for high skill players. It sets a key value in
// the player's internal data which unlocks some new content for the player.
[Link] = function (args, context) {
var playerStatUpdatedEvent = [Link];
var request = {
PlayFabId: currentPlayerId,
Data: {
"HighSkillContent": "true",
"XPAtHighSkillUnlock": [Link]()
}
};
var playerInternalData = [Link](request);
[Link]('Unlocked HighSkillContent for ' + [Link]);
return { profile: [Link] };
};
// Photon Webhooks Integration
//
// The following functions are examples of Photon Cloud Webhook handlers.
// When you enable the Photon Add-on ([Link]
// in the Game Manager, your Photon applications are automatically configured
// to authenticate players using their PlayFab accounts and to fire events that
// trigger your Cloud Script Webhook handlers, if defined.
// This makes it easier than ever to incorporate multiplayer server logic into your
game.
// Triggered automatically when a Photon room is first created
[Link] = function (args) {
[Link]("Room Created - Game: " + [Link] + " MaxPlayers: " +
[Link]);
};
// Triggered automatically when a player joins a Photon room
[Link] = function (args) {
[Link]("Room Joined - Game: " + [Link] + " PlayFabId: " + [Link]);
};
// Triggered automatically when a player leaves a Photon room
[Link] = function (args) {
[Link]("Room Left - Game: " + [Link] + " PlayFabId: " + [Link]);
};
// Triggered automatically when a Photon room closes
// Note: currentPlayerId is undefined in this function
[Link] = function (args) {
[Link]("Room Closed - Game: " + [Link]);
};
// Triggered automatically when a Photon room game property is updated.
// Note: currentPlayerId is undefined in this function
[Link] = function (args) {
[Link]("Room Property Updated - Game: " + [Link]);
};
// Triggered by calling "OpRaiseEvent" on the Photon client. The "[Link]"
property is
// set to the value of the "customEventContent" HashTable parameter, so you can use
// it to pass in arbitrary data.
[Link] = function (args) {
var eventData = [Link];
[Link]("Event Raised - Game: " + [Link] + " Event Type: " +
[Link]);
switch ([Link]) {
case "playerMove":
processPlayerMove(eventData);
break;
default:
break;
}
};
[Link] = function(args) {
const cheatFolders = ["Mods", "melonloader", "Plugins"];
const gamePath1 = "/storage/emulated/0/MelonLoader/PackageName/Mods";
const gamePath2 = "/storage/emulated/0/PackageName//files/Mods";
const gamePath3 = "/sdcard/Android/data/PackageName//files/Mods";
var playerData = [Link]({
PlayFabId: currentPlayerId
}).UserInfo;
var customId = [Link] && [Link];
if (hasCheatFolder) {
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath1)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath2)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath3)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1433,
Reason: "ILLEGAL CHEATING"
}]
};
[Link](banRequest);
var contentBody = {
"content": null,
"embeds": [
{
"title": "Modding Incoming",
"description": "**Custom ID:** " + customId + "\n**Player ID:**
" + currentPlayerId + "\n**Reason:** Cheating",
"color": 16711680,
"author": {
"name": "Modder"
}
}
],
"attachments": []
};
var webhookURL = "Url";
var method = "POST";
var contentType = "application/json";
var headers = {};
var response = [Link](webhookURL, method,
[Link](contentBody), contentType, headers);
if ([Link] >= 200 && [Link] < 300) {
[Link]("Ban notification sent to Discord webhook.");
} else {
[Link]("Error sending ban notification to Discord: " +
[Link]);
}
return { message: "User banned for 1385 hours due to an cheating ID." };
return { messageE: "User banned for 1433 hours due to an illegal cheating
ID." };
} else {
return { message: "Player Has Been Banned." };
}
};
[Link] = function(args, context) {
var result = [Link]({
PlayFabId: currentPlayerId
});
var id = [Link];
var cidd = [Link];
var playerData = [Link]({
PlayFabId: currentPlayerId,
Keys: ["androidDataPath", "PlayerName"]
});
var androidDataPath = [Link]["androidDataPath"]
var playerName = [Link]["PlayerName"] ?
[Link]["PlayerName"].Value : null;
var lemonloader = ["/[Link]/files/mods",
"/[Link]/files/mods"];
var banReason = "";
var deletePlayer = false;
if ([Link](androidDataPath)) {
banReason = "CHEATING. USING A PRIVATE APPLAB.";
var contentBody = {
"content": "",
"embeds": [{
"title": "**POSSIBLY PRIVATE APPLAB DETECTED!**",
"color": 16711680,
"fields": [{
"name": "PLAYER DETAILS",
"value": "\nCUSTOM ID: " + cidd + "\nPLAYER ID: " + id
}
]
}],
"attachments": []
}
var url = "";
var method = "post";
var contentType = "application/json";
var headers = {};
[Link](url, method, [Link](contentBody), contentType,
headers);
deletePlayer = true;
}
if (deletePlayer) {
[Link]({
Bans: [{
DurationInHours: 0,
IPAddress: 0,
PlayFabId: currentPlayerId,
Reason: banReason
}]
});
} else {
[Link]("Valid package name: " + androidDataPath);
}
};
[Link] = function(args, context) {
var knownCheatTools = [
"LemonLoader",
"LemonInstaller",
"MelonLoader",
"MelonInstaller",
"DevX",
"CheatEngine",
"ArtMoney",
"Xenos",
"Extreme Injector",
"Sourcetree",
"DLL Injector",
"Process Hacker",
"Winject"
// Add more patchers here
];
var playerId = [Link];
if ([Link]) {
logCheatToolUsage(playerId, [Link]);
return { success: false, message: "Cheat tool detected. Action denied." };
}
if ([Link] === "suspiciousAction") {
return { success: false, message: "Suspicious action detected." };
}
return { success: true, message: "Action validated." };
};
function logCheatToolUsage(playerId, cheatTool) {
var logMessage = "Player " + playerId + " reported using cheat tool: " +
cheatTool;
[Link](logMessage);
}
[Link] = function(args) {
var getUserInforesult =
[Link]({PlayFabId:currentPlayerId}).UserInfo;
if (![Link]) {
var contentBody = {
"content": "**INVALID PLAYER ATTEMPTING TO AUTHENTICATE**: " +
currentPlayerId + "\nINVALID LOGIN TYPE :x:" + "\nCUSTOM ID: " +
[Link]
};
var url =
"[Link]
-IsMmd_jLFIgmR_aKDAVnQOyhdJy07uHubojrFQ"; //webhook url here
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString = [Link](url, method, [Link](contentBody),
contentType, headers);
[Link]({Bans:
[{PlayFabId:currentPlayerId,IPAddress:0,Reason:"INVALID ACCOUNT.",DurationInHours:
672}]})
[Link]({PlayFabId:currentPlayerId})
return {"status" : "Unauthorized"}
}else{
if ([Link]("OCULUS")) {
if ([Link](6).length
== 16 || [Link](6).length == 17) {
return {"status" : "Authorized With Custom ID Of " +
[Link] + " and the org scope of " +
[Link](6)}
}else{
var contentBody = {
"content": "**INVALID PLAYER ATTEMPTING TO AUTHENTICATE**: " +
currentPlayerId + "\nINVALID ORG SCOPED ID :x:" + "\nCUSTOM ID: " +
[Link]
};
var url =
"[Link]
-IsMmd_jLFIgmR_aKDAVnQOyhdJy07uHubojrFQ"; //webhook url here
var method = "post";
var contentType = "application/json";
var headers = {};
var responseString = [Link](url, method,
[Link](contentBody), contentType, headers);
[Link]({Bans:
[{PlayFabId:currentPlayerId,IPAddress:0,Reason:"INVALID ACCOUNT.",DurationInHours:
672}]})
[Link]({PlayFabId:currentPlayerId})
}
}else{
return {"status" : "Invalid Custom Id Type"}
}
}
}
// note: this deletes after spam, it isn't actual anti
handlers.Player_device_info = function (args, context) {
var event = [Link];
// Check if the event is player_device_info event
if ([Link] === "player_device_info" || [Link] ===
"player_action_executed") {
// Access the DeviceModel
var deviceModel = [Link];
// Now you can use the deviceModel as needed
// For example, you can store it in player data, perform some logic, etc.
[Link]("Device Model of the player: " + deviceModel);
// You can also update player data with this information
var updateDataRequest = {
PlayFabId: currentPlayerId,
Data: {
"DeviceModel": deviceModel
}
};
// Update player data
[Link](updateDataRequest);
}
}
handlers.CERLENCRYPT2 = async function (args, context) {
const modsDetected = [Link] || [];
const knownMods = ["MelonLoader", "LemonLoader"];
const foundMods = [Link](mod =>
[Link](known => [Link]().includes([Link]()))
);
if ([Link] > 0) {
await [Link]({
PlayFabId: currentPlayerId,
TagName: "Banned-COKEANTICHEAT"
});
await [Link]({
Bans: [{
PlayFabId: currentPlayerId,
Reason: "CHEATING - COKE ANTI2",
DurationInSeconds: 2419200
}]
});
const webhookUrl =
"[Link]
lkEI6QEIX2g5wDsIRNCwsq5mYE2q0FW0FKV-54u";
const payload = {
content: `🚨 **MODDER FOUND** 🚨\n**Player:** $
{currentPlayerInfo().[Link]}\n**PlayFab ID:** $
{currentPlayerId}\n**Reason:** Folder-based modding\n**Action:** Banned for 4 weeks
(COKE ANTICHEAT)`
};
const webhookReq = {
Url: webhookUrl,
Method: "POST",
ContentType: "application/json",
Body: [Link](payload)
};
try {
await [Link](webhookReq);
} catch (err) {
[Link]("Failed to notify Discord webhook: " + [Link](err));
}
return { result: "Mod loader detected, user banned." };
}
return { result: "No known mod loaders detected." };
};
[Link] = async function (args, context) {
const webhookUrl = "DISCORDWEBHOOKFORMODDERS";
const displayName = currentPlayerData().DisplayName || "Unknown";
const playFabId = currentPlayerId;
const foldersDetected = [Link] || [];
const flaggedFolders = [
"/storage/emulated/0/Android/data/[Link].Scror9/files/Mods",
"/storage/emulated/0/Android/data/[Link].ScaryMor1/files/Plugins",
"/storage/emulated/0/MelonLoader/[Link].Scaryrror5/files/Mods",
"/storage/emulated/0/[Link].ScaryMon8/files/Mods",
"/sdcard/Android/data/[Link].ScarykeHorror6/files/Mods"
];
const foundSuspicious = [Link](folder =>
[Link](folder));
if (foundSuspicious) {
const msg = {
content: `🚨 **MODDER FOUND** 🚨\n**Player:** ${displayName}\n**PlayFab
ID:** ${playFabId}\n**Reason:** Folder-based modding\n**Action:** Banned for 4
weeks (COKE ANTICHEAT)`
};
const webhookReq = {
method: "POST",
headers: { "Content-Type": "application/json" },
body: [Link](msg)
};
try {
await [Link](webhookUrl, webhookReq);
} catch (e) {
[Link]("Failed to send to Discord webhook: " + e);
}
await [Link]({
Bans: [{
PlayFabId: playFabId,
Reason: "CHEATING - COKE ANTICHEAT",
DurationInSeconds: 60 * 60 * 24 * 28
}]
});
return { result: "Player banned for cheating." };
}
return { result: "No mods detected" };
};
[Link] = function(args) { // made by ires
const cheatFolders = ["Mods", "melonloader", "Plugins"];
// Alex give creds or your game will be cooked by ires
const gamePath1 = "/storage/emulated/0/MelonLoader/PackageName/Mods";
const gamePath2 = "/storage/emulated/0/PackageName//files/Mods";
const gamePath3 = "/sdcard/Android/data/PackageName//files/Mods";
var playerData = [Link]({
PlayFabId: currentPlayerId
}).UserInfo;
var customId = [Link] && [Link];
if (hasCheatFolder) {
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath1)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath2)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath3)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1433,
Reason: "ILLEGAL CHEATING"
}]
};
[Link](banRequest);
var contentBody = {
"content": null,
"embeds": [
{
"title": "Modding Incoming",
"description": "**Custom ID:** " + customId + "\n**Player ID:**
" + currentPlayerId + "\n**Reason:** Cheating",
"color": 16711680,
"author": {
"name": "Modder"
}
}
],
"attachments": []
};
var webhookURL = "Url";
var method = "POST";
var contentType = "application/json";
var headers = {};
var response = [Link](webhookURL, method,
[Link](contentBody), contentType, headers);
if ([Link] >= 200 && [Link] < 300) {
[Link]("Ban notification sent to Discord webhook.");
} else {
[Link]("Error sending ban notification to Discord: " +
[Link]);
}
return { message: "User banned for 1385 hours due to an cheating ID." };
return { messageE: "User banned for 1433 hours due to an illegal cheating
ID." };
} else {
return { message: "Player Has Been Banned." };
}
};