Update missing copyright

This commit is contained in:
GregTCLTK 2020-01-21 08:27:49 +01:00
parent 3df08c5e13
commit 17b63d09ef
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
3 changed files with 30 additions and 8 deletions

View file

@ -1,5 +1,17 @@
/* /*
* @author Hax / Hax6775 / Schlauer_Hax * Copyright 2019-2020 GregTCLTK and Schlauer-Hax
*
* Licensed under the GNU Affero General Public License, Version 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/agpl-3.0.en.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
package com.bbn.hadder; package com.bbn.hadder;

View file

@ -1,5 +1,17 @@
/* /*
* @author Hax / Hax6775 / Schlauer_Hax * Copyright 2019-2020 GregTCLTK and Schlauer-Hax
*
* Licensed under the GNU Affero General Public License, Version 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/agpl-3.0.en.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
package com.bbn.hadder; package com.bbn.hadder;

View file

@ -53,7 +53,7 @@ public class StarboardListener extends ListenerAdapter {
if (rethink.hasStarboardChannel(e.getGuild().getId())) { if (rethink.hasStarboardChannel(e.getGuild().getId())) {
e.getTextChannel().retrieveMessageById(e.getMessageId()).queue( e.getTextChannel().retrieveMessageById(e.getMessageId()).queue(
msg -> { msg -> {
Integer stars = 0; int stars = 0;
for (MessageReaction reaction : msg.getReactions()) { for (MessageReaction reaction : msg.getReactions()) {
if (reaction.getReactionEmote().getName().equals("")) { if (reaction.getReactionEmote().getName().equals("")) {
stars = reaction.getCount(); stars = reaction.getCount();
@ -82,14 +82,14 @@ public class StarboardListener extends ListenerAdapter {
e.getTextChannel().retrieveMessageById(e.getMessageId()).queue( e.getTextChannel().retrieveMessageById(e.getMessageId()).queue(
msg -> { msg -> {
Integer stars = 0; int stars = 0;
for (MessageReaction reaction : msg.getReactions()) { for (MessageReaction reaction : msg.getReactions()) {
if (reaction.getReactionEmote().getName().equals("")) { if (reaction.getReactionEmote().getName().equals("")) {
stars = reaction.getCount(); stars = reaction.getCount();
} }
} }
Integer finalStars = stars; int finalStars = stars;
e.getGuild().getTextChannelById(rethinkServer.getStarboard()) e.getGuild().getTextChannelById(rethinkServer.getStarboard())
.retrieveMessageById(rethink.getStarboardMessage(e.getMessageId())).queue( .retrieveMessageById(rethink.getStarboardMessage(e.getMessageId())).queue(
msg2 -> { msg2 -> {
@ -108,10 +108,8 @@ public class StarboardListener extends ListenerAdapter {
} }
} }
); );
} }
); );
} }
} }
} }