This commit is contained in:
Izzel_Aliz
2018-05-09 13:11:59 +08:00
129 changed files with 7406 additions and 4399 deletions

View File

@@ -68,7 +68,9 @@ public class EntityTag {
* @param value 值
*/
public void set(String key, Object value, Entity... entities) {
for (Entity entity : entities) set(key, value, entity);
for (Entity entity : entities) {
set(key, value, entity);
}
}
/**
@@ -78,7 +80,9 @@ public class EntityTag {
* @param value 值
*/
public void set(String key, Object value, List<Entity> entities) {
for (Entity entity : entities) set(key, value, entity);
for (Entity entity : entities) {
set(key, value, entity);
}
}
/**
@@ -104,7 +108,9 @@ public class EntityTag {
* @param entities 实体
*/
public void remove(String key, Entity... entities) {
for (Entity entity : entities) remove(key, entity);
for (Entity entity : entities) {
remove(key, entity);
}
}
/**
@@ -114,7 +120,9 @@ public class EntityTag {
* @param entities 实体
*/
public void remove(String key, List<Entity> entities) {
for (Entity entity : entities) remove(key, entity);
for (Entity entity : entities) {
remove(key, entity);
}
}
/**

View File

@@ -4,6 +4,7 @@ import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.wrappers.WrappedDataWatcher;
import com.ilummc.tlib.resources.TLocale;
import me.skymc.taboolib.exception.PluginNotFoundException;
import org.bukkit.Bukkit;
import org.bukkit.World;
@@ -66,7 +67,7 @@ public class EntityUtils implements Listener {
public static void addGlow(Player player, Entity entity) {
if (Bukkit.getPluginManager().getPlugin("ProtocolLib") == null) {
try {
throw new PluginNotFoundException("缺少前置插件 ProtocolLib");
throw new PluginNotFoundException(TLocale.asString("ENTITY-UTILS.NOTFOUND-PROTOCOLLIB"));
} catch (Exception e) {
//
}
@@ -94,7 +95,7 @@ public class EntityUtils implements Listener {
public static void delGlow(Player player, Entity entity) {
if (Bukkit.getPluginManager().getPlugin("ProtocolLib") == null) {
try {
throw new PluginNotFoundException("缺少前置插件 ProtocolLib");
throw new PluginNotFoundException(TLocale.asString("ENTITY-UTILS.NOTFOUND-PROTOCOLLIB"));
} catch (Exception e) {
//
}