Quick Question

Discussion in 'Plugin Development' started by XvBaseballkidvX, Nov 26, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    XvBaseballkidvX

    Hello everyone!

    Ever since the 1.7.2 update, you are able to glitch GUI Screens and get "Ghost Items".
    So I made a little something to fix that but I want to make sure that it doesn't cause any lag.

    CODE:
    Code:java
    1. public class InvUpdater {
    2.  
    3.  
    4. @SuppressWarnings("deprecation")
    5. public static void init(){
    6. new BukkitRunnable(){
    7. @Override
    8. public void run(){
    9. System.out.println("Updated all players inventories");
    10. for(Player player: Bukkit.getOnlinePlayers()){
    11. player.updateInventory();
    12. }
    13. }
    14. }.runTaskTimer(Main.getInstance(), 3*20, 100);
    15. }
    16. }


    The plugin itself works fine, I just want to know if that would cause any lag (Because of the repeating task).

    Thanks for reading!
    All help is much appreciated!
     
  2. Offline

    AoH_Ruthless

    XvBaseballkidvX
    You should be fine. You aren't repeating the task often enough to induce major lag (I think :confused:), and you aren't storing anything etc.
     
  3. Offline

    sgavster

    I don't think this works.. atleast it didn't for me.

    it is also VERY buggy. It will be updating the stacks in your inventory; so when you're crafting it'll glitch out and stuff. (tried it on my server :/)
     
  4. Offline

    XvBaseballkidvX

    AoH_Ruthless Thank you! :D

    sgavster really?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  5. Offline

    Garris0n

    There is no bukkit 1.7.2 build. If you are using a protocol hack, the issue is probably with the protocol hack and not 1.7.2.
     
    sgavster likes this.
  6. Offline

    sgavster

  7. Offline

    TnT

    Locked. We cannot provide support for unofficial builds.
     
Thread Status:
Not open for further replies.

Share This Page