Array

Plugin Reload & API Docs

Avatar

By Scrumplex 30 Apr 2016 07:26

Admin · 2,147,483,647 comments
Stealth_^ wrote

That is weird. I'm using the most recent release, and I'm STILL getting an error, even with your code copy and pasted, in a brand new project. Hmm....

So the problem here is, that I wrote shit.
If you want to set a Permissiongroup then you have to get your ChatCommand object.

ChatCommand testCommandObject = getCommandManager().registerCommand("test", "!test (message) - Don't what this command should do.");

Now we have our testCommandObject variable.
Now we can set a Permissiongroup(optional)

getCommandManager().setCommandPermissionGroup(testCommandObject, getPermissionGroups().get("testpermgroup"));

The problem was that you have to use

 

getCommandManager().setCommandPermissionGroup(/*Your ChatCommand object*/, /*a PermissionGroup object.*/);

I hope this helps

Kind regards


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Stealth_^ 30 Apr 2016 08:07

Member · 55 comments

This is the problem I'm running into:

55cd1753806b0b148bfbe8680b3c7e7f.gif

I also believe I sent you a gist of my code in a PM, Scrumplex.

Last edited by Stealth_^ (30 Apr 2016 08:09)

Avatar

By Scrumplex 30 Apr 2016 13:37

Admin · 2,147,483,647 comments
Stealth_^ wrote

This is the problem I'm running into:

https://gyazo.com/55cd1753806b0b148bfbe8680b3c7e7f.gif

I also believe I sent you a gist of my code in a PM, Scrumplex.

I also replied your pm with an update version


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Stealth_^ 30 Apr 2016 17:33

Member · 55 comments

Hmm, I don't see the PM

Sorry for being so much trouble haha, I'm just trying to get my code to work xD

Avatar

By Liz3 30 Apr 2016 17:40

Member · 9 comments

Belive! we all hate Java in some moments, but after youre gif, please check the Syntax!
Its not usally, that text in "" is marked as error.
Also the marked ; is an indicator for syntax error!

Greedings,

Liz3ga

Last edited by Liz3 (30 Apr 2016 17:40)


16 years old Java Developer and Horse Photographer
Friend of Scrumplex
btw is Liz the name of a Horse
contact on this form if you have questions to me

Avatar

By Stealth_^ 2 May 2016 00:51

Member · 55 comments
Liz3ga wrote

Belive! we all hate Java in some moments, but after youre gif, please check the Syntax!
Its not usally, that text in "" is marked as error.
Also the marked ; is an indicator for syntax error!

Greedings,

Liz3ga

So I copy pasted the code you had listed previously, and I'm getting the same error.

I'm going to try a different IDE and see if that's the problem

Avatar

By Stealth_^ 4 May 2016 04:47

Member · 55 comments

Tried a different IDE, and no change. 😕

Avatar

By Scrumplex 4 May 2016 15:34

Admin · 2,147,483,647 comments

Did you receive the response from me? I sent you an updated version.


The Developer of the Sprummlbot and the Admin of this forum.

Avatar

By Stealth_^ 4 May 2016 16:35

Member · 55 comments

Nope, still shows no response on the PM

Avatar

By Stealth_^ 5 May 2016 05:38

Member · 55 comments

ClientProperty.CONNECTION_CLIENT_IP

Is there a possibility of getting a getIP for clientInfo?

Array