PHP to JAVA

Discussion in 'Plugin Development' started by Franclin, Mar 8, 2017.

  1. Franclin

    Franclin New Member

    Joined:
    Jul 29, 2016
    Messages:
    8
    Likes Received:
    0
    How to convert this PHP code to JAVA

    PHP:
    public function refreshArenas()
        {
            
    $config = new Config($this->getDataFolder() . "/config.yml"Config::YAML);
            
    $config->set("arenas",$this->arenas);
            foreach(
    $this->arenas as $arena)
            {
                
    $config->set($arena "PlayTime"780);
                
    $config->set($arena "StartTime"90);
            }
            
    $config->save();
        }
     
  2. Antonio Sanchez

    Joined:
    Mar 29, 2016
    Messages:
    91
    Likes Received:
    21
    You're going to have to give out the whole file in order for someone to convert it, there's variables that don't seem to be all there, but spread out across the whole plugin