Add changelog and travis integration for automatic tests

This commit is contained in:
games647
2015-11-03 18:13:50 +01:00
parent fdc2772f38
commit fa46dc690b
4 changed files with 48 additions and 5 deletions

15
.travis.yml Normal file
View File

@ -0,0 +1,15 @@
# Use https://travis-ci.org/ for automatic tests
# speed up testing http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false
# This is a java project
language: java
script: mvn compile test
# We run on 7+
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8

27
CHANGELOG.md Normal file
View File

@ -0,0 +1,27 @@
######0.2.3
* Remove useless AuthMe forcelogin code
* Send a kick message to the client instead of just "Disconnect"
* Reformat source code
* Fix thread safety for fake start packets (Bukkit.getOfflinePlayer doesn't look like to be thread-safe)
* Added more documentation
######0.2.2
* Compile project with Java 7 :(
######0.2.1
* A couple of security fixes (premium players cannot longer steal the account of a cracked account)
* Added a /premium command to mark you as premium player
#####0.2
* Added support for CrazyLogin and LoginSecurity
* Now minecraft version independent
* Added debug logging
* Code clean up
* More state validation
* Added better error handling
#####0.1
* First release

View File

@ -117,8 +117,7 @@ public class StartPacketListener extends PacketAdapter {
* key=public server key
* verifyToken=random 4 byte array
*/
PacketContainer newPacket = protocolManager
.createPacket(PacketType.Login.Server.ENCRYPTION_BEGIN, true);
PacketContainer newPacket = protocolManager.createPacket(PacketType.Login.Server.ENCRYPTION_BEGIN, true);
newPacket.getSpecificModifier(PublicKey.class).write(0, plugin.getServerKey().getPublic());
//generate a random token which should be the same when we receive it from the client

View File

@ -11,7 +11,9 @@ description: |
website: ${project.url}
dev-url: ${project.url}
# Without Protocollib the plugin does not work at all
depend: [ProtocolLib]
# Auth plugins
softdepend:
- xAuth
- AuthMe
@ -20,14 +22,14 @@ softdepend:
commands:
${project.artifactId}.:
description: 'Marks the invoker or the player specified as premium'
description: 'Label the invoker or the player specified as premium'
aliases: [prem, premium, loginfast]
usage: /<command> [player]
permission: ${project.artifactId}.command.premium
permissions:
${project.artifactId}.command.premium:
description: 'Mark themselves as premium using a command'
description: 'Label themselves as premium using a command'
default: true
${project.artifactId}.command.premium.others:
description: 'Mark other people as premium'
description: 'Label other people as premium'