Jump to content

Dextur

Member
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

1 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Rodger that, with the gamemode.others case, I just made it into one command. But the problem with mines is you have to add perms to the shortcuts (/gamemode s or 2). I could've turned it into "survival" or "creative" to make things easier. But this is just a demo of mines. Your skript is pretty nice though. options: perm: x-core noperm: &cYou currently don't have permission to run this command! function gamemode(p: player, gamemode: text): if {_gamemode} is "survival","0" or "s": set gamemode of {_p} to survival send "&7Your gamemode has been set to &eSurvival" to {_p} if {_gamemode} is "creative","1" or "c": set gamemode of {_p} to creative send "&7Your gamemode has been set to &eCreative" to {_p} if {_gamemode} is "adventure","2" or "a": set gamemode of {_p} to adventure send "&7Your gamemode has been set to &eAdventure" to {_p} if {_gamemode} is "spectator","3" or "sp": set gamemode of {_p} to spectator send "&7Your gamemode has been set to &eSpectator" to {_p} command /gamemode [<text>] [<offline player>]: permission: {@perm}.gamemode permission message: {@noperm} aliases: gm trigger: if arg-1 isn't set: send "&7/gamemode &e<text> <player>" else: if arg-1 isn't "survival","0","s","creative","c","1","adventure","2","a","spectator","3" or "sp": send "&7This gamemode is unknown." else: if player has permission "{@perm}.gamemode.%arg-1%": arg-2 isn't set: gamemode(player, arg-1) else: if player has permission "{@perm}.gamemode.others": arg-2 is online: gamemode(arg-2, arg-1) else: gamemode(player, arg-1) else: send "{@noperm}" else: send "{@noperm}"
  2. You should use functions for gamemodes, it helps prevent multiple lines. You can do "{@perm}.gamemode.%arg-1%" instead of typing it out, it saves time. You didn't have to add multiple stops in the skript if you don't have it looped. You didn't have to add "{@perm.gamemode.<gamemode>.others}". It will flow through if the player has access to the gamemode. I changed the skript around a little better. The main problem is that you have to actually add permission to the shortcuts. (gamemode.0 or gamemode.survival) If you want me to send improvements on the skript here then just reply to this message!
  3. Things I would like to point out. You shouldn't use local variables to save a player's score because it will delete itself after you use some sort of event. Try to use {var::%arg%}. You should also use %arg's uuid% instead of %arg% if the player change their name. every 1 tick: if {_warning.%arg-1%} is 5: execute command "tempban %player% 1hour &bYou have had too many warnings! (5)" set {_warning.%arg-1%} to 0 This won't work because every 1 tick doesn't have no Idea what's it's executing (Like %arg-1% or %player%). I think you suppose to add (add 1 warn to player) before the broadcast. [&b{_warning.%arg-1%}&7] You forgot to add % before and after {_warning.%arg-1%} I changed a few things in the warn skript. You can take a look for yourself! command /warn [<player>] [<text>]: permission: warn.use permission message: &cYou do not have the correct permission to execute this command! trigger: if arg-1 is set: add 1 to {warning::%arg-1's uuid%} broadcast "" broadcast "&b&lWarning" if arg-2 is set: broadcast "&b%arg-1% &7has been warned by &b%player% &7for &b%arg-2% &7[&b%{warning::%arg-1's uuid%}%&7]" else: broadcast "&b%arg-1% &7has been warned by &b%player% &7[&b%{warning::%arg-1's uuid%}%&7]" broadcast "" if {warning::%arg-1's uuid%} is 5: set {warning::%arg-1's uuid%} to 0 execute command "tempban %arg-1% 1hour &bYou have had too many warnings! (5)" else: send "&cUsage: /warn <player> <reason>" command /unwarn [<player>]: permission: warn.use permission message: &cYou do not have the correct permission to execute this command! trigger: if arg isn't set: send "&cUsage: /unwarn <player>" else: if {warning::%arg's uuid%} > 0: remove 1 from {warning::%arg's uuid%} broadcast "" broadcast "&b&lWarning" broadcast "&b%arg% &7has been un-warned by &b%player%&7!" broadcast ""
  4. Noice.

    1. Edb

      Edb

      *pop sound*

×
×
  • Create New...