-
Notifications
You must be signed in to change notification settings - Fork 13
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
c4f8f6f
commit 84db1ce
Showing
9 changed files
with
46 additions
and
4 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
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,14 +1,27 @@ | ||
import { client } from '../client' | ||
|
||
/** | ||
* Tries to ban a player from the playerlist | ||
* @param {Number} id the players id | ||
*/ | ||
export function banPlayer(id: number) { | ||
let reason; | ||
let length; | ||
reason = prompt("Please enter the ban reason", "Being annoying"); | ||
reason = prompt("Please enter the reason", "Being annoying"); | ||
length = Number(prompt("Please enter the ban length in minutes", "60")); | ||
|
||
client.sender.sendMA(id, length, reason); | ||
} | ||
window.banPlayer = banPlayer; | ||
window.banPlayer = banPlayer; | ||
|
||
/** | ||
* Tries to kick a player from the playerlist | ||
* @param {Number} id the players id | ||
*/ | ||
export function kickPlayer(id: number) { | ||
let reason; | ||
reason = prompt("Please enter the reason", "Being annoying"); | ||
|
||
client.sender.sendMA(id, 0, reason); | ||
} | ||
window.kickPlayer = kickPlayer; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* i am mod now | ||
* @param {Array} args packet arguments | ||
*/ | ||
export const handleAUTH = (args: string[]) => { | ||
(<HTMLAnchorElement>( | ||
document.getElementById("mod_ui") | ||
)).href = `styles/mod.css`; | ||
} |
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
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,3 @@ | ||
table#client_playerlist td:nth-child(5), td:nth-child(6) { | ||
display: inherit; | ||
} |
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,3 @@ | ||
table#client_playerlist td:nth-child(5), td:nth-child(6) { | ||
display: none; | ||
} |