VoidSpawn

VoidSpawn

133k Downloads

[sugestion] Mycmd plugin support

C0ffeL0Ve opened this issue ยท 2 comments

commented

My server has two worlds One for spawn and another for construction, So i made a mycommand script that sends the player to a random location when the Voidspawn detects that the user jumped from the spawn area to the void.

My problem is that one of the two plugins don't like to write the custom command that i made, When voidspawn detects that the user has entered the void it just send a bunch of errors both on console and chat.

I will paste my script in here if there is a solution for this or is just a plugin problem.

mycommand script: https://pastebin.com/158USRqm
voidspawn world.yml: https://pastebin.com/gTXr4guJ

Is there some way to fix this?, I looked thought the issues from this github and mycommand issues page but i didn't found anything useful.

Thank you

commented

Hey @C0ffeL0Ve,

Would you be able to provide the errors in the console and chat here to help diagnose the problem?

However, looking at this I think the problem comes back to that you are using the 'op:' functionality for this command. What this does behind the scenes is run the command as the console. This means that it isn't actually the player running the command. This is where I think mycommand is running into a problem since it is expecting it to be called by a player, not the console.

One way of getting around this is removing 'op:'. Alternatively, you could try passing the player username to the command which then could be used in the mycommand command.

commented

sorry for the wait, Here is the screenprint from the console http://prntscr.com/12yaj78 and this is the screenshot withouth op: http://prntscr.com/12yalbw and so i also tried adding a variable to call a player and the same error apeared on the console. i just made a new command /spfalltwrld (player)

I tried both of the 3 thing before posting a issue in here thats why maybe its Voidspawn or Mycmd problem that i thought of

i dont know why but i can execute /spfalltwrld (playername) on the game but i cant do it on the console