Added a proper license (MIT license).

This commit is contained in:
JitseB
2018-04-19 18:00:24 +02:00
parent 04436160a1
commit 9319c291e6
59 changed files with 83 additions and 60 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib;
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib;
@@ -27,9 +27,9 @@ public final class NPCManager {
public static void remove(NPC npc) {
npcs.remove(npc);
}
private NPCManager() {
throw new SecurityException("You cannot initialize this class.");
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.api;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.events;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.events;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.events;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.events.click;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.listeners;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.listeners;
@@ -39,6 +39,7 @@ public class PacketListener {
@Override
public Object onPacketInAsync(Player player, Channel channel, Object packet) {
if (packetPlayInUseEntityClazz.isInstance(packet)) {
NPC npc = NPCManager.getAllNPCs().stream().filter(
check -> check.isActuallyShown(player) && check.getEntityId() == (int) entityIdField.get(packet))
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.listeners;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.listeners;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.holograms;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_10_r1;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_10_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_10_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_10_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_10_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_11_r1;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_11_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_11_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_11_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_11_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_12_r1;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_12_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_12_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_12_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_12_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r1;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r2;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r3;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r3.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r3.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r3.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_8_r3.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r1;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r1.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r2;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.nms.v1_9_r2.packets;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.plugin;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.plugin.listeners;
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.skin;
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.skin;
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) Jitse Boonstra 2018 All rights reserved.
* Copyright (c) 2018 Jitse Boonstra
*/
package net.jitse.npclib.version;