Survival-System [Skript] icon

Survival-System [Skript] -----

This script contains the most important functions for an online survival server



Report and Teamchat update
With this update comes a team chat and a report system the working time on both is 3 hours

Commands:
/teamchat (login/logout/)
/teamchat <text>
/report (player) (reason)
/report (player) accept
/report (player) end

Permissions:
Teamchat - System.teamchat
report accept/end etc. - System.report.controll


Should you find bugs or errors, please write to me so that I can fix them

Code (Text):
command /teamchat [<text>] [<text>]:
    permission: System.teamchat
    permission message: {@Noperm}
    trigger:
        if arg 1 is "login":
            if {tchat.login.%player%} is true:
                message "{@tchat} &fYou are already logged in"
            if {tchat.login.%player%} is false:
                set {tchat.login.%player%} to true
                message "{@tchat} &fYou have been logged in"
        if arg 1 is "logout":
            if {tchat.login.%player%} is false:
                message "{@tchat} &fYou are already logged out"
            if {tchat.login.%player%} is true:
                set {tchat.login.%player%} to false
                message "{@tchat} &fYou have been logged out"
        if arg 1 is not "login" or "logout" or "alert":
            if {tchat.login.%player%} is false:
                message "{@tchat} &fYou are not logged in use /teamchat (loggin/logout) to log in or out"
            if {tchat.login.%player%} is true:
                loop all players:
                    if loop-player has permission "System.teamchat":
                        send "{@tchat} &f%arg-1%"

Code (Text):
command /report <player> [<text>]:
    trigger:
        if arg 1 is a player:
            if arg 1 is "%player%":
               
            if arg 1 is not "%player%":
                if arg 2 is not "Hacking" or "Chatabuse" or "Pedophilic machinations" or "insult" or "Griefing" or "accept" or "end":
                    message "&c&l---------------------------------------------"
                    message "    &c&lPlease use one of these report reasons"
                    message " "
                    message "&f» &c&lHacking"
                    message "&f» &c&lChatabuse"
                    message "&f» &c&lPedophilic machinations"
                    message "&f» &c&linsult"
                    message "&f» &c&lGriefing"
                    message "&c&l---------------------------------------------"
            if arg 2 is "Hacking":
                message "{@report} &c&lYou have successfully reported the player"
                set {report.%arg-1%.from.%player%.accept} to false
                loop all players:
                    if loop-player has permission "System.report.controll":
                        send "                    {@report}"
                        send "&f» &cReporter: &c&l%player%"
                        send "&f» &cReported player: &c&l%arg-1%"
                        send "&f» &cReason: &c&l%arg-2%"
                        send "&f» &c&laccept the report with /report (reported-player) accept"
                        send "                    {@report}"
                        set {report.%arg-1%.notaccept} to false
                        set {report.%arg-1%.reportedplayer} to "%arg-1%"
            if arg 2 is "Chatabuse":
                message "{@report} &c&lYou have successfully reported the player"
                set {report.%arg-1%.from.%player%.accept} to false
                loop all players:
                    if loop-player has permission "System.report.controll":
                        send "                    {@report}"
                        send "&f» &cReporter: &c&l%player%"
                        send "&f» &cReported player: &c&l%arg-1%"
                        send "&f» &cReason: &c&l%arg-2%"
                        send "&f» &c&laccept the report with /report (reported-player) accept"
                        send "                    {@report}"
                        set {report.%arg-1%.notaccept} to false
                        set {report.%arg-1%.reportedplayer} to "%arg-1%"
            if arg 2 is "Pedophilic machinations":
                message "{@report} &c&lYou have successfully reported the player"
                set {report.%arg-1%.from.%player%.accept} to false
                loop all players:
                    if loop-player has permission "System.report.controll":
                        send "                    {@report}"
                        send "&f» &cReporter: &c&l%player%"
                        send "&f» &cReported player: &c&l%arg-1%"
                        send "&f» &cReason: &c&l%arg-2%"
                        send "&f» &c&laccept the report with /report (reported-player) accept"
                        send "                    {@report}"
                        set {report.%arg-1%.notaccept} to false
                        set {report.%arg-1%.reportedplayer} to "%arg-1%"
            if arg 2 is "insult":
                message "{@report} &c&lYou have successfully reported the player"
                set {report.%arg-1%.from.%player%.accept} to false
                loop all players:
                    if loop-player has permission "System.report.controll":
                        send "                    {@report}"
                        send "&f» &cReporter: &c&l%player%"
                        send "&f» &cReported player: &c&l%arg-1%"
                        send "&f» &cReason: &c&l%arg-2%"
                        send "&f» &c&laccept the report with /report (reported-player) accept"
                        send "                    {@report}"
                        set {report.%arg-1%.notaccept} to false
                        set {report.%arg-1%.reportedplayer} to "%arg-1%"
            if arg 2 is "Griefing":
                message "{@report} &c&lYou have successfully reported the player"
                set {report.%arg-1%.from.%player%.accept} to false
                loop all players:
                    if loop-player has permission "System.report.controll":
                        send "                    {@report}"
                        send "&f» &cReporter: &c&l%player%"
                        send "&f» &cReported player: &c&l%arg-1%"
                        send "&f» &cReason: &c&l%arg-2%"
                        send "&f» &c&laccept the report with /report (reported-player) accept"
                        send "                    {@report}"
                        set {report.%arg-1%.notaccept} to false
                        set {report.%arg-1%.reportedplayer} to "%arg-1%"
            if arg 1 is a player:
                if arg 2 is "accept":  
                    if {report.%arg-1%.reportedplayer} is not "%arg-1%":
                        message "{@report} &c&lThis report is already being processed or it &c&ldoes not exist"
                        if {report.%arg-1%.notaccept} is true:
                            message "{@report} &c&lThis report is already being processed or it &c&ldoes not exist"
                    if {report.%arg-1%.reportedplayer} is "%arg-1%":
                        if {report.%arg-1%.notaccept} is false:
                            if player has permission "System.report.controll":  
                                if player has permission "System.report.controll":
                                    set {report.mod.%player%} to "%player%"
                                    set {report.accept.position.%player%} to location of player
                                    hide the player from all players
                                    set player's gamemode to creative
                                    send " "
                                    send "&f» &c&lYou have accepted the report you will be &c&ltransferred to the"
                                    send "&f» &c&lvanish and teleported to the player with /report &c&lend you will"
                                    send "&f» &c&lend the processingof the report and will be &c&lreset &c&lto your"
                                    send "&f» &c&lprevious position"
                                    send " "
                                    make player execute command "/tp %arg-1%"
                if arg 2 is "end":
                    if {report.mod.%player%} is not "%player%":
                        message "{@report} &c&lYou are not editing this report"
                    if {report.mod.%player%} is "%player%":
                        if player has permission "System.report.controll":
                            teleport player to {report.accept.position.%player%}
                            delete {report.accept.position.%player%}
                            delete {report.%arg-1%.reportedplayer}
                            delete {report.%arg-1%.notaccept}          
                            reveal the player from all players
                            message "&c&lYou have successfully completed the report"
                            wait 10 seconds
                            delete {report.mod.%player%}
                            set player's gamemode to survival
                           
                           
----------, Apr 5, 2021
Resource Information
Author:
----------
Total Downloads: 299
First Release: Apr 4, 2021
Last Update: Apr 5, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings