title: Java failing to access this method?
body: <p>I am fairly new java programmer and I need a bit of help. So there is a problem I have with accessing non-static variables from another class. So what I am trying to do is use this:</p>
  
  <pre><code>public void Snowba_Method(int num, Player player) {
      new Snowba_Main().playerSpawn(num, player);
  }
  </code></pre>
  
  
  
  <p>In a class that doesn't contain the variable i need to access, and i use Snowba_Method(num, player); To access it. But when that happends, it doesn't seem to reach this bit of code:</p>
  
  <pre><code>    public void playerSpawn(int num, Player player) {
          player.sendMessage("test");
          Location tpPos = new Location(Bukkit.getWorld(getConfig().getString("iGSpawnPos.SpawnWorld" + num))
                  , getConfig().getInt("iGSpawnPos.SpawnX" + num)
                  , getConfig().getInt("iGSpawnPos.SpawnY" + num)
                  , getConfig().getInt("iGSpawnPos.SpawnZ" + num));
          player.teleport(tpPos);
      }
  </code></pre>
  
  <p>Now, I am using a custom jar, and I have tested everything. I've narrowed it down to this bit. I don't understand why this doesn't work. </p>
  
  <pre class="lang-js prettyprint-override"><code>public void Snowba_Method(int num, Player player) {
      new Snowba_Main().playerSpawn(num, player);
  } // It seems to stop here. 
  </code></pre>