Update missing copyright
This commit is contained in:
parent
3df08c5e13
commit
17b63d09ef
3 changed files with 30 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public class StarboardListener extends ListenerAdapter {
|
|||
if (rethink.hasStarboardChannel(e.getGuild().getId())) {
|
||||
e.getTextChannel().retrieveMessageById(e.getMessageId()).queue(
|
||||
msg -> {
|
||||
Integer stars = 0;
|
||||
int stars = 0;
|
||||
for (MessageReaction reaction : msg.getReactions()) {
|
||||
if (reaction.getReactionEmote().getName().equals("⭐")) {
|
||||
stars = reaction.getCount();
|
||||
|
|
@ -82,14 +82,14 @@ public class StarboardListener extends ListenerAdapter {
|
|||
|
||||
e.getTextChannel().retrieveMessageById(e.getMessageId()).queue(
|
||||
msg -> {
|
||||
Integer stars = 0;
|
||||
int stars = 0;
|
||||
for (MessageReaction reaction : msg.getReactions()) {
|
||||
if (reaction.getReactionEmote().getName().equals("⭐")) {
|
||||
stars = reaction.getCount();
|
||||
}
|
||||
}
|
||||
|
||||
Integer finalStars = stars;
|
||||
int finalStars = stars;
|
||||
e.getGuild().getTextChannelById(rethinkServer.getStarboard())
|
||||
.retrieveMessageById(rethink.getStarboardMessage(e.getMessageId())).queue(
|
||||
msg2 -> {
|
||||
|
|
@ -108,10 +108,8 @@ public class StarboardListener extends ListenerAdapter {
|
|||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue