Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Config DONT CHANGE ANY OF THIS!!
- bot_name = "|-----| TICKET |-----|";
- webhook_url = "INSERT_YOUR_WEBHOOKURL_HERE";
- bot_image = "https://www.iconninja.com/files/855/96/14/report-icon.png";
- //Translation:
- report_correct = "You send the report correctly";
- report_error = "Correct Usage: /report {Target} {Reason}";
- command report(target, reason){
- permission = "xar.report";
- execute(){
- if(isSet(target) and isSet(reason)){
- tt = toPlayer(target);
- if(isPlayer(tt)){
- discord.send(str.format("```Player: {0}
- Target: {1}
- Reason: {2}```", player.name, tt.name, reason), webhook_url, bot_name, bot_image);
- player.message(report_correct);
- }
- else {
- player.message(report_error);
- }
- }
- else {
- player.message(report_error);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement