| Chunk |
|---|
| Conflicting content |
|---|
=======
public boolean SAFE_PORTALS;
public int PEARL_DAMAGE;
public boolean LEATHERLESS_BOOKS;
<<<<<<< HEAD
public boolean LOCK_HORSES;
public int RESTART_TIME;
public long NEXT_RESTART;
>>>>>>> 7d630cb62449ea77b576f92746f0c7e63a2cbc2f
public List |
| Solution content |
|---|
package nu.nerd.kitchensink;
import java.util.List;
public class Configuration {
private final KitchenSink plugin;
public boolean ANIMAL_COUNT;
public boolean LOG_ANIMAL_DEATH;
public boolean LOG_PLAYER_DROPS;
public int BUFF_DROPS;
public int BUFF_SHEAR_DROPS;
public boolean DISABLE_SNOW;
public boolean REMOVE_ON_EXIT;
public boolean DISABLE_DROPS;
public boolean DISABLE_INVISIBILITY_ON_COMBAT;
public boolean BLOCK_CAPS;
public boolean BLOCK_VILLAGERS;
public boolean SAFE_ICE;
public boolean SAFE_DISPENSERS;
public boolean SAFE_BOATS;
public int SAFE_BOATS_DELAY;
public boolean SAFE_BOATS_DROP;
public boolean SAFE_MINECARTS;
public int SAFE_MINECARTS_DELAY;
public boolean SAFE_MINECARTS_DROP;
public boolean SAFE_SPECIAL_CARTS;
public boolean SAFE_PORTALS;
public int PEARL_DAMAGE;
public boolean LEATHERLESS_BOOKS;
public boolean LOCK_HORSES;
public int RESTART_TIME;
public long NEXT_RESTART;
public List |
| File |
|---|
| Configuration.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
return true;
}
}
<<<<<<< HEAD
if (command.getName().equalsIgnoreCase("lock-horse")) {
setHorseLockState(sender, true);
return true;
} else if (command.getName().equalsIgnoreCase("unlock-horse")) {
setHorseLockState(sender, false);
return true;
}
=======
if (command.getName().equalsIgnoreCase("nextrestart")){
int time = (int)(config.NEXT_RESTART - (System.currentTimeMillis() / 1000L));
if (time < 120) {
sender.sendMessage("The server will restart in " + time + " second" + ((time == 1)? "" : "s"));
} else {
sender.sendMessage("The server will restart in " + time/60 + " minute" + ((time == 1) ? "" : "s"));
}
return true;
}
>>>>>>> 7d630cb62449ea77b576f92746f0c7e63a2cbc2f
return false;
}
|
| Solution content |
|---|
}
return false;
}
return true;
}
}
if (command.getName().equalsIgnoreCase("nextrestart")) {
int time = (int) (config.NEXT_RESTART - (System.currentTimeMillis() / 1000L));
if (time < 120) {
sender.sendMessage("The server will restart in " + time + " second" + ((time == 1) ? "" : "s"));
} else {
sender.sendMessage("The server will restart in " + time / 60 + " minute" + ((time == 1) ? "" : "s"));
}
return true;
}
if (command.getName().equalsIgnoreCase("lock-horse")) {
setHorseLockState(sender, true);
return true;
} else if (command.getName().equalsIgnoreCase("unlock-horse")) {
setHorseLockState(sender, false);
return true; |
| File |
|---|
| KitchenSink.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| If statement |