|
1 | 1 | package com.earth2me.essentials; |
2 | 2 |
|
| 3 | +import org.bukkit.Achievement; |
3 | 4 | import org.bukkit.BanList; |
4 | 5 | import org.bukkit.Bukkit; |
5 | 6 | import org.bukkit.GameMode; |
6 | 7 | import org.bukkit.Location; |
| 8 | +import org.bukkit.Material; |
7 | 9 | import org.bukkit.NamespacedKey; |
8 | 10 | import org.bukkit.Server; |
| 11 | +import org.bukkit.Statistic; |
9 | 12 | import org.bukkit.UnsafeValues; |
10 | 13 | import org.bukkit.Warning.WarningState; |
11 | 14 | import org.bukkit.World; |
@@ -1005,7 +1008,52 @@ public BossBar createBossBar(final String s, final BarColor barColor, final BarS |
1005 | 1008 | @Override |
1006 | 1009 | @SuppressWarnings("deprecation") |
1007 | 1010 | public UnsafeValues getUnsafe() { |
1008 | | - throw new UnsupportedOperationException("Not supported yet."); |
| 1011 | + return new UnsafeValues() { |
| 1012 | + public int getDataVersion() { |
| 1013 | + // 1.21.5 |
| 1014 | + return 4325; |
| 1015 | + } |
| 1016 | + |
| 1017 | + @Override |
| 1018 | + public Material getMaterialFromInternalName(String s) { |
| 1019 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1020 | + } |
| 1021 | + |
| 1022 | + @Override |
| 1023 | + public List<String> tabCompleteInternalMaterialName(String s, List<String> list) { |
| 1024 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1025 | + } |
| 1026 | + |
| 1027 | + @Override |
| 1028 | + public ItemStack modifyItemStack(ItemStack itemStack, String s) { |
| 1029 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1030 | + } |
| 1031 | + |
| 1032 | + @Override |
| 1033 | + public Statistic getStatisticFromInternalName(String s) { |
| 1034 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1035 | + } |
| 1036 | + |
| 1037 | + @Override |
| 1038 | + public Achievement getAchievementFromInternalName(String s) { |
| 1039 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1040 | + } |
| 1041 | + |
| 1042 | + @Override |
| 1043 | + public List<String> tabCompleteInternalStatisticOrAchievementName(String s, List<String> list) { |
| 1044 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1045 | + } |
| 1046 | + |
| 1047 | + @Override |
| 1048 | + public Advancement loadAdvancement(NamespacedKey namespacedKey, String s) { |
| 1049 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1050 | + } |
| 1051 | + |
| 1052 | + @Override |
| 1053 | + public boolean removeAdvancement(NamespacedKey namespacedKey) { |
| 1054 | + throw new UnsupportedOperationException("Not supported yet."); |
| 1055 | + } |
| 1056 | + }; |
1009 | 1057 | } |
1010 | 1058 |
|
1011 | 1059 | @Override |
|
0 commit comments