From fa46dc690b1fac7b3c90c761868b41eb75c2d503 Mon Sep 17 00:00:00 2001 From: games647 Date: Tue, 3 Nov 2015 18:13:50 +0100 Subject: [PATCH] Add changelog and travis integration for automatic tests --- .travis.yml | 15 +++++++++++ CHANGELOG.md | 27 +++++++++++++++++++ .../listener/StartPacketListener.java | 3 +-- src/main/resources/plugin.yml | 8 +++--- 4 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 .travis.yml create mode 100644 CHANGELOG.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d4181e73 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..23360448 --- /dev/null +++ b/CHANGELOG.md @@ -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 \ No newline at end of file diff --git a/src/main/java/com/github/games647/fastlogin/listener/StartPacketListener.java b/src/main/java/com/github/games647/fastlogin/listener/StartPacketListener.java index 72159517..e73f8a91 100644 --- a/src/main/java/com/github/games647/fastlogin/listener/StartPacketListener.java +++ b/src/main/java/com/github/games647/fastlogin/listener/StartPacketListener.java @@ -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 diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b09c4079..1c2b0a33 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -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: / [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' \ No newline at end of file + description: 'Label other people as premium' \ No newline at end of file