TempPex (Skript)
0.1v betaAdd users to a group for a amount of days | Temp PermissionEx Skript
This is a simple CommandLog Skript...
Where are the config and the log?
Change Messages: plugins/TempPex/messages.yml
Config: plugins/TempPex/config.yml
Commands:
/tpex status - TempPex.Use
>> Says if the Skript works.
/tpex dev - TempPex.Use
>> Shows some informations.
/tpex help/list - TempPex.Use
>> List all Commands.
/tpex add <Player> <Groupname> <Duration in Day's> - TempPex.Use
>> Adds a player to a group
Variables:
$day - Shows the amount of days, like "1".
$player - Shows the players name, like "Minecoll_YT".
$rank - Shows the rank, like "Owner".
Dependencies:
➥➤ Skript
➥➤ PermissionsEx
Here is the config.yml:
config.yml
#
#
# Copyright C 2018- 2019
# >> You are not allowed to copy or upload my code.
# >> Skript made by Minecoll_YT | griefhub.de
#
#
key: '7vt35765tv76t5vw769n5t765twv7577t5w487qv5v7435znt7v7nv587n95vwz87n95zvn7895vn795vn795vtwn79z75nt9v7n9zt5vw7zn9t5v3wnz795tvzn79t5vw7zn9t5vw7zntvw7z9nt5vw79znt5vw37z9nt5vw7z9nt5v7zn9t5vz97nw79zn5tvw97zn5vtw97zn5tvw79zn5tvw97znt5vw97zn5tvwn79z5tv79znwz79nt5vw479znt5vw49nz7t5vwnz79t5vwzn79vtw9z7n5tvwz9n78zn9tw5vnz9t5vw9zntw5v9zn8wt5vzwt5'
version: '0.1v beta'
# >>> Dont change the version & key!
enabled: true
prefix: '§8[§9PEX§8]'
kickPlayer: false
Here is the messages.yml:
messages.yml
#
#
# Copyright C 2018- 2019
# >> You are not allowed to copy or upload my code.
# >> Skript made by Minecoll_YT | griefhub.de
#
#
wrongCommand: '§cWrong Command! Please use §l/tpex help §cto list all commands.'
kickMessage: '§7You have a new rank! --> $rank'
messagePlayer: '§7You have a new rank! --> §3$rank §7You have this group for §b$day Days§7.'
messageOperator: '§7You added §9$player §7to the Group §3$rank§7. The User will stay in this group for §b$day Days§7.'
setPlayer: '§cPlease enter a username of a Player.'
setDuration: '§cPlease enter the duration in days.'
setGroup: '§cPlease enter the name of the Group.'
My Code: (Don't change or upload this)
on load:
if folder "plugins/TempPex" doesn't exists:
create folder "plugins/TempPex"
if file "plugins/TempPex/config.yml" doesn't exists:
create file "plugins/TempPex/config.yml"
wf "##" to "plugins/TempPex/config.yml"
wf "## " to "plugins/TempPex/config.yml"
wf "## Copyright C 2018- 2019" to "plugins/TempPex/config.yml"
wf "## >> You are not allowed to copy or upload my code." to "plugins/TempPex/config.yml"
wf "## >> Skript made by Minecoll_YT | griefhub.de" to "plugins/TempPex/config.yml"
wf "## " to "plugins/TempPex/config.yml"
wf "##" to "plugins/TempPex/config.yml"
wf " " to "plugins/TempPex/config.yml"
wf "key: '7vt35765tv76t5vw769n5t765twv7577t5w487qv5v7435znt7v7nv587n95vwz87n95zvn7895vn795vn795vtwn79z75nt9v7n9zt5vw7zn9t5v3wnz795tvzn79t5vw7zn9t5vw7zntvw7z9nt5vw79znt5vw37z9nt5vw7z9nt5v7zn9t5vz97nw79zn5tvw97zn5vtw97zn5tvw79zn5tvw97znt5vw97zn5tvwn79z5tv79znwz79nt5vw479znt5vw49nz7t5vwnz79t5vwzn79vtw9z7n5tvwz9n78zn9tw5vnz9t5vw9zntw5v9zn8wt5vzwt5'" to "plugins/TempPex/config.yml"
wf "version: '0.1v beta'" to "plugins/TempPex/config.yml"
wf "## >>> Dont change the version & key!" to "plugins/TempPex/config.yml"
wf "enabled: true" to "plugins/TempPex/config.yml"
wf " " to "plugins/TempPex/config.yml"
wf " " to "plugins/TempPex/config.yml"
wf "prefix: '&8[&9PEX&8]'" to "plugins/TempPex/config.yml"
wf "kickPlayer: false" to "plugins/TempPex/config.yml"
if file "plugins/TempPex/messages.yml" doesn't exists:
wf "##" to "plugins/TempPex/messages.yml"
wf "## " to "plugins/TempPex/messages.yml"
wf "## Copyright C 2018- 2019" to "plugins/TempPex/messages.yml"
wf "## >> You are not allowed to copy or upload my code." to "plugins/TempPex/messages.yml"
wf "## >> Skript made by Minecoll_YT | griefhub.de" to "plugins/TempPex/messages.yml"
wf "## " to "plugins/TempPex/messages.yml"
wf "##" to "plugins/TempPex/messages.yml"
wf " " to "plugins/TempPex/messages.yml"
wf "wrongCommand: '&cWrong Command! Please use &l/tpex help &cto list all commands.'" to "plugins/TempPex/messages.yml"
wf "kickMessage: '&7You have a new rank! --> $rank'" to "plugins/TempPex/messages.yml"
wf "messagePlayer: '&7You have a new rank! --> &3$rank&7. &7You have this group for &b$day Days&7.'" to "plugins/TempPex/messages.yml"
wf "messageOperator: '&7You added &9$player &7to the Group &3$rank&7. The User will stay in this group for &b$day Days&7.'" to "plugins/TempPex/messages.yml"
wf "setPlayer: '&cPlease enter a username of a Player.'" to "plugins/TempPex/messages.yml"
wf "setDuration: '&cPlease enter the duration in days.'" to "plugins/TempPex/messages.yml"
wf "setGroup: '&cPlease enter the name of the Group.'" to "plugins/TempPex/messages.yml"
set {tpex.key} to coloured value "key" get of "plugins/TempPex/config.yml"
set {tpex.version} to coloured value "version" get of "plugins/TempPex/config.yml"
set {tpex.enabled} to coloured value "enabled" get of "plugins/TempPex/config.yml"
set {tpex.prefix} to coloured value "prefix" get of "plugins/TempPex/config.yml"
set {tpex.kickPlayer} to coloured value "kickPlayer" get of "plugins/TempPex/config.yml"
#
set {tpex.wrongCommand} to coloured value "wrongCommand" get of "plugins/TempPex/messages.yml"
set {tpex.kickMessage} to coloured value "kickMessage" get of "plugins/TempPex/messages.yml"
set {tpex.messagePlayer} to coloured value "messagePlayer" get of "plugins/TempPex/messages.yml"
set {tpex.messageOperator} to coloured value "messageOperator" get of "plugins/TempPex/messages.yml"
set {tpex.setPlayer} to coloured value "setPlayer" get of "plugins/TempPex/messages.yml"
set {tpex.setDuration} to coloured value "setDuration" get of "plugins/TempPex/messages.yml"
set {tpex.setGroup} to coloured value "setGroup" get of "plugins/TempPex/messages.yml"
wait 0.1 ticks
set {_key} to text from "https://pastebin.com/raw/4BMpXSLa"
if {_key} is not {tpex.key}:
send "&0" to console
send "%{tpex.prefix}% &4Skript don't work! (wrongKey)" to console
send "&0" to console
loop all players:
if loop-player has permission "TempPex.Use":
send "&0" to loop-player
send "%{tpex.prefix}% &4Skript don't work! (wrongKey)" to loop-player
send "&0" to loop-player
set {tpex.enabled} to false
stop trigger
else:
send "%{tpex.prefix}% &aKey O.K." to console
set {_version} to text from "https://pastebin.com/raw/KKZbvaUD"
if {_version} is not {tpex.version}:
send "&0" to console
send "%{tpex.prefix}% &cPlease download the new Version of this Skript..." to console
send "&0" to console
else:
send "%{tpex.prefix}% &aYou have the last Version!" to console
stop trigger
command /tpex [<text>] [<offline player>] [<text>] [<number>]:
permission: TempPex.Use
trigger:
if arg-1 is "status":
if {tpex.enabled} is "true":
send "%{tpex.prefix}% &aTempPex work's!"
else:
send "%{tpex.prefix}% &cTempPex don't work! --> Check the config.yml and your Plugins."
stop trigger
if arg-1 is "dev":
send "§8§m-------------§r§8┃ §9TPEX §8§m┃-------------"
send "&7Version&8: &b%{tpex.version}%"
send "&7License&8: &aFREE"
send "&7Developer&8: &bMinecoll_YT"
send "§8§m-------------§r§8┃ §9TPEX §8§m┃-------------"
stop trigger
if arg-1 is "help" or "list":
send "%{tpex.prefix}% &cUsage&8: &b/tpex <status/dev/help/add> <player> <group> <duration in day's>"
stop trigger
if arg-1 is "add":
if arg-2 is set:
if arg-3 is set:
if arg-4 is set:
set {_1} to arg-4
set {_2} to 86400 * argument 4
execute console command "pex user %arg-2% group add %arg-3% * %{_2}%"
set {_3} to {tpex.messageOperator}
replace all "$player" with "%arg-2%" in {_3}
replace all "$rank" with "%arg-3%" in {_3}
replace all "$day" with "%arg-4%" in {_3}
send "%{tpex.prefix}% %{_3}%" to sender
set {_4} to {tpex.messagePlayer}
replace all "$rank" with "%arg-3%" in {_4}
replace all "$day" with "%arg-4%" in {_4}
if {tpex.kickPlayer} is "true":
kick arg-2 due to "%{tpex.kickMessage}%"
else:
send "%{tpex.prefix}% %{_4}%" to arg-2
stop trigger
else:
send "%{tpex.prefix}% %{tpex.setDuration}%"
stop trigger
else:
send "%{tpex.prefix}% %{tpex.setGroup}%"
stop trigger
else:
send "%{tpex.prefix}% %{tpex.setPlayer}%"
stop trigger
else:
send "%{tpex.prefix}% %{tpex.wrongCommand}%"
stop triggerSimilar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta