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 Gravelord and Shilo 1 1 Link to comment Share on other sites More sharing options...
1 Mcadams Posted September 11, 2017 Share Posted September 11, 2017 On 9/11/2017 at 5:53 PM, 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. Expand 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 On 9/11/2017 at 9:41 AM, 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 Expand 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 On 9/11/2017 at 5:40 PM, Vitaly said: Works, but the second option Else is not working for non admins. Still shows Invalid command. Expand 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 On 9/11/2017 at 5:52 PM, MCADAMS said: Works fine for me. Are you sure you're on 4.2? Expand 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 On 9/11/2017 at 5:54 PM, MCADAMS said: I set my power level to 0 in that gif and it still showed the message. What does your event look like? Expand 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 On 9/11/2017 at 5:54 PM, MCADAMS said: I set my power level to 0 in that gif and it still showed the message. What does your event look like? Expand 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 On 9/11/2017 at 5:54 PM, MCADAMS said: I set my power level to 0 in that gif and it still showed the message. What does your event look like? Expand 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 On 9/11/2017 at 6:03 PM, 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. Expand 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 On 9/11/2017 at 6:03 PM, 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. Expand 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 On 9/11/2017 at 6:16 PM, 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 Expand 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 On 9/11/2017 at 6:21 PM, 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. Expand 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