1717
1818import com .github .yuttyann .scriptblockplus .enums .MatchType ;
1919import com .github .yuttyann .scriptblockplus .utils .ItemUtils ;
20- import com .github .yuttyann .scriptblockplus .utils .StringUtils ;
21- import com .github .yuttyann .scriptentityplus .file .SEConfig ;
2220import org .bukkit .Material ;
23- import org .bukkit .inventory .ItemFlag ;
2421import org .bukkit .inventory .ItemStack ;
25- import org .bukkit .inventory .meta .ItemMeta ;
2622import org .jetbrains .annotations .NotNull ;
2723
28- import java .util .Objects ;
29-
3024public enum ToolMode {
3125 NORMAL_SCRIPT ("NORMAL MODE" ),
3226 DEATH_SCRIPT ("DEATH MODE" );
@@ -45,17 +39,6 @@ public static boolean isItem(@NotNull ItemStack item) {
4539 return ItemUtils .compare (MatchType .TYPE , item , Material .BONE ) && ItemUtils .compare (MatchType .NAME , item , "§dScript Connection" );
4640 }
4741
48- @ NotNull
49- public static ItemStack getItem () {
50- ItemStack item = new ItemStack (Material .BONE );
51- ItemMeta meta = Objects .requireNonNull (item .getItemMeta ());
52- meta .setDisplayName ("§dScript Connection" );
53- meta .setLore (StringUtils .setListColor (SEConfig .SCRIPT_CONNECTION .getValue ()));
54- meta .addItemFlags (ItemFlag .HIDE_ATTRIBUTES );
55- item .setItemMeta (meta );
56- return item ;
57- }
58-
5942 @ NotNull
6043 public static ToolMode getNextMode (@ NotNull ToolMode toolMode ) {
6144 return toolMode == NORMAL_SCRIPT ? DEATH_SCRIPT : NORMAL_SCRIPT ;
0 commit comments