Search code examples
javabukkit

Java Bukkit value function


Hello have problem with the value string and cant compile cause of this

screenshot of the error

https://i.sstatic.net/laGkq.png can someone help? thanks!


Solution

  • You can't assign a generic type to a value in Java since it needs to know what's being set in the memory (for the length).

    For more information, you should read a bit about Generic Types

    It's hard without the that small amount of code to tell, but normally, if you remove the (T), you should not get that error.