OK, I made a plugin and converted it into phar using dev tools. The plugin is working well no issue then I restart the server now the command is shown in the suggestion but it doesn't work. And I restart again it works again and I restart it it doesn't work again and repeats on the loop can someone help me. this is a really weird issue it happens to 90% of the plugin I make
Have you tried learning php Just kidding. Add some "echos" in your code to see which code isn't being executed
I mean i know php lmfao. as i said even with echo. The command works fine but when i restart the server command executes nothing amd restart again it works restart again it dosent work. Its like plugin ahs mood when to work and when not to. Understand what im saying
Hmm, I see. Let me install the plugin and do some things around and try to find out what the problem is. In the meanwhile, could you see if any other plugins in-use are causing it?
The plugin is working perfectly fine for me. I noticed that you wrote PHP: $sender->getInventory()->setItem(3, $item1, true);...$sender->getInventory()->setItem(5, $item, true); As you probably know, this sets(also will replace) the given item to the given inventory slot. Perhaps you're mistaking this as the command not working?