#MyCommands and Screeneffects help?

1 messages · Page 1 of 1 (latest)

violet moat
#

Im having this issue with a plugin called MyCommand and what I am trying to do is run two commands in one. So, when a player types /spawn, it will run two commands;

  • /screeneffects fullscreen black 30 30 30 freeze $player
  • /spawn $player.

This will let me be able to create a fade to black transition before teleporting to spawn, but I keep getting this error in the console.

[Server thread/INFO]: domdaws issued server command: /spawn
[Server thread/INFO]: domdaws issued mycmd (spawn) command /spawn
[ Server thread/INFO]: Only players can execute commands.

So I need to find an alternative to having someone run the command /spawn. I tried doing /warp spawn and that worked, but I do not like the way it says "warping to spawn" when it happens.

I want them to run the command /spawn because it also prompts custom messages that I have set up to show in chat when the command runs. Any suggestions????

mortal hamlet
#

can you send your mycmd config for this command?

#

I'm thinking that this [ Server thread/INFO]: Only players can execute commands. is the console trying to run mycmd:spawn

#

to fix it, you could probably do /essentials:spawn $player instead of /spawn $player

violet moat
#

yeah, i am going to get it over to you right now. One second. I have to load up my computer @mortal hamlet

#

spawn:
command: /spawn
type:
- RUN_CONSOLE
permission-required: false
runcmd:
- /screeneffect fullscreen BLACK 30 30 30 freeze $player
- $delay$/essentials:spawn $player
delaytimer: 3

#

I just implemented the /essentials:spawn part

#

it still gave me kick back

#

[16:22:19] [Server thread/INFO]: domdaws issued server command: /spawn
[16:22:19] [Server thread/INFO]: domdaws issued mycmd (spawn) command /spawn

mortal hamlet
#

did it say [ Server thread/INFO]: Only players can execute commands. again? @violet moat

violet moat
#

Yeah

#

@mortal hamlet solely because the command /spawn $player cannot be ran through the console

wind thorn
#

it can totally be run from console

#

that's how you force a player to be sent to the spawn

violet moat
# wind thorn that's how you force a player to be sent to the spawn

do you know what I would have to put into the console for them to teleport to spawn though as if they were running the /spawn command? That's really my main issue is that if i type /spawn domdaws in the console, it still gives me the error that I cannot use that command in the console

#

and only players can use it

mortal hamlet
#

can you just run it as a player then?

#

i don't see why not

violet moat
mortal hamlet
#

essentials:spawn

real shore
#

sorry for my english 😉

violet moat
violet moat
#

Would anyone know how I could stop the command from looping constantly?

#

When someone types /spawn it just loops in the console

wind thorn
#

loop?

violet moat
#

if someone types /spawn it continuously loops through the console using the plugin MyCommand

#

because I am trying to make /spawn run two commands at once

#

so im using MyCommand

#

but I don't know how to tell MyCommand to only run the command once

#

the screeneffect I have applied to go with the /spawn command will constantly loop a fade to black animation