investmentideas Posted March 28, 2019 Share Posted March 28, 2019 is there a teleblock action just like a poison action and if not, why? example: if (getCombat().isPoisoned()){ } or is there one to see if a player is tangled and cannot move? Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 28, 2019 Share Posted March 28, 2019 You can use config values for this if (config.get(#)==#) { return weAreTeleBlocked; } 1 Quote Link to comment Share on other sites More sharing options...
investmentideas Posted March 28, 2019 Author Share Posted March 28, 2019 will look into it, thanks! 1 Quote Link to comment Share on other sites More sharing options...
investmentideas Posted March 28, 2019 Author Share Posted March 28, 2019 45 minutes ago, Juggles said: You can use config values for this if (config.get(#)==#) { return weAreTeleBlocked; } thanks, so i used the config debugger and found that when you are bound, the values were as follows: CONFIG for ID = 24 : Binary = 10001110000001000111100000100000 Hexadecimal = 8e047820 Decimal = -1912309728 Can i just put 24 into the values #? or is that not possible? Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 28, 2019 Share Posted March 28, 2019 37 minutes ago, investmentideas said: thanks, so i used the config debugger and found that when you are bound, the values were as follows: CONFIG for ID = 24 : Binary = 10001110000001000111100000100000 Hexadecimal = 8e047820 Decimal = -1912309728 Can i just put 24 into the values #? or is that not possible? See this example below. If I wanted to detect when my brightness is the darkest, i would do if (config.get(166)==0) { return darkestSetting; } Just use the values on the screen. It's config Value : number that changes. The config value is the same for the action and then depending on what you do the second number changes. So for teleblock, if the config value was 24, then it might return 0=false and 1=true (I didnt test it but assuming this is what it is) 1 Quote Link to comment Share on other sites More sharing options...