ljacqu
b633b9a005
Create test for change password command
2015-11-21 13:23:18 +01:00
ljacqu
4702a1b82d
Merge ListUtil into StringUtil; refactor HelpSyntaxHelper + create test
...
The HelpSyntaxHelper had suppressed warnings for string concatenation within StringBuilder - the point of the StringBuilder is that it is faster when you use it to concatenate many elements. If you still use string concatenation with + within these calls it beats the purpose.
(cherry picked from commit bb00be2)
2015-11-21 12:12:26 +01:00
ljacqu
115680a363
Create test for HelpSyntaxHelperTest
...
(cherry picked from commit 9a6e96d)
2015-11-21 12:07:21 +01:00
ljacqu
e65319d42c
Add tests for LogoutCommand and RegisterCommand. Add more generic mockUtil
...
(cherry picked from commit 06cfd13)
2015-11-21 12:07:10 +01:00
ljacqu
987e38c5df
Add test for LoginCommand; create AuthMe mock test util
...
Had to create a getter for the Management instance in the AuthMe class for mocking, but fields should generally not be accessed globally. Hopefully soon we will be able to make the field private.
(cherry picked from commit f1a0022)
2015-11-21 12:07:00 +01:00
ljacqu
3934d67330
Command refactor - remove unused fields, reduce variable "scope"
...
Minor refactorings in the command section for familiarization.
1. Removed suppressWarning("Deprecated") - the method is deprecated for a reason and we should be made aware of that.
2. Removed same javadoc on ExecutableCommand implementation that just had the same as the interface (this is just clutter; @Override signals that it's an implementing class and a developer can view the superclass javadoc)
3. In places where the AuthMe instance was retrieved at the top but used at the very bottom, moved it to the bottom to reduce its "scope"
(cherry picked from commit 45a50f3)
2015-11-21 12:06:49 +01:00
Tim Visée
504106f835
Added base of setGroup method in permissions manager
2015-11-21 03:01:45 +01:00
Tim Visée
06d6bd4a7e
Fixed formatting in PermissionsManager class
2015-11-21 02:43:32 +01:00
Tim Visée
5ff9b7550e
Combined Plugin and Server listener, removed plugin listener
2015-11-21 02:33:59 +01:00
Gabriele C
bd1f868c6d
standard javadoc
2015-11-21 01:31:18 +01:00
Gabriele C
118c79401a
Prepare the project for javadocs
2015-11-21 01:27:06 +01:00
Gabriele C
adcd70b91d
auto cleanup
2015-11-21 01:15:52 +01:00
Gabriele C
ada992785c
login process cleanup
2015-11-21 00:36:46 +01:00
Gabriele C
68ae6ee701
remove useless inventory store event
2015-11-20 23:59:25 +01:00
Gabriele C
d6355adb51
cleanup
2015-11-20 23:52:20 +01:00
Gabriele C
ba483af807
fix project layout
2015-11-20 23:43:26 +01:00
Gabriele C
35ef562d35
Update pom.xml
2015-11-20 23:36:25 +01:00
Gabriele C
4d2e48ede7
Merge pull request #67 from ljacqu/unit-tests
...
Unit tests
2015-11-20 23:23:49 +01:00
ljacqu
84de22c9c0
Refactor Log4JFilter and improve branch coverage
2015-11-20 23:17:50 +01:00
ljacqu
019390dfe0
Add unit test dependencies and create test for Log4JFilter
...
Note that the new dependencies in the pom have the scope set to test, so
they will not be included into the built artifact. A first test class
illustrates the general way unit tests can be set up with JUnit, Mockito
and Hamcrest matchers.
2015-11-20 23:00:13 +01:00
Tim Visée
4978f195f8
Use different logger in permissions manager
2015-11-20 20:50:45 +01:00
Tim Visée
9932242f6f
Merge pull request #66 from AuthMe-Team/PermissionsManager
...
Created permissions manager, with proper permissions support
2015-11-20 20:42:06 +01:00
Tim Visée
a4b2306e16
Added some comments to legacy permissions methods
2015-11-20 20:23:52 +01:00
Tim Visée
3500ee6fb7
Replaced code that used legacy deprecated permissions methods
2015-11-20 20:23:03 +01:00
Tim Visée
33ca2691b2
Updated deprecated information for legacy permission methods
2015-11-20 20:16:02 +01:00
Tim Visée
8ba126b681
Updated permissions checking system in command handler
2015-11-20 20:13:23 +01:00
Tim Visée
10b69403fc
Deprecated legacy permissions methods
2015-11-20 20:11:46 +01:00
Tim Visée
ffd36ba325
Updated authmePermissable methods in main class
2015-11-20 20:08:02 +01:00
Tim Visée
eae6eb384f
Updated soft depends
2015-11-20 20:04:59 +01:00
Tim Visée
5e7e7a14fd
Added comment to permissions manager
2015-11-20 20:03:44 +01:00
Tim Visée
71e24fe80a
Improved permissions manager
2015-11-20 20:01:43 +01:00
Tim Visée
82e65250b8
Added permissions manager to main class, along with a setup and get method
2015-11-20 20:01:31 +01:00
Tim Visée
f17f1fe5fb
Fixed plugin listener
2015-11-20 19:56:06 +01:00
Tim Visée
5df1dc2dfb
Created plugin listener
2015-11-20 19:55:19 +01:00
Tim Visée
66365d6cf9
Removed unused code
2015-11-20 19:53:00 +01:00
Tim Visée
fa28bb6d20
Added PermissionsEx dependency
2015-11-20 19:50:20 +01:00
Tim Visée
facc09a933
Added PermissionsEx repository
2015-11-20 19:49:55 +01:00
Tim Visée
1acbd99002
Added required permissions library for bPermissions
2015-11-20 19:48:48 +01:00
Tim Visée
a629d99922
Added required permissions libraries
2015-11-20 19:46:03 +01:00
Tim Visée
e3c4655b19
Added new permissions manager class, based on DungeonMaze's one
2015-11-20 19:43:10 +01:00
DNx5
9a79332933
add getPlayer method into Utils class
2015-11-17 09:32:33 +07:00
DNx5
3e1c7edb2d
reorder isAuthAvailable call
2015-11-17 08:47:14 +07:00
DNx5
6bc5bb3cb1
optimize some code.
2015-11-17 06:54:24 +07:00
DNx5
f6c6a7c6d4
update and cleanup PlayerAuth
2015-11-17 05:04:34 +07:00
Xephi
4a49809ff2
Change to is Empty
2015-11-16 18:52:54 +01:00
DNx5
6f1af92a58
remove speed already done in join process
2015-11-15 04:49:03 +07:00
DNx5
1af937651c
fix geoip lagging if server cant download the file.
2015-11-15 04:24:36 +07:00
Alexandre Vanhecke
f533d6462b
Merge pull request #65 from Xephi/master
...
Merge pull request #266 from AuthMe-Team/master
2015-11-11 01:54:38 +01:00
Alexandre Vanhecke
e509766be8
Merge pull request #266 from AuthMe-Team/master
...
Rewrite Email system
2015-11-11 01:54:16 +01:00
Xephi59
8dadcbd7dd
Remove useless Exclusion
2015-11-11 01:52:45 +01:00