Enable Command Not Working

Status
Not open for further replies.

Jwake

Member
Feb 12, 2016
140
10
Hello. So I added a few commands, now removed, and my enable command stopped working? ( ) - They were working earlier.
I've reverted the changes, but still nothing. In the database, the command is there and set up correctly, it's set up in visual studio correctly. It just doesn't work :/

Help pls?
 

cain

insert html
May 12, 2012
180
74
Hello. So I added a few commands, now removed, and my enable command stopped working? ( ) - They were working earlier.
I've reverted the changes, but still nothing. In the database, the command is there and set up correctly, it's set up in visual studio correctly. It just doesn't work :/

Help pls?

Did you tamper with the permissions table and give :enable to VIP users? If so, check your VIP rank.

I don't have my emulator to check, are you getting any errors when running your emulator or in visual studio? If so, post them here.
 

Jwake

Member
Feb 12, 2016
140
10
Did you tamper with the permissions table and give :enable to VIP users? If so, check your VIP rank.

I don't have my emulator to check, are you getting any errors when running your emulator or in visual studio? If so, post them here.
I get 0 errors, and I've not swapped the permissions or anything.
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
As cain said try see if you set it as a VIP rank only such as having user id 1 as the group permission and 2 in the subscription ID making it only accessible via Gold VIP Members. I mean when I'm doing a hotel I just normally set my rank to owner and vip_rank to 3, not sure if you do the same thing.

If that's not the case, whatever you added may have caused issues with the command not sure. If you go to your CommandHandler.cs or whatever it's called, you should see a line of code as similar as this:

Code:
Register("enable", new EnableCommand());

Please, if this is missing add it, or if it's wrong my bad.

----------------------------------------------------------------------
If you get a green line or red line underneath "EnableCommand" just go to the Enable command, open it up in visual studio, you might see something like this:

Code:
internal sealed class EnableChatCommand: IChatCommand

I've set an example. The red line under "EnableCommand" in your RoomCommand means the class cannot be found as it's looking for a different class set in the enable command file as they don't match you'll needa correct it. You can do it by doing 2 ways, either replace "EnableChatCommand" to "EnableCommand" or just replace "EnableCommand" to "EnableChatCommand" and then the text should appear as green.

EnableChatCommand in this reply is just an example, you'll need to find it if this is actually the issue causing it.

Hope this helps you, sorry if it didn't
 

Jwake

Member
Feb 12, 2016
140
10
I got this fixed. I accidentally deleted this.Register("enable", new EnableCommand()); However, I appreciate all the help!
 
  • Like
Reactions: Joe
Status
Not open for further replies.

Users who are viewing this thread

Top