CommandLog (SKRIPT)
0.1v betaBasic CommandLog made with Skript. | cmdlog commandlog commandlogger command log logger saver
This is a simple CommandLog Skript...
Where are the config and the log?
Log: plugins/CMDLog/commands.log
Config: plugins/CMDLog/config.yml
Commands:
/cmdlog - op
>> Says if commands get saved.
Variables:
$dateTime - Shows the date and the time, like "2/24/19 12:32 AM".
$player - Shows the players name, like "Minecoll_YT".
$cmd - Shows the full cmd with /, like "/deop Minecoll_YT".
$world - Shows the player's current world, like world.
Dependencies:
➥➤ Skript
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[§cCMDLog§8]'
format: '>> $dateTime | $player > $cmd'
My Code: (Don't change or upload this)
on load:
if folder "plugins/CMDLog" doesn't exists:
create folder "plugins/CMDLog"
if file "plugins/CMDLog/config.yml" doesn't exists:
create file "plugins/CMDLog/config.yml"
wf "##" to "plugins/CMDLog/config.yml"
wf "## " to "plugins/CMDLog/config.yml"
wf "## Copyright C 2018- 2019" to "plugins/CMDLog/config.yml"
wf "## >> You are not allowed to copy or upload my code." to "plugins/CMDLog/config.yml"
wf "## >> Skript made by Minecoll_YT | griefhub.de" to "plugins/CMDLog/config.yml"
wf "## " to "plugins/CMDLog/config.yml"
wf "##" to "plugins/CMDLog/config.yml"
wf " " to "plugins/CMDLog/config.yml"
wf "key: '7vt35765tv76t5vw769n5t765twv7577t5w487qv5v7435znt7v7nv587n95vwz87n95zvn7895vn795vn795vtwn79z75nt9v7n9zt5vw7zn9t5v3wnz795tvzn79t5vw7zn9t5vw7zntvw7z9nt5vw79znt5vw37z9nt5vw7z9nt5v7zn9t5vz97nw79zn5tvw97zn5vtw97zn5tvw79zn5tvw97znt5vw97zn5tvwn79z5tv79znwz79nt5vw479znt5vw49nz7t5vwnz79t5vwzn79vtw9z7n5tvwz9n78zn9tw5vnz9t5vw9zntw5v9zn8wt5vzwt5'" to "plugins/CMDLog/config.yml"
wf "version: '0.1v beta'" to "plugins/CMDLog/config.yml"
wf "## >>> Dont change the version & key!" to "plugins/CMDLog/config.yml"
wf "enabled: true" to "plugins/CMDLog/config.yml"
wf " " to "plugins/CMDLog/config.yml"
wf " " to "plugins/CMDLog/config.yml"
wf "prefix: '&8[&cCMDLog&8]'" to "plugins/CMDLog/config.yml"
wf "format: '>> $dateTime | $player > $cmd'" to "plugins/CMDLog/config.yml"
set {pm.key} to coloured value "key" get of "plugins/CMDLog/config.yml"
set {pm.version} to coloured value "version" get of "plugins/CMDLog/config.yml"
set {pm.enabled} to coloured value "enabled" get of "plugins/CMDLog/config.yml"
set {pm.prefix} to coloured value "prefix" get of "plugins/CMDLog/config.yml"
set {pm.format} to coloured value "format" get of "plugins/CMDLog/config.yml"
wait 0.1 ticks
set {_key} to text from "https://pastebin.com/raw/4BMpXSLa"
if {_key} is not {pm.key}:
send "&0" to console
send "%{pm.prefix}% &4Skript don't work! (wrongKey)" to console
send "&0" to console
loop all players:
if loop-player has permission "op":
send "&0" to loop-player
send "%{pm.prefix}% &4Skript don't work! (wrongKey)" to loop-player
send "&0" to loop-player
set {pm.enabled} to false
stop trigger
else:
send "%{pm.prefix}% &aKey O.K." to console
set {_version} to text from "https://pastebin.com/raw/UiUABkpM"
if {_version} is not {pm.version}:
send "&0" to console
send "%{pm.prefix}% &cPlease download the new Version of this Skript..." to console
send "&0" to console
else:
send "%{pm.prefix}% &aYou have the last Version!" to console
stop trigger
command /cmdlog:
permission: op
trigger:
if {pm.enabled} is "true":
send "%{pm.prefix}% &aCommands get saved."
else:
send "%{pm.prefix}% &cCommands don't get saved."
stop trigger
on command:
if {pm.enabled} is "true":
if file "plugins/CMDLog/commands.log" doesn't exists:
create file "plugins/CMDLog/commands.log"
wf "##" to "plugins/CMDLog/commands.log"
wf "## " to "plugins/CMDLog/commands.log"
wf "## Copyright C 2018- 2019" to "plugins/CMDLog/commands.log"
wf "## >> You are not allowed to copy or upload my code." to "plugins/CMDLog/commands.log"
wf "## >> Skript made by Minecoll_YT | griefhub.de" to "plugins/CMDLog/commands.log"
wf "##" to "plugins/CMDLog/commands.log"
wf "## >> All logged commands:" to "plugins/CMDLog/commands.log"
wf " " to "plugins/CMDLog/commands.log"
set {_format} to {pm.format}
replace all "$dateTime" with "%now%" in {_format}
replace all "$player" with "%player%" in {_format}
replace all "$cmd" with "/%full command%" in {_format}
replace all "$world" with "%player's world%" in {_format}
wf "%{_format}%" to "plugins/CMDLog/commands.log"
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