-
Notifications
You must be signed in to change notification settings - Fork 59
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
1 parent
911be70
commit 86efd5a
Showing
1 changed file
with
3 additions
and
0 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 |
---|---|---|
|
@@ -1854,6 +1854,9 @@ let setTime = Date.now(); | |
function banGame() { | ||
if(window.banned) return; | ||
sendEvent("cheat_detected") | ||
// redirect to banned page | ||
alert("Cheat detected.") | ||
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"; | ||
window.banned = true; | ||
document.write("<h1>You have been banned from playing this game.</h1> If you believe this is a mistake, please contact us at [email protected]") | ||
window.localStorage.setItem("banned", "true") | ||
|