#command logger help
1 messages ยท Page 1 of 1 (latest)
in the effects section
bro ๐ญ
i js want one command logger for a specific command
that shi teaches a new language
click on effects and search log
omw
this is what it gave me
oh skull
you can even see the examples where it shows how to both log to the console and to a file of your choosing
you are still searching by events and not effects
oh
in the dropdown it says effects
found it!
@storm forge what do i replace with what to make the /login command get saved in a specific file or area
you just did
gotta go find the file it created, or adjust the path to be in a better place
nothing else
so then check the command that was executed
on command "login" or use the command expression
bro
i know nothing wth is a command expression
can u js write me one skirpt in which it stores all off the /register commands in a specific file for all players
i just gave you a line to use directly
right here, please make sure to read
literally on command "login":
look at your code and look at what i supplied
im not writing it for you, you are a big boy and im not here to babysit, thats not what this server is for, if you still cant get it i suggest reading a basic skript tutorial so you understand what you are writing
first off all i stole that one line too from google
im not a big boy ;p
please can you write for me bro
ill never forget this favor
@storm forge
thats not what we do here
on join:?
wdym
^^^
what were you trying to do
ok so
i just want to make a SUPER simple command logger for ONE command
the command is /register
where does it go
at the end
command login:
trigger:
log blah blah blah
at the end of an event/other section.
please put aside some time to look at a tutorial.
x8ight suggests that you read https://sovdee.gitbook.io/skript-tutorials/
no i dont want to learn a whole new language js to make one skript
"I dont want to learn a language to use the language"
peak
you need to put a commands code within a trigger:
no.
aw
(its also script)
skirpt skirpt
the point of this discord is to help others, to learn, not spoon feed
script is the file, skript is the plugin
ohh i see
hol on
.
x8ight suggests that you read Sovde's Custom Command Tutorial
and whats a trigger
you dont need to send the same error if you havent tried to apply what you've been told
command login:
trigger:
log blah blah blah
please just read
indentation looks off to me. You should add the same amount of spaces each time
YES it did
type shi?
Please use /sk reload FILE_NAME not /sk reload all....
Got it
Here it looks like you have command login: @trigger: @@@@@log ...
where @ is a space
it should be increasing by the same amount every section
so @ @@ @@@ @@@@ ....or@@ @@@@ @@@@@@ ........
i feel like you have to make the file
but does this script look ok
thats not working either
ok ran into another problem:
if i write /register nothing happens. and if i do /register <password> the script wont allow me to do it
send code

There is already an example of command logging linked to the doc
breh i dont understnad it. and i need a logger for just one specific command
you can literally copy and paste it
then change the message and file path
Just check if itโs the command you want
And log it
Itโs simple as that
@twin robin are you trying to log a command from another plugin, or create a command in skript and then log that?
I'm trying to log a command from another plugin using script the logged command should get stored in a file
i dont get it ๐ญ
then you should not be defining your own command within skript.
the example is what you want
you are still defining a new command
and dont ping me when you see that I am already typing.
you are creating a new /register in skript, not using the on command: to detect players using commands as is literally in the example.
ohh right
is this right
no trigger now
because thats not the event...
use the event, then inside the event, check if the command is /register..
also please turn off reply pings
how tho
with an if statement
this is why we recommended looking at tutorials. we are here to help, but we shouldnt have to explain a list of things that are easily available in a basic tutorial
if you arent willing to look at a tutorial, why should we be willing to explain the same information?
cuz ion wanna read a 1000 word long essay js to make one command
can you tell me where do i use the if thingy
please. just start by literally copy-pasting the example as ive already suggested
Like this?
mhmm
ok next
now thats gonna log all commands for you. Look at the messages it logs ("%player% just executed %full command%"), and figure out what the expression for the command is
is it %full_command%
i dont know where you got the _ from, but yes.
so now you can use that in an if statement. if full command == "your command here probably":
i never saw a space in a placeholder thats why
its not a placeholder, its an expression
oh i see
wait where does that go
a new seprate line or shud i replace smth with it
you need to indent properly
also I do belive full command will use arguments as well. You might want just command or full command starts with ...
yes, that means your indentation is wrong.
you need to add spaces after every : to put lines within the section
how many do i add here
same as you added to line 2 with respect to line 1
and what does that mean
full means its going to take the arguments of the command as well
you dont need the stop there
just command probably
ok lemme read dis full
ok done
it was fun btw but here comes another problem
oh hold on
_
YES
OMG YES
I DID IT
GUYSSS
I DID IT
wait a secoand
this is logging ALL the commands ๐
i js need /register
"is not"