#command logger help

1 messages ยท Page 1 of 1 (latest)

storm forge
#

use the log effect in vanilla skript, you can see its example usage in docs

twin robin
#

where is that

#

its my first day using skirpt btw

#

@storm forge

storm forge
#

in the effects section

twin robin
#

bro ๐Ÿ˜ญ

#

i js want one command logger for a specific command

#

that shi teaches a new language

storm forge
#

click on effects and search log

twin robin
twin robin
twin robin
storm forge
#

its not

#

literally the first result when you go by effects and search log

twin robin
#

oh skull

storm forge
#

you can even see the examples where it shows how to both log to the console and to a file of your choosing

twin robin
storm forge
#

you are still searching by events and not effects

twin robin
#

oh

storm forge
#

in the dropdown it says effects

twin robin
#

found it!

#

@storm forge what do i replace with what to make the /login command get saved in a specific file or area

storm forge
#

you just did

twin robin
#

whar

#

btw i js want /login command to get saved

storm forge
#

gotta go find the file it created, or adjust the path to be in a better place

twin robin
#

nothing else

storm forge
#

so then check the command that was executed

#

on command "login" or use the command expression

twin robin
#

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

storm forge
#

i just gave you a line to use directly

twin robin
#

๐Ÿ˜ญ

storm forge
#

literally on command "login":

twin robin
#

ohhh

#

i get it now

#

but wait

#

how do i implement it exactly

storm forge
#

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

twin robin
twin robin
#

please can you write for me bro

#

ill never forget this favor

#

@storm forge

rich mountain
#

thats not what we do here

twin robin
#

๐Ÿ’”

#

i wonder whats wrong here

cloud cloak
#

on join:?

twin robin
twin robin
cloud cloak
#

what were you trying to do

twin robin
#

ok so

#

i just want to make a SUPER simple command logger for ONE command

#

the command is /register

rich mountain
#

for starters, you forgot a :

twin robin
cloud cloak
#

at the end

twin robin
#

oke

#

wait

#

end of?

cloud cloak
#
command login:
 trigger:
  log blah blah blah
rich mountain
#

at the end of an event/other section.

please put aside some time to look at a tutorial.

wind turretBOT
twin robin
rich mountain
#

"I dont want to learn a language to use the language"

twin robin
rich mountain
#

you need to put a commands code within a trigger:

twin robin
#

x8giht

#

can you js make me da skirpt

#

๐Ÿ™

rich mountain
#

no.

twin robin
#

aw

rich mountain
#

(its also script)

twin robin
#

skirpt skirpt

cloud cloak
#

the point of this discord is to help others, to learn, not spoon feed

rich mountain
#

script is the file, skript is the plugin

wind turretBOT
twin robin
twin robin
rich mountain
#

you dont need to send the same error if you havent tried to apply what you've been told

cloud cloak
#
command login:
 trigger:
  log blah blah blah
twin robin
#

;p

#

I think it worked

rich mountain
#

indentation looks off to me. You should add the same amount of spaces each time

twin robin
#

YES it did

rich mountain
rich mountain
# twin robin

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@@ @@@@ @@@@@@ ........

twin robin
rich mountain
#

there you go

#

read the error

#

you want 2 spaces on that line

twin robin
#

ok ok

#

it did not make the log file tho

#

not workrork

#

HELP

dusky rose
#

i feel like you have to make the file

twin robin
twin robin
twin robin
#

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

twin robin
stable owl
#

Do command register <string>:

twin robin
#

ohh alr

#

now lemme test it

twin robin
#

@stable owl its not working ;[

#

no errors while reloading

stable owl
chrome heron
#

There is already an example of command logging linked to the doc

twin robin
rich mountain
#

then change the message and file path

chrome heron
#

And log it

#

Itโ€™s simple as that

rich mountain
#

@twin robin are you trying to log a command from another plugin, or create a command in skript and then log that?

twin robin
twin robin
rich mountain
#

then you should not be defining your own command within skript.

rich mountain
twin robin
#

Alright i get it now ig

#

but theres a problem

#

in the code or smth idk

twin robin
#

@rich mountain

rich mountain
#

you are still defining a new command

#

and dont ping me when you see that I am already typing.

rich mountain
twin robin
#

ohh right

rich mountain
#

no trigger now

twin robin
rich mountain
#

because thats not the event...

#

use the event, then inside the event, check if the command is /register..

#

also please turn off reply pings

twin robin
#

mb

#

lol

rich mountain
twin robin
#

and whats that

#

๐Ÿ˜ญ

rich mountain
#

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?

twin robin
#

can you tell me where do i use the if thingy

rich mountain
#

please. just start by literally copy-pasting the example as ive already suggested

twin robin
#

Like this?

rich mountain
#

mhmm

twin robin
#

ok next

rich mountain
#

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

twin robin
#

is it %full_command%

rich mountain
#

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":

twin robin
rich mountain
#

its not a placeholder, its an expression

twin robin
#

oh i see

twin robin
#

a new seprate line or shud i replace smth with it

rich mountain
#

under on command:

#

because you want to check inside that event

twin robin
#

its not working

rich mountain
#

you need to indent properly

twin robin
rich mountain
#

also I do belive full command will use arguments as well. You might want just command or full command starts with ...

rich mountain
#

you need to add spaces after every : to put lines within the section

rich mountain
#

same as you added to line 2 with respect to line 1

twin robin
rich mountain
#

full means its going to take the arguments of the command as well

dusky rose
#

or remove the and :

twin robin
#

ok i came up with new code somehow

rich mountain
#

you dont need the stop there

twin robin
#

ok hol on

#

ok ran into problems

rich mountain
#

just command probably

twin robin
#

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

rich mountain
#

"is not"

twin robin
#

ngl this thing is eating my brain cells like crazy

#

no logs folder

#

ok i fixed that TOO

#

but now its the same problem

#

its logging all commands

rich mountain
#

Debug

#

Broadcast the command so we can see what it is