• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Warn GUI

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#1
Warn GUI

Needed Plugins:
-MadCommands
-Modify Ranks

Allows you to warn players by opening a GUI allowing you state the reason and the player

Strike System + Warn will be coming soon

If you have any errors please let me know!

Code:
cmd create warn Warn GUI Made by StokedCrane7271
cmd add warn let %staff% = array(\"Owner\", \"Builder\", \"CoOwner\", \"Jr.Mod\", \"Sr.Mod\", \"Helper\", \"Admin\")
cmd add warn let %pgrp% = playergroup(%p%)
cmd add warn if %pgrp% in %staff% then goto 6
cmd add warn message %p% §bPermissions§8>> §7You do not have permission for this command.
cmd add warn exit
cmd add warn %all% = onlineplayers()
cmd add warn %form%[\"type\"] = \"custom_form\"
cmd add warn %form%[\"title\"] = \"Warn Players\"
cmd add warn %con-1%[\"type\"] = \"dropdown\"
cmd add warn %con-1%[\"text\"] = \"Select a Player\"
cmd add warn %con-1%[\"options\"] = %all%
cmd add warn %con-2%[\"type\"] = \"input\"
cmd add warn %con-2%[\"text\"] = \"Reason:\"
cmd add warn %con-2%[\"placeholder\"] = \"Reason here...\"
cmd add warn %content%[] = %con-1%
cmd add warn %content%[] = %con-2%
cmd add warn %form%[\"content\"] = %content%
cmd add warn %res% = dialog(%p%, %form%)
cmd add warn if %res% = %false% then exit
cmd add warn %index% = %res%[0]
cmd add warn %name% = %all%[%index%]
cmd add warn %reason% = %res%[1]
cmd add warn if %reason% = \"\" then exit
cmd add warn message %all% §7[§aWarn§7] §4%p% §f Warned §e%name% §f For: %reason%