Jump to content

/stats, /report, /warn, /clearwarns, and /warns commands!


_chickennugs_
 Share

Recommended Posts

heres the skript i made :D:

 

#Epic warn and report skript bt BelugaMC

#ONLY EDIT IF YOU KNOW WHAT YOUR DOING!!!

command /stats [<offlineplayer>]:
  trigger:
    if arg-1 is set:
      open virtual chest with size 1 named "Stats for %arg-1%" to player
      format gui slot 0 of player with skeleton skull named "&4&lDeaths: &c%{%player%.deaths}%"
      format gui slot 1 of player with iron sword named "&4&lKills: &c%{%player%.kills}%"
      format gui slot 2 of player with light blue wool named "&4&lWarns: &c%{%arg-1%.warns}%"
    if arg-1 is not set:
      open virtual chest with size 1 named "Your Stats" to player
      format gui slot 0 of player with skeleton skull named "&4&lDeaths: &c%{%player%.deaths}%"
      format gui slot 1 of player with iron sword named "&4&lKills: &c%{%player%.kills}%"
      format gui slot 2 of player with light blue wool named "&4&lWarns: &c%{%arg-1%.warns}%"

 

on death:
  if attacker is player:
    add 1 to {%player%.kills}
on death:
  add 1 to {%player%.deaths}


command /report [<player>] [<text>]:
  trigger:
    if arg-1 is not set:
      send "&cUsage: /report (player)" to player
    if arg-2 is not set:
      broadcast "&7[&6BelugaGens&7] &c%arg-1% &rhas been reported by &c%player%"
    if arg-2 is set:
      broadcast "&7[&6BelugaGens&7] &c%arg-1% &rhas been reported by &c%player% &rfor: &6%arg-2%"


command /warn [<player>] [<text>]:
  permission: belugagens.warn
  permission message: &c[ERROR] &rYou do not have permission to execute this command!
  trigger:
    if arg-1 is not set:
      send "&7[&bWarn&7] &bUsage: &c/warn (player)" to player
    if arg-2 is set:
      send "&7[&bWarn&7] &bYou have been warned for: &c%arg-2%" to arg-1
      send "&7[&bWarn&7] &bSuccseesfuly warned &c%arg-1% &bfor: &c%arg-2%&b!" to player
      add 1 to {%arg-1%.warns}
    if arg-2 is not set:
      send "&7[&bWarn&7] &bYou have been warned" to arg-1
      send "&7[&bWarn&7] &bSuccseesfuly warned &c%arg-1%&b!" to player
      add 1 to {%arg-1%.warns}

command /warns [<offlineplayer>]:
  permission: belugagens.warns
  permission message: &c[ERROR] &rYou do not have permission to execute this command!
  trigger:
    if arg-1 is not set:
      send "&7[&bWarn&7] &bUsage: &c/warn (player)" to player
    if arg-1 is set:
      send "&7[&bWarns&7] &c%arg-1%&b has &c%{%arg-1%.warns}% &bwarns." to player

command /clearwarns [<offlineplayer>]:
  permission: belugagens.clearwarns
  permission message: &c[ERROR] &rYou do not have permission to execute this command!
  trigger:
    if arg-1 is not set:
      send "&7[&bWarn&7] &bUsage: &c/clearwarn (player)" to player
    if arg-1 is set:
      set {%arg-1%.warns} to 0
      send "&7[&bWarn&7] &bReset &c%arg-1%&c's&b warns." to player

##########################END OF SKRIPT 😄##########################

Edited by BelugaMC

< Owner of Attackzone.minehut.gg >

I like chicken nuggets 🙂

Link to comment
Share on other sites

If you wanted to improve this, I would suggest adding a list variable for the argument's warnings, and adding things like a reason and the date when the player was warned. Otherwise, nice job

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

  • _chickennugs_ changed the title to /stats, /report, /warn, /clearwarns, and /warns commands!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



×
×
  • Create New...