Vitaly Posted September 10, 2017 Share Posted September 10, 2017 Hello. Is there any way to make custom commands that only admins can use. For example i made /heal command and it will restore your health. But is it possible to deny that command for normal players? Link to comment Share on other sites More sharing options...
3 jcsnider Posted September 11, 2017 Share Posted September 11, 2017 There is so much going on in this thread including wrong information, duplicated information, and off topic bickering so I am deleting it all and going over the options you have.  Option A: Make the spawn/execution conditions check for admin powers  If players without admin access try to use this command they will receive a nasty invalid /command message on their screen:   Option B: Leave Spawn/Execution Conditions Empty, and use a Conditional Branch in the Commands  The second option allows you to show the non-admin players a message if you so desire under the "Else" in the conditional branch.  Both of these are tested and working in Intersect Beta 4.2 Shilo and Gravelord 1 1 Link to comment Share on other sites More sharing options...
1 Mcadams Posted September 11, 2017 Share Posted September 11, 2017 Just now, Vitaly said: For moderators yes it shows that you are not an admin. But if your power lvl is 0 then it shows invalid command for me. I set my power level to 0 in that gif and it still showed the message. What does your event look like? Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 7 hours ago, jcsnider said: There is so much going on in this thread including wrong information, duplicated information, and off topic bickering so I am deleting it all and going over the options you have.  Option A: Make the spawn/execution conditions check for admin powers  If players without admin access try to use this command they will receive a nasty invalid /command message on their screen:   Option B: Leave Spawn/Execution Conditions Empty, and use a Conditional Branch in the Commands  The second option allows you to show the non-admin players a message if you so desire under the "Else" in the conditional branch.  Both of these are tested and working in Intersect Beta 4.2 Works, but the second option Else is not working for non admins. Still shows Invalid command. Link to comment Share on other sites More sharing options...
0 Mcadams Posted September 11, 2017 Share Posted September 11, 2017 13 minutes ago, Vitaly said: Works, but the second option Else is not working for non admins. Still shows Invalid command. Works fine for me. Are you sure you're on 4.2? Â Â Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 1 minute ago, MCADAMS said: Works fine for me. Are you sure you're on 4.2? For moderators yes it shows that you are not an admin. But if your power lvl is 0 then it shows invalid command for me. Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 Just now, MCADAMS said: I set my power level to 0 in that gif and it still showed the message. What does your event look like? Hm, my event looks exactly the same. Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 2 minutes ago, MCADAMS said: I set my power level to 0 in that gif and it still showed the message. What does your event look like? Oh it works now, i restarted server and now it works. Thanks alot. Mcadams 1 Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 8 minutes ago, MCADAMS said: I set my power level to 0 in that gif and it still showed the message. What does your event look like? Oh what?? Its actually so weird, if i did exactly the same texts as you then it works. But if i change it to heal and add restore HP then its not working. Try it out yourself. Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 2 minutes ago, Vitaly said: Oh what?? Its actually so weird, if i did exactly the same texts as you then it works. But if i change it to heal and add restore HP then its not working. Try it out yourself. Nevermind.. I deleted all my common events and started new ones, now they are working again. This can be closed, answered. Link to comment Share on other sites More sharing options...
0 Mcadams Posted September 11, 2017 Share Posted September 11, 2017 13 minutes ago, Vitaly said: Oh what?? Its actually so weird, if i did exactly the same texts as you then it works. But if i change it to heal and add restore HP then its not working. Try it out yourself. It appears, to me at least, that having more than one /command as a common event breaks all your /commands? I haven't used the event system a lot so maybe I'm doing something wrong.  https://gfycat.com/TastyHarshHammerheadbird (make sure to turn on HD in the bottom right gif settings if it looks terrible)    Link to comment Share on other sites More sharing options...
0 Vitaly Posted September 11, 2017 Author Share Posted September 11, 2017 1 minute ago, MCADAMS said: It appears, to me at least, that having more than one /command as a common event breaks all your /commands? I haven't used the event system a lot so maybe I'm doing something wrong.  https://gfycat.com/TastyHarshHammerheadbird     Uh not really, mine works perfectly now. Also you have to get those files from here to get more than 1 command event working at the same time.  Mcadams 1 Link to comment Share on other sites More sharing options...
0 Mcadams Posted September 11, 2017 Share Posted September 11, 2017 7 minutes ago, Vitaly said: Uh not really, mine works perfectly now. Also you have to get those files from here to get more than 1 command event working at the same time.  Got it. Looks like our work here is done Vitaly 1 Link to comment Share on other sites More sharing options...
Question
Vitaly
Hello. Is there any way to make custom commands that only admins can use. For example i made /heal command and it will restore your health. But is it possible to deny that command for normal players?
Link to comment
Share on other sites
12 answers to this question
Recommended Posts