[Version 0.7.5.10]
- Added sortLists options
This commit is contained in:
parent
7ba6eeee6b
commit
1ba8c723de
3
README
3
README
@ -159,6 +159,7 @@ lang - The language to use (Included languages: en, de)
|
||||
destMemory - Whether to set the first destination as the last used destination for all gates
|
||||
ignoreEntrance - Set this option to true to not check the entrance of a gate on startup. This is a workaround for snowmen breaking gates.
|
||||
handleVehicles - Whether or not to handle vehicles going through gates. Set to false to disallow vehicles (Manned or not) going through gates.
|
||||
sortLists - If true, network lists will be sorted alphabetically.
|
||||
|
||||
debug - Whether to show massive debug output
|
||||
permdebug - Whether to show massive permission debug output
|
||||
@ -201,6 +202,8 @@ createConflict=Gate conflicts with existing gate
|
||||
=============
|
||||
Changes
|
||||
=============
|
||||
[Version 0.7.5.10]
|
||||
- Added sortLists options
|
||||
[Version 0.7.5.9]
|
||||
- Quick event fix for latest dev builds
|
||||
- Fix for sign ClassCastException
|
||||
|
@ -36,6 +36,8 @@ toowner: false
|
||||
chargefreedestination: true
|
||||
# Whether a free gate in the destination list is drawn green
|
||||
freegatesgreen: false
|
||||
# Whether to sort network lists alphabetically
|
||||
sortLists: false
|
||||
|
||||
# Debug -- Only enable if you have issues, massive console output
|
||||
debug: false
|
||||
|
@ -4,6 +4,7 @@ import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Scanner;
|
||||
@ -532,6 +533,9 @@ public class Portal {
|
||||
destinations.add(portal.getName());
|
||||
}
|
||||
}
|
||||
if (Stargate.sortLists) {
|
||||
Collections.sort(destinations);
|
||||
}
|
||||
if (Stargate.destMemory && !lastDest.isEmpty() && destinations.contains(lastDest)) {
|
||||
destination = lastDest;
|
||||
}
|
||||
|
@ -77,6 +77,7 @@ public class Stargate extends JavaPlugin {
|
||||
private static int openTime = 10;
|
||||
public static boolean destMemory = false;
|
||||
public static boolean handleVehicles = true;
|
||||
public static boolean sortLists = false;
|
||||
|
||||
// Temp workaround for snowmen, don't check gate entrance
|
||||
public static boolean ignoreEntrance = false;
|
||||
@ -163,6 +164,7 @@ public class Stargate extends JavaPlugin {
|
||||
destMemory = newConfig.getBoolean("destMemory");
|
||||
ignoreEntrance = newConfig.getBoolean("ignoreEntrance");
|
||||
handleVehicles = newConfig.getBoolean("handleVehicles");
|
||||
sortLists = newConfig.getBoolean("sortLists");
|
||||
// Debug
|
||||
debug = newConfig.getBoolean("debug");
|
||||
permDebug = newConfig.getBoolean("permdebug");
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: Stargate
|
||||
main: net.TheDgtl.Stargate.Stargate
|
||||
version: 0.7.5.9
|
||||
version: 0.7.5.10
|
||||
description: Stargate mod for Bukkit
|
||||
author: Drakia
|
||||
website: http://www.thedgtl.net
|
||||
|
Loading…
Reference in New Issue
Block a user