Author Topic: Commands not responding  (Read 4436 times)

0 Members and 1 Guest are viewing this topic.

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Commands not responding
« on: April 09, 2008, 11:05:05 pm »
How can I get a command to work for users not in the bot's local database? For example:
Code: [Select]
register.registerCommandPlugin(this, "spam", 1, false, "", "spam", "Kicks an account for spamming", null);
Code: [Select]
out.sendText("/kick " + args[0] + " Spamming");
Works for me, but not for someone who isn't in the database. I tried <null> in there too, but no result :(
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Commands not responding
« Reply #1 on: April 10, 2008, 08:21:17 pm »
Try making a new flag that isn't being used, and give "*" that flag. That's the easy/cheater way that I'd do it.

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Commands not responding
« Reply #2 on: April 12, 2008, 09:13:14 pm »
Worked, using a different method since I didn't fully understand in the above post. My temporary solution is starting to show how temporary it is T_T
« Last Edit: April 19, 2008, 11:17:45 pm by SarCaSTiC »
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Commands not responding
« Reply #3 on: April 19, 2008, 11:16:21 pm »
Try making a new flag that isn't being used, and give "*" that flag. That's the easy/cheater way that I'd do it.

Can you explain it please? I am kind of confused :o
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Offline Hdx

  • The Hdx!
  • Full Member
  • ***
  • Posts: 311
  • <3 Java/Cpp/VB/QB
    • View Profile
Re: Commands not responding
« Reply #4 on: April 20, 2008, 02:04:42 pm »
Set the flags for the command to something like Q
And then jsut do /add * Q
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
 [19:59:04.000] <DeadHelp> We don't like customers.
 [19:59:05.922] <DeadHelp> They're assholes
 [19:59:08.094] <DeadHelp> And they're never right.

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Commands not responding
« Reply #5 on: April 21, 2008, 09:16:42 pm »
That was my temporary alternative solution lol
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Offline Hdx

  • The Hdx!
  • Full Member
  • ***
  • Posts: 311
  • <3 Java/Cpp/VB/QB
    • View Profile
Re: Commands not responding
« Reply #6 on: April 21, 2008, 11:50:22 pm »
And 0/-1 dosent work?
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
 [19:59:04.000] <DeadHelp> We don't like customers.
 [19:59:05.922] <DeadHelp> They're assholes
 [19:59:08.094] <DeadHelp> And they're never right.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Commands not responding
« Reply #7 on: April 22, 2008, 09:46:43 am »
What's wrong with the temporary solution? That's how I've always done it.

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Commands not responding
« Reply #8 on: April 22, 2008, 04:13:45 pm »
restarting the bot desynchronizes the list (people may have joined or left since)
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Commands not responding
« Reply #9 on: April 22, 2008, 04:42:07 pm »
That doesn't sound like it makes sense to me.

Are you doing this?

.setuser * 'Q'

Then requiring the command to have 'Q'?

Offline Lance

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: Commands not responding
« Reply #10 on: April 30, 2008, 04:48:00 pm »
I've resolved this. Thanks.

Yes, I was doing that.
« Last Edit: May 05, 2008, 04:27:00 pm by SarCaSTiC »
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!