Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var player = BukkitPlayer;
  2. function inv() {
  3.     if(player.getPlayer().getInventory().firstEmpty() != -1) {
  4.         return true;
  5.     }else {
  6.         return false;
  7.     }
  8. }
  9. inv();
  10.  
  11. // how to install / use
  12. // 1. /papi ecloud download javascript and /papi reload
  13. // 2. and edit at "plugins/PlaceholderAPI/javascript_placeholders.yml" and
  14. //    create file javascripts/inv.js and paste code
  15. // 3. done /papi reload
  16. // 4. use => /papi parse <playername> %javascript_inv%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement