Updated copyright texts

Signed-off-by: Chikachi <chikachi@chikachi.net>
master
Chikachi 2018-06-02 12:31:32 +02:00
parent c5bffef051
commit 65019bd577
No known key found for this signature in database
GPG Key ID: 0136086A0AC09F5E
20 changed files with 40 additions and 27 deletions

View File

@ -629,8 +629,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
ChikachiDiscord
Copyright (C) 2016 Chikachi
Copyright (C) 2018 Chikachi and other contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published

2
core

@ -1 +1 @@
Subproject commit 06d3d0901cd8031be2d43edc11ee042c944dc055
Subproject commit f74876af1e0671214ae95469248d782bb603e5a7

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
@ -65,6 +65,12 @@ public class DiscordCommandSender extends FakePlayer {
this.command = command;
}
private static String textComponentToDiscordMessage(ITextComponent component) {
return Patterns.minecraftCodePattern.matcher(
component.getUnformattedText()
).replaceAll("");
}
@Override
public boolean canUseCommand(int i, String s) {
return true;
@ -88,12 +94,6 @@ public class DiscordCommandSender extends FakePlayer {
batcher.queue(textComponentToDiscordMessage(component));
}
private static String textComponentToDiscordMessage(ITextComponent component) {
return Patterns.minecraftCodePattern.matcher(
component.getUnformattedText()
).replaceAll("");
}
private void sendBatch(List<String> messages) {
final int numMessages = messages.size();
this.channel

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,3 +1,17 @@
/*
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see http://www.gnu.org/licenses.
*/
package chikachi.discord;
import chikachi.discord.core.DiscordClient;
@ -35,7 +49,7 @@ public class DiscordThread implements Runnable {
Object[] players = FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerList().getPlayers()
.stream().filter(player -> !player.getDisplayNameString().startsWith("@")).toArray();
long count = players.length;
String message = "";
String message;
if (count == 0) {
message = Configuration.getConfig().discord.presence.messages.noPlayerOnline;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Chikachi
* Copyright (C) 2018 Chikachi and other contributors
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the