Hey Guys,
I need help for my skript.
here the code:
Command:
this comes InGame:
Please help
Best regards
David
[doublepost=1486836914,1486741642][/doublepost]#PUSH
NEED HELP PLS
I need help for my skript.
here the code:
code_language.skript:
function getConfigType(id: number) :: number:
set {_sections::*} to configuration section "users" get of "plugins/PermissionsEx/permissions.yml"
if "%{_sections::1}%" contains "-":
return 1
else:
return 2
function getGroups(p_name:text) :: text:
if getConfigType(1) is 2:
set {_groups::*} to value list "users.%{_p_name}%.group" get of "plugins/PermissionsEx/permissions.yml"
set {_return} to "%{_groups::*}%"
replace all " and" with "," in {_return}
return {_return}
stop
if getConfigType(1) is 1:
set {_groups::*} to value list "users.%uuid of {_p_name}%.group" get of "plugins/PermissionsEx/permissions.yml"
set {_return} to "%{_groups::*}%"
replace all " and" with "," in {_return}
return {_return}
stop
function getGroup(p_name:text) :: text:
set {_group::*} to getGroups({_p_name}) split at ", "
loop {_group::*} :
add loop-value to {_groups::*}
return {_groups::1}
Command:
code_language.skript:
command /info [<text>]:
aliases: i
trigger:
if player does not have permission "{@Permission.Info}":
message "{@Logo} {@NoPermission}"
else:
If arg-1 is not set:
message "{@Logo} {@NoName}"
message "{@Logo} &a/info &c<Spieler>"
else:
set {_getIP} to WasPlayerAlreadyOnline("%arg-1%")
If {_getIP} is "false":
message "{@Logo} {@PlayerNotFound}"
else:
set {_BannedMoreInfo} to ""
set {_MutedMoreInfo} to ""
set {_id} to "{@UUID-Support}"
If {_id} is "true":
set {_uuid} to getUUID("%arg-1%")
set {_Banned?} to getBannedPlayer("%{_uuid}%", "Player")
else:
set {_Banned?} to getBannedPlayer("%arg-1%", "Player")
If {_Banned?} is "true":
set {_Banned?} to "&aJa"
else:
set {_Banned?} to "&cNein"
If {_id} is "true":
set {_Muted?} to getMutedPlayer("%{_uuid}%", "Player")
else:
set {_Muted?} to getMutedPlayer("%arg-1%", "Player")
If {_Muted?} is "true":
set {_Muted?} to "&aJa"
else:
set {_Muted?} to "&cNein"
If {_id} is "true":
set {_SetResult::*} to objects in column "Log" from result of query "SELECT * FROM History WHERE Player = '%{_uuid}%'"
else:
set {_SetResult::*} to objects in column "Log" from result of query "SELECT * FROM History WHERE Player = '%arg-1%'"
set {_getResult} to false
loop {_SetResult::*}:
set {_getResult} to true
set {_Rang?} to getGroup("%arg-1%")
set {info.head.%arg-1%} to skull of "%arg-1%" parsed as offline player
set {banstat.head} to skull of "Globe" parsed as offline player
open hopper named "&9&l%arg-1%" to player
format slot 0 of player with {info.head.%arg-1%} named "&7InGame Name&8: &3%arg-1%" with lore "&a||&7Rang&8: %{_Rang?}% ||&7Status: %{on.%arg-1%}%" to be unstealable
format slot 4 of player with {banstat.head} named "&7Punkte" with lore "&a||&7Bannpunkte&8: &3%{banpunkte.%arg-1%}%||&7Mutepunkte&8: &3%{mutepunkte.%arg-1%}%" to be unstealable
format slot 3 of player with paper named "&7Status" with lore "&a||&7Ist Gebannt&8: %{_Banned?}%||&7Ist Gemuted&8: %{_Muted?}%" to be unstealable
this comes InGame:
Please help
Best regards
David
[doublepost=1486836914,1486741642][/doublepost]#PUSH
NEED HELP PLS
Last edited: